Skip to content

Instantly share code, notes, and snippets.

@stollcri
Last active April 25, 2020 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stollcri/7d3eb53653a8109d3cd204b7b0344f11 to your computer and use it in GitHub Desktop.
Save stollcri/7d3eb53653a8109d3cd204b7b0344f11 to your computer and use it in GitHub Desktop.
tmux cheatsheet
# Start new session with name
tmux new -s SESSION_NAME
# Split into 2 side by side panes
<Ctrl>-b %
# Split into 2 top over bottom
<Ctrl>-b "
# Switch pane (left)
<Ctrl>-b <Left>
# Set first pane width to 120
<Ctrl>-b : resize-pane -t 0 -x 124
# Enter scroll mode (with arrow keys
<Ctrl>-b [
# Detach from a session
<Ctrl>-b d
# Attach to existing session
tmux a -t SESSION_NAME
# Attach to last session
tmux a
# List sessions
tmux ls
# Kill/Delete a session
tmux kill-session -a -t SESSION_NAME
# Kill/Delete all sessions
tmux kill-session -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment