User Tools

Site Tools


screen:index
Writing /net/www/auesnard/teaching/data/cache/b/b917139305956507b1746900fb337322.xhtml failed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
screen:index [2018/09/25 13:16] – [TMUX Tips] orelscreen:index [2020/09/01 19:44] orel
Line 18: Line 18:
 Kill a remote screen session Kill a remote screen session
   $ screen -S sessionid -X quit   $ screen -S sessionid -X quit
 +
 +Launch several commands in several windows, but in the same session:
 +
 +  $ screen -S sessionid -t win1 -A -d -m bash
 +  $ screen -S sessionid -X screen -t win2 -A -d -m bash
 +  $ screen -ls sessionid
 +  
 +Reattach all windows (use "ctrl-a + w" to list all windows):
 +
 +  $ screen -r sessionid
 +
 +
 +Reattach a given window: ???
 +
 +Shortcuts:
 +
 +  * Ctrl+a d : detach
 +  * ...
 +
 +
  
 ===== TMUX Tips ===== ===== TMUX Tips =====
Line 110: Line 130:
     pouet2:0.0: ... %1 (active)     pouet2:0.0: ... %1 (active)
     pouet2:0.0: ... %0 (active)     pouet2:0.0: ... %0 (active)
 +    
 +==== Useful Shortcuts ====
 +
 +  * ctrl-b d => detach
 +  * ctrl-b w => list windows and select it
 +  * ctrl-b n => next window
 +  * ctrl-b p => previous window
 +  * ctrl-b # => go to window # (select by number)
 +  * ctrl-b ? => help
 +  * ctrl-b c => new shell window
 +  * ctrl-b x => kill current pane
 +
 +I use to rebind 'ctrl-b x' to kill current session (or server), like that:
 +
 +  tmux bind-key x kill-session  
 +
    
 +If you want to list current tmux sessions:
 +
 +  tmux ls
 +  
 +If you want to (re-)attach your session (assuming there is only one running session):
 +
 +  tmux a
 +  
 +If you want to kill all...
 +
 +  tmux kill-server
  
 +Enjoy!
screen/index.txt · Last modified: 2024/03/18 15:06 by 127.0.0.1