tmux
Jump to navigation
Jump to search
↑ https://gist.github.com/MohamedAlaa/2961058
↑ https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa
↑ https://superuser.com/a/510310
tmux is a terminal multiplexer first released in 2007.
Installation[edit]
- macOS:
brew install tmux - Linux:
apt install tmux
Examples[edit]
tmux ls[1]- Config file:
$HOME/.tmux.conf tmux -f your_tmux_config_file.conf- New session:
tmux new -s my_session_name- CTRL+b, C
tmux aortmux attachAttach to last used session.[2]tmux attach -t my_session_nameortmux attach-session -t my_session_nametmux attach -t 0ortmux attach-session -t 0tmux kill-server- Detach:
CTRL+b d tmux newortmux new-session- tmux list-keys
- Split screen:
Ctrl b + % - Move between panes:
Ctrl+b Arrow Key (Left, Right, Up, Down)
set -g status-bg red set -g status-fg white
Activities[edit]
- Open a tmux session, disconnect your computer and reconnect again to your previous session using
tmux attachortmux a - Transfer current command to a detachable session (
reptyr): https://superuser.com/questions/623432/transfer-current-command-to-a-detachable-session-tmux-screen - Add
set -g mouse onto your$HOME/.tmux.conffile to scroll using your mouse.[3] (tmux kill-server)
Related terms[edit]
See also[edit]
tmux[ ls | a | new ],.tmux.conf, tlog, cockpit- Terminal, iTerm2, PuTTY, Windows terminal, Terminal (macOS),
screen,tmate, upterm,Byobu,iTerm2,xterm,reptyr,disown,coolterm, minicom,tmux, Windows Terminal,set -g mouse on,kill-server,tmux, Kitty, Alacritty,stty sane, tlog, Tera Term, Split screen, Guake terminal, Terminal sharing, Termux, Ghostty, Zellij kittyandalacrittyGPU terminal emulators- iTerm2 (macOS). Install iTerm2
brew cask install iterm2and useCMD+Dto split screen vertically. last:root pts/1 tmux(41272).%0 Thu Dec 11 12:02 gone - no logout
Advertising: