Line 4: | Line 4: | ||
*Enter the command 'screen' and press enter | *Enter the command 'screen' and press enter | ||
**The screen shell will look very similar to your normal terminal shell | **The screen shell will look very similar to your normal terminal shell | ||
+ | *screen commands starts with pressing Ctr-a in the keyboard | ||
+ | **'Ctr-a c', create new window | ||
+ | **'Ctr-a Ctr-a', Switch to previous window | ||
+ | **'Ctr-a n', Switch to next window | ||
+ | **'Ctr-a p', Switch to previous window | ||
+ | **'Ctr-a #', # is the id of the window you want to move to | ||
+ | **'Ctr-a Shift-'', See the list of opened windows. Also you can select a window to move to. | ||
+ | **'Ctr-a Shift-a', to rename the current window. Will help later to remember the tasks in the windows | ||
+ | **'Ctr-a Shift-k', Kill program in current window |
Revision as of 08:01, 7 March 2009
Keeping a process running after closing an ssh connection to a Linux computer
- Connect to the Linux computer with ssh
- Enter the command 'screen' and press enter
- The screen shell will look very similar to your normal terminal shell
- screen commands starts with pressing Ctr-a in the keyboard
- 'Ctr-a c', create new window
- 'Ctr-a Ctr-a', Switch to previous window
- 'Ctr-a n', Switch to next window
- 'Ctr-a p', Switch to previous window
- 'Ctr-a #', # is the id of the window you want to move to
- 'Ctr-a Shift-, See the list of opened windows. Also you can select a window to move to.
- 'Ctr-a Shift-a', to rename the current window. Will help later to remember the tasks in the windows
- 'Ctr-a Shift-k', Kill program in current window