0% found this document useful (0 votes)
4 views4 pages

Tmux Cheat Sheet

This document is a cheat sheet for using Tmux, including commands for managing sessions, windows, and panes. It provides key bindings for various actions such as creating, switching, and renaming sessions and windows, as well as splitting panes. Additionally, it includes a link to a video tutorial and instructions for getting help with Tmux commands.

Uploaded by

muaaz1280
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Tmux Cheat Sheet

This document is a cheat sheet for using Tmux, including commands for managing sessions, windows, and panes. It provides key bindings for various actions such as creating, switching, and renaming sessions and windows, as well as splitting panes. Additionally, it includes a link to a video tutorial and instructions for getting help with Tmux commands.

Uploaded by

muaaz1280
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

You might also like