Tmux Cheat Sheet
by Linux Training Academy
Tmux Video Tutorial
Sessions
Windows
Panes
Getting Help
Tmux Video Tutorial
Watch this video tutorial to learn how to use tmux: https://www.linuxtrainingacademy.com/tmux-tutorial/
Sessions
Start a new session.
tmux
Start a new session with a specific session name
tmux new -s session_name
Attach to an existing session
tmux a
Attach to a named (target) session
tmux a -t session_name
List sessions
tmux ls
LinuxTrainingAcademy.com
While in tmux, view a list of sessions
Ctrl-b s
Rename the current session
Ctrl-b $
Detach from the current session
Ctrl-b d
Kill the most recently used tmux session
tmux kill-session
Kill a session by name (target)
tmux kill-session -t session_name
Windows
Create a new window
Ctrl-b c
Switch to the next window
Ctrl-b n
Switch to the previous window
Ctrl-b p
LinuxTrainingAcademy.com
Switch to a window using the window's index number
Ctrl-b index_number
See a list of windows
Ctrl-b w
Rename the current window
Ctrl-b ,
Panes
Create a vertical split
Ctrl-b %
Create a horizontal split
Ctrl-b "
Move to the pane to the right
Ctrl-b <right-arrow>
Move to the pane to the left
Ctrl-b <left-arrow>
Move to the pane above
Ctrl-b <up-arrow>
LinuxTrainingAcademy.com
Move to the pane below
Ctrl-b <down-arrow>
Kill the current pane
Ctrl-b x
Zoom/unzoom the current pane
Ctrl-b z
Toggle between layouts
Ctrl-b <space>
Getting Help
List all the key bindings
Ctrl-b ?
View the man page for tmux
man tmux
LinuxTrainingAcademy.com