User Tools

Site Tools


screen:index

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
screen:index [2020/03/24 00:09] orelscreen:index [2024/03/18 15:06] (current) – external edit 127.0.0.1
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 117: Line 137:
   * ctrl-b n => next window   * ctrl-b n => next window
   * ctrl-b p => previous window   * ctrl-b p => previous window
 +  * ctrl-b # => go to window # (select by number)
   * ctrl-b ? => help   * ctrl-b ? => help
   * ctrl-b c => new shell window   * ctrl-b c => new shell window
Line 126: Line 147:
  
    
 +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.1585008591.txt.gz · Last modified: 2024/03/18 15:05 (external edit)