Files
huhuhu_config/tutos/screen.txt

35 lines
1.6 KiB
Plaintext

**screen** sudo apt-get install screen pour avoir plusieurs terminals
**ctrl-a |** split vertically
**ctrl-a S** split horizontally
**ctrl-a Q** unsplit all
**ctrl-a X** close current pane
**ctrl-a K** kill current pane
**ctrl-a \** kill all sessions (if it doesn't work see below)
**ctrl-a d** get out of screen
**screen -ls** see list of sessions
**screen -XS 42353 quit** -X execute command, -S session PID to execute on, five digit number specific at the session
**ctrl-a d** get out of screen without killing it then run: screen -r to recover session
**ctrl-a tab** switch from one splited window to another
**ctrl-a n** or **p** move to the next or previous windows
**ctrl-a c** start new terminal (in the new window)
**screen** prompt command "screen" to open a new window in the same directory
**ctrl-a space** next terminal
**ctrl-a backspace** previous terminal
**ctrl-a ctrl a** flip flop between to terminal
**ctrl-a "** switch between terminal with a list
**,** move windows number down
**.** move windows number up
**ctrl-a A** rename
**ctrl-a l** resize
**ctrl-a w** show windows name
**ctrl-a esc** go in scroll mode (press esc again to axit)
**ctrl-a :** enter command line
** scrollback 10000** set number of line in the buffer
to configure actions when launch :
**vim ~/.screenrc ** go to or create file screenrc, then write inside:
**startup_message off** avoid message at start
**chdir -directorie-** change the working directorie
**screen -t -name- -action-** start a windows with a name and execute action (for example: screen -t shell vim /Bureau/fiche/chell.txt)
**focus** focus on next screen