Sunday, 9 October 2016

Tmux/Screen commands

Tmux

1. create a new session named work
tmux new-session -s work

2. kill window 4 in another window
tmux kill-window -t 4

3. show all sessions
tmux ls
(note that is no - "dash" before ls!!)

Screen
1. quit/kill screen session:  -- CAREFULL!!
screen -X -S 6829 quit

2. quick create a screen session:

3 How to swap windows?
The swap-window command is closest to what you want.

"Prefix :" (that is "Ctrl-B :" by default) brings you to the tmux-command prompt. There you enter:

swap-window -s 3 -t 1

No comments:

Post a Comment