Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bash-using-screen [2018/02/26 04:17]
telatina created
bash-using-screen [2018/02/26 04:20] (current)
telatina
Line 18: Line 18:
   - First of all, we have to check no other screen session is active: <​code>​screen -list</​code>​   - First of all, we have to check no other screen session is active: <​code>​screen -list</​code>​
   - If the previous command gives no output (or a message like //No Sockets found in ...//), then we can create a new screen   - If the previous command gives no output (or a message like //No Sockets found in ...//), then we can create a new screen
-  - To create a new ''​screen''​ session, type this command: <​code>​screen -S climb</​code>​With the ''​-S''​ switch we gave our session a handy nickname ("climb"), but it's not mandatory to do so, but can be very helpful.+  - To create a new ''​screen''​ session, type this command: <​code>​screen -S course</​code>​With the ''​-S''​ switch we gave our session a handy nickname ("course"), but it's not mandatory to do so, but can be very helpful.
   - Now we are inside our "​screen"​ and we'll have to press ENTER to get rid of a welcome text. If we close the terminal //window//, we don't lose what we were doing.   - Now we are inside our "​screen"​ and we'll have to press ENTER to get rid of a welcome text. If we close the terminal //window//, we don't lose what we were doing.
  
 === To reconnect to an existing screen session === === To reconnect to an existing screen session ===
   - To re-attach to our previous screen: <code bash>   - To re-attach to our previous screen: <code bash>
-screen -r climb</​code>​+screen -dr course</​code>​
  
 === Interacting with the screen program === === Interacting with the screen program ===
Line 30: Line 30:
   * ''​Ctrl + A, P''​ to navigate to the **P** revious terminal   * ''​Ctrl + A, P''​ to navigate to the **P** revious terminal
   * ''​Ctrl + A, N''​ to navigate to the **N**ext terminal   * ''​Ctrl + A, N''​ to navigate to the **N**ext terminal
-  * ''​Ctrl + A, D''​ to **D**etach from the session: we'll return back to the "​parent"​ terminal where we can reattach to the screen session with <​code>​screen -r climb</​code>​+  * ''​Ctrl + A, D''​ to **D**etach from the session: we'll return back to the "​parent"​ terminal where we can reattach to the screen session with ''​screen -r course''​. 
 +  * 
 === Further reading === === Further reading ===
 For a more information you can [[https://​www.linux.com/​learn/​taking-command-terminal-gnu-screen|read this article about screen]]. For a more information you can [[https://​www.linux.com/​learn/​taking-command-terminal-gnu-screen|read this article about screen]].