Tmux Cheat Sheet
Session#
- new session:
tmux new -s name - show session:
tmux ls - attach session with name:
tmux a -t name - detach from session:
ctrl+bthend - rename session:
ctrl+bthen$
Panes#
- split pane horizontally:
ctrl+bthen% - split pane vertically:
ctrl+bthen" - cloes current pane:
ctrl+bthenx - swap panes:
ctrl+btheno - swan and rotate panes:
ctrl+bthenctrl+o
Window#
- Create current window:
ctrl+bthenc - Close current window:
ctrl+bthen& - Rename current window:
ctrl+bthen, - Next window:
ctrl+bthenp - Previous window:
ctrl+bthenn - Lisgt all windows:
ctrl+bthenw
View in tmux#
ctrl+b then [
Plugin#
- tmux-resurrect Restore tmux environment after system restart.
The better way to use tmux is to customize in your way, feel free to refer my tmux config
Reference#
Read other posts