Are you a command line user? Do you long-running jobs via the terminal you don't want to close even if you accidentally lose your connection? If so, tmux is for you!
|
Start a new session
|
tmux
|
|
Attach to default session
|
tmux a
|
|
List existing sessions
|
tmux ls
|
|
Detach current client
|
^b d
|
|
Detach other clients
|
^b D
|
|
Rename the current session
|
^b $
|
|
Create a new window
|
^b c
|
|
Next window
|
^b n
|
|
Previous window
|
^b p
|
|
Select a window interactively
|
^b w
|
|
Rename the current window
|
^b ,
|
|
Kill the current window
|
^b &
|
|
Enter a tmux command prompt
|
^b :
|
|
Toggle broadcast to all panes
|
setw synchronize-panes
|
|
Split current pane vertically
|
^b %
|
|
Split current pane horizontally
|
^b "
|
|
Navigate around panes
|
^b <arrow keys>
|
|
Resize the current pane
|
^b ^<arrow keys>
|
|
Swap pane location
|
^b ^o
|
|
Send the current pane to a new window
|
^b !
|
|
Toggle zoom current pane
|
^b z
|
|
Arrange panes in a tiled layout
|
^b alt+5
|
|
Arrange to a next preset layout
|
^b <space>
|
|
Kill current pane
|
^b x
|
# Shortcut to 'synchronize panes' with '^b ='
bind = set -g synchronize-panes
# Enable mouse support
set -g mouse on
~/.tmux.conf file.
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.