Follow this simple and to the point tutorial : https://danielmiessler.com/study/tmux/.

From Bash

  • tmux ls –> show list of sessions
  • tmux new -s session-name –> new session
  • tmux a –> attach to default session
  • tmux a -t session-name –> attach to a particular session
  • tmux kill-session -t session-name

 

Session (Ctrl-b)

  • $ –> rename session name
  • d –> detach

Window (Ctrl-b)

  • c –> create new window
  • w –> list windows
  • n –> next window
  • p –> previous window

Panes (Ctrl-b)

  • % –> split horizontal
  • ” –> split vertical
  • arrow keys –> navigate
  • q –> pane numbers
  • [ –> scroll mode. q to return to normal mode

tmuxnesting

This is by no means a complete list. Just the commands I tend to use. Figure borrowed from danielmiessler.com.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s