Skip to content

Instantly share code, notes, and snippets.

@svjan5
Last active January 7, 2018 11:20
Show Gist options
  • Save svjan5/c8fb9606ea557932a98b7e4e586b1c96 to your computer and use it in GitHub Desktop.
Save svjan5/c8fb9606ea557932a98b7e4e586b1c96 to your computer and use it in GitHub Desktop.
Tmux & Screen shortcuts

Create a new session

tmux new -s
screen -S

Detach session

tmux: Ctrl+B+D
screen: Ctrl+A+D

Attach to existing session

tmux a -t
screen -r

List sessions

tmux ls
screen -l s

Detach session from other machines

tmux a -dt

Split screen

Horizontal split: Ctrl + b + "
Vertical split: Ctrl + b + %

Switch between splitted screens

Move dir: Ctrl + b + dir [dir => up/left/down/right]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment