Last active
April 25, 2020 10:38
-
-
Save stollcri/7d3eb53653a8109d3cd204b7b0344f11 to your computer and use it in GitHub Desktop.
tmux cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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