0% found this document useful (0 votes)
551 views1 page

Tmux Cheat Sheet en

This document provides a cheat sheet for using the tmux terminal multiplexer. It lists keyboard shortcuts for launching and attaching tmux sessions, managing windows and panes by creating, moving between, and closing them. It also describes how to view the command history, copy selections, and split panes vertically or horizontally. The cheat sheet is intended to serve as a quick reference guide to the basic functions and commands in tmux.

Uploaded by

Benjamin Tan
Copyright
© Attribution Non-Commercial (BY-NC)
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)
551 views1 page

Tmux Cheat Sheet en

This document provides a cheat sheet for using the tmux terminal multiplexer. It lists keyboard shortcuts for launching and attaching tmux sessions, managing windows and panes by creating, moving between, and closing them. It also describes how to view the command history, copy selections, and split panes vertically or horizontally. The cheat sheet is intended to serve as a quick reference guide to the basic functions and commands in tmux.

Uploaded by

Benjamin Tan
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 1

Tmux Cheat Sheet

All listed functions listed below require Ctrl+b keyboard press


key before

Commands
tmux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Launch tmux
tmux a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Session attach

Window Managment
c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create a new window
w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get current window list
n. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Move to next window
p . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Move to previous window
l . . . . . . . . . . . . . . . . . . . . . . . Move to the penultimate used window
[0-9] . . . . . . . . . . . . . . . . . . . . . . . . . . Move to the numbered window
f name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Search in windows buffers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rename current window
& . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Force a window to close
t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Show time

Split

Session

". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Vertical screen cut


% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Horizontal screen cut
{ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Move to previous pane
} or o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Move to next pane
. . . . . . . . . . . . . . . . . . . Move to the corresponding arrow
q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get panes numbers
t . . . . . . . . . . . . . . . . . . . . . . . . . . . Change panes visual organisation
Alt+( ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Grow pane size
! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Convert a pane to a window
:joinp -h -s 0.0 -p 75 . . Convert a window in an integrated
pane
-h : horizontaly
-s 0.0 : window 0 et pane 0
-p 75 : 75% window occupation

d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detach tmux session


s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . List tmux session
( . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jump to next session
) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jump to previous sessions

History
(PageUP) . . . . . . . . . . . . . . . . . . . . . . . . . . . View upward in history
(PageDOWN) . . . . . . . . . . . . . . . . . . . . . . View downward in history
t then ( ) . . . . . . . . . . . . . . . . . . Select lines in history (after )
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy selection
= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Paste selection

Autor
Pierre Mavro (Deimosfr)
http://www.mavro.fr http://www.deimos.fr

References
http://tmux.sourceforge.net/ http://myhumblecorner.wordpress.
com/2011/08/30/screen-to-tmux-a-humble-quick-start-guide/
http:
//blog.hawkhost.com/2010/06/28/tmux-the-terminal-multiplexer/
http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%
93-the-terminal-multiplexer-part-2/
http://www.dayid.org/os/notes/tm.html

You might also like