tmux
Usage
Session Management
tmux new
tmux new -s mysession
[Ctrl]b d
tmux ls
tmux attach-session -t mysession
tmux attach -t mysession
tmux rename-session -t mysession mynew
Create new session with a numerical id
Create new session named mysession
Detach
List sessions
Reattach to mysession
Reattach to mysession
Rename mysession to mynew
Pane Management
[Ctrl]b %
[Ctrl]b "
[Ctrl]b [right-arrow]
[Ctrl]b [left-arrow]
[Ctrl]b [up-arrow]
[Ctrl]b [down-arrow]
[Ctrl]d
exit
Split vertically
Split horizontally
Navigate to pane to right of current pane
Navigate to pane to left of current pane
Navigate to pane above current pane
Navigate to pane below current pane
Close current pane
Close current pane
Window Management
[Ctrl]b c
[Ctrl]b p
[Ctrl]b n
Create new window
Switch to Previous window (will loop to end once you pass first window)
Switch to Next window (will loop to start once you pass last window)
Copy Mode
Scrolling
When in "Copy Mode" use [page-up], [page-down], and arrow keys to navigate around in your current pane. Use q to exit "copy mode" and return to your cursor.
[Ctrl]b [
[Ctrl]b [page-up]
q
Enter "copy mode" (to exit "copy mode" use "q")
Enter "copy mode" and page-up
Exit "copy mode"
Help
[Ctrl]b ?
Help
Install
yum install tmux
apt install tmux