screen:index
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
screen:index [2018/09/24 14:40] – orel | screen: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 " | ||
+ | |||
+ | $ screen -r sessionid | ||
+ | |||
+ | |||
+ | Reattach a given window: ??? | ||
+ | |||
+ | Shortcuts: | ||
+ | |||
+ | * Ctrl+a d : detach | ||
+ | * ... | ||
+ | |||
+ | |||
===== TMUX Tips ===== | ===== TMUX Tips ===== | ||
Line 98: | Line 118: | ||
$ tmux kill-session -t sessionid | $ tmux kill-session -t sessionid | ||
+ | Link a window/pane in another session (multiple display): | ||
+ | $ tmux new-session -s pouet1 | ||
+ | $ tmux new-session -s pouet2 | ||
+ | $ tmux list-panes -a | ||
+ | pouet1:0.0: ... %0 (active) | ||
+ | pouet2:0.0: ... %1 (active) | ||
+ | $ tmux link-window -s pouet1:0.0 -t pouet2 | ||
+ | $ tmux list-panes -a | ||
+ | pouet1:0.0: ... %0 (active) | ||
+ | pouet2:0.0: ... %1 (active) | ||
+ | pouet2:0.0: ... %0 (active) | ||
+ | | ||
+ | ==== Useful Shortcuts ==== | ||
- | Configure your session: | + | * 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 | ||
- | $ tmux set-option -t sessionid -g default-shell /bin/bash | + | I use to rebind 'ctrl-b x' |
- | # enable | + | |
- | $ | + | |
- | | + | tmux bind-key |
- | $ tmux bind-key | + | |
- | | + | |
- | | + | 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.1537800016.txt.gz · Last modified: 2024/03/18 15:05 (external edit)