| | 1 | == Screen program == |
| | 2 | |
| | 3 | With screen you can create one or more sessions in your current SSH terminal. Just run |
| | 4 | |
| | 5 | {{{ |
| | 6 | screen |
| | 7 | }}} |
| | 8 | |
| | 9 | Ctrl a c - Creates a new screen session so that you can use more than one screen session at once. |
| | 10 | |
| | 11 | Ctrl a n - Switches to the next screen session (if you use more than one). |
| | 12 | |
| | 13 | Ctrl a p - Switches to the previous screen session (if you use more than one). |
| | 14 | |
| | 15 | Ctrl a d - Detaches a screen session (without killing the processes in it - they continue). |
| | 16 | |
| | 17 | To close a screen session where all tasks are finished you can type |
| | 18 | {{{ |
| | 19 | exit |
| | 20 | }}} |
| | 21 | |
| | 22 | Back on your normal SSH terminal, you can run |
| | 23 | |
| | 24 | screen -ls |
| | 25 | |
| | 26 | to get a list of your current screen sessions. |
| | 27 | |
| | 28 | To reconnect to one of these sessions, run |
| | 29 | {{{ |
| | 30 | screen -r 1234.my.server |
| | 31 | }}} |