Docsity

Tmux Cheat Sheet: A Comprehensive Guide to Terminal Multiplexing, Lecture notes of History

Toggle sidebar
bg1
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 p enultimate used window
[0-9]. . . . . . . . . . . . . . . . . . . . . . . . . .Move to the numbered window
fname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Search in window’s buffers
’. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rename current window
&. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Force a window to close
t...................................................Show time
Split
". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .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
History
⇑(PageUP) . . . . . . . . . . . . . . . . . . . . . . . . . . . View upward in history
⇓(PageDOWN) . . . . . . . . . . . . . . . . . . . . . . View downward in history
tthen (↑ ↓). . . . . . . . . . . . . . . . . . Select lines in history (after ⇑)
←-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy selection
=. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Paste selection
Session
d. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Detach tmux session
s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . List tmux session
(. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jump to next session
). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jump to previous sessions
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

Partial preview of the text

Download Tmux Cheat Sheet: A Comprehensive Guide to Terminal Multiplexing and more Lecture notes History in PDF only on Docsity!

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 window’s buffers ’..................................... Rename current window

&..................................... Force a window to close

t................................................... Show time

Split

".......................................... .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

History

⇑ (PageUP)........................... View upward in history ⇓ (PageDOWN)...................... View downward in history t then (↑ ↓).................. Select lines in history (after ⇑) ←↩............................................. Copy selection =.............................................. Paste selection

Session

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

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