Tmux Cheatsheet

Note that here the default keys are shown. They may be replaced through configuration in .tmux.conf. Commands starting with PREF are issued from inside a tmux session.

BASIC Work with sessions

tmux new -s session-1   // start new session

PREF d  // detach from active session

tmux attach -t <session-name>  // attach to session

tmux ls  // list sessions

tmux kill-session -t <session-name>  // kill session

BASIC WORK WITH WINDOWS

PREF c  // create new window

PREF %  // split window left-right

PREF ”  // split window top-bottom

PREF <i>  // jump to i’th window

PREF n  // jump to next window

PREF p  // jump to previous window

PREF w  // select in list of windows

PREF f  // search in windows

BASIC WORK WITH PANES

PREF o  // cycle through panes of active window

PREF <arrow-key>  // navigate panes of active window

PREF z  // zooming pane toggle

PREF <spacebar>  //  cycle layout options

STYLING
select-pane -t:.0 -P 'fg=blue,bg=red'

select-pane -t:.0 -P 'fg=blue,bg=red'

ADVANCED

PREF (  // previous session

PREF )  // next session

PREF s  // list sessions

PREF ,  // rename window

PREF ?  // list key bindings

PREF :   // enter command mode

Boot-time startup of sessions?