Tmux
Default PREFIX is “CTRL + b”
Run a command
Create a new window (with shell)
PREFIX : c
Rename a window
PREFIX : , # Then type name of Window
Switch to window number 2
PREFIX : 2
Choose windows from a list
PREFIX : w
Split in vertical
PREFIX : %
Move between pane
PREFIX : ; # can use arrow
Move to next pane
PREFIX : o
Close the current pane
PREFIX : x # type exit
Split in horizontal
PREFIX : "
Session
Destroy a session
CTRL + D
Choose a session from a list
PREFIX : s
Detach a session
PREFIX : d
List sessions
tmux ls
Rename a session
tmux rename-session -t $SESSIONNAME NEWNAME
Attach session
tmux attach-session -t $SESSIONNAME
Start a named session
tmux new -s my_sesion
Kill a session
tmux kill-session -t $SESSIONNAME
Kill all sessions
tmux kill-server
Logging Plugin
git clone https://github.com/tmux-plugins/tmux-logging ~/.tmux/tmux-logging
Save history
ALT + SHIFT + P
Copy Mode
# First enable scrolling
PREFIX : [
# Then Arrow-keys for navigationto start copying
# then copy your data to the Tmux buffer
PREFIX : w
# Paste your buffer
PREFIX : ]