Skip to content

Instantly share code, notes, and snippets.

@nguyendangminh
Last active March 28, 2016 02:12
Show Gist options
  • Save nguyendangminh/85de269858ce8366f480 to your computer and use it in GitHub Desktop.
Save nguyendangminh/85de269858ce8366f480 to your computer and use it in GitHub Desktop.
tmux
# Create a new session
$ tmux
## or
$ tmux new
## or
$ tmux new -s <session-name>
# Detaching from a session
$ tmux detach
## or
Ctrl-b d
# Show sessions
$ tmux ls
# or
Ctrl-b s
# Attach an existing session
$ tmux a # attach the first one
$ tmux a -t <session-name>
# Killing a session
$ tmux kill-session -t <session-name>
# Working with window and pane
## Split window vertically
Ctrl-b "
## toggle between panes
Ctrl-b o
## break the pane out of the window
Ctrl-b !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment