Skip to content

Instantly share code, notes, and snippets.

@jonhattan
Last active March 9, 2018 11:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jonhattan/52d26f00e4e069b4ac67 to your computer and use it in GitHub Desktop.
Save jonhattan/52d26f00e4e069b4ac67 to your computer and use it in GitHub Desktop.
tmux quickstart

tmux quickstart

$ tmux

CTRL+B C -> create new pane

CTRL+B [num] -> go to a pane

CTRL+D -> finish bash session, closes the pane. Closing all panes will destroy the window and thus the tmux

CTRL+B x -> close pane (in case bash got stalled).

CTRL+B , -> rename a pane

CTRL+B D -> detach from the tmux (the tmux --all windows-- is still alive)

CTRL+B ALTGR+[ -> Enter "copy" mode. Move up/down in the window with cursors or PgUp/PgDown. Press q to quit copy mode.

Reuse tmux

$ tmux new -s foo -> create a tmux named foo

$ tmux ls -> list all tmux available

$ tmux at -t foo -> reattach to the foo tmux

More info

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