0% found this document useful (0 votes)
53 views

Tmux Cheat Sheet

The document provides a cheat sheet for using the terminal multiplexer tmux, including how to start and manage sessions and windows, create and move between panes, and get help. It details keybindings for creating, attaching to and detaching from sessions, renaming and killing sessions, creating and switching windows, creating horizontal and vertical splits to divide the terminal into panes, and moving between and killing panes.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Tmux Cheat Sheet

The document provides a cheat sheet for using the terminal multiplexer tmux, including how to start and manage sessions and windows, create and move between panes, and get help. It details keybindings for creating, attaching to and detaching from sessions, renaming and killing sessions, creating and switching windows, creating horizontal and vertical splits to divide the terminal into panes, and moving between and killing panes.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Tmux Cheat Sheet

Linux Training Academy

Sessions
Windows
Panes
Getting Help

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

While in tmux, view a list of sessions

Ctrl-b s

LinuxTrainingAcademy.com
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

Switch to a window using the window's index number

Ctrl-b index_number

LinuxTrainingAcademy.com
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>

Move to the pane below

Ctrl-b <down-arrow>

LinuxTrainingAcademy.com
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

You might also like