DevTools
tmux
tmux commands for terminal multiplexing and session management.
34 commands
Windows
MacOS
Linux
#terminal-multiplexer
#productivity
Session Management
Create a new named session
tmux new -s mysession
List all active sessions
tmux ls
Attach to a named session
tmux attach -t mysession
Detach from the current session
tmux detach
Kill a specific session
tmux kill-session -t mysession
Rename a session
tmux rename-session -t old new
Switch to another session
tmux switch -t mysession
Window Management
Create a new window in current session
tmux new-window
Create a named window
tmux new-window -n mywin
Switch to window by index
tmux select-window -t 0
Rename the current window
tmux rename-window newname
Kill window by index
tmux kill-window -t 2
List all windows in the session
tmux list-windows
Pane Management
Split pane horizontally
tmux split-window -h
Split pane vertically
tmux split-window -v
Move to the pane on the left
tmux select-pane -L
Move to the pane on the right
tmux select-pane -R
Move to the pane above
tmux select-pane -U
Move to the pane below
tmux select-pane -D
Close the current pane
tmux kill-pane
Resize pane 10 cells to the right
tmux resize-pane -R 10
Navigation
Show info about the current pane
tmux display-message
List all key bindings
tmux list-keys
List all tmux commands
tmux list-commands
Show global options
tmux show-options -g
Interactive session and window chooser
tmux choose-tree
Configuration
Reload tmux configuration
tmux source-file ~/.tmux.conf
Enable mouse support globally
tmux set -g mouse on
Start window numbering at 1
tmux set -g base-index 1
Set scrollback buffer size
tmux set -g history-limit 10000
Set status bar background color
tmux set -g status-style bg=blue
Quick Commands
Create a new named tmux session
tmux new -s mysession
Attach to an existing named session
tmux attach -t mysession
List all active tmux sessions
tmux ls