cheat_sheets_tmux
This is an old revision of the document!
Table of Contents
tmux
Sessions
A session is a group of windows (and each window has at least one pane).
New Session:
tmux tmux new -s [session name]
Sessions Management:
tmux ls tmux rename-session -t [number] [new name]
Attach Session:
tmux a -t [session name or number]
Remove Session:
tmux kill-ses tmux kill-session -t [name]
Key Bindings:
Command | Description |
---|---|
Ctrl-b $ | rename session |
Ctrl-b d | detach session |
Ctrl-b D | detach session, choice |
Ctrl-b ) | next session |
Ctrl-b ( | previous session |
Windows
Panes
Copy
Other Stuff
Mouse Mode
Mouse mode allows you to control the pane selection, pane resizing, window selection operation, along with scrolling, with the mouse.
To enable the mouse mode, open the ~/.tmux.conf
file and put the following line inside it:
setw -g mouse on
Reload it (whenever you change a configuration file of a running program, like a Bash shell, etc., you need to source it to load it again–or exit and enter again):
tmux source-file ~/.tmux.conf
cheat_sheets_tmux.1664119830.txt.gz · Last modified: by gman