tmux Flashcards
Check the version of tmux
tmux -V
start a tmux session, run the following command(s):
tmux
to close the tmux session, run the following command(s):
exit
create a new session named ‘basic’ with tmux
tmux new-session -s basic
OR
tmux new -s basic
alias: ts
detach from a tmux session, run the following command(s):
Prefix d (ctrl-a d)
list existing tmux session, run the following command(s):
tmux list-session
OR
tmux ls (alias: tl)
creating a new tmux session in the background, run the following command(s):
tmux new-session -s session_name -d
attach to a tmux session (if only have one session), run the following command(s):
tmux attach
attach to a specific session (multiple detached sessions), run the following command(s):
tmux attach -t session_name (alias: ta)
to kill a session, run the following command(s):
tmux kill-session -t session_name
to create a new window, run the following command(s):
Prefix c
to rename a window, run the following command(s):
Prefix ,
to move to next window, run the following command(s):
Prefix n
to move to previous window, run the following command(s):
Prefix p
to quickly jump to a numbered window, run the following command(s):
Prefix number