Last active
April 10, 2021 14:49
-
-
Save flavienbwk/231c57aebd8f0645a1481035a713ebe9 to your computer and use it in GitHub Desktop.
Revisions
-
flavienbwk revised this gist
Apr 10, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,4 +46,6 @@ When you do nested screen, you can switch between screen using command “Ctrl-A To create a new screen window, just press “Ctrl-A” and “c“. ## Credits Simplified from [tecmint.com](https://www.tecmint.com/screen-command-examples-to-manage-linux-terminals/) -
flavienbwk revised this gist
Apr 10, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,6 +38,8 @@ You can lock your current screen with : `Ctrl` + `a` then `x` You current Linux user password will be asked ## Switching between screens When you do nested screen, you can switch between screen using command “Ctrl-A” and “n“. It will be move to the next screen. When you need to go to the previous screen, just press “Ctrl-A” and “p“. -
flavienbwk revised this gist
Apr 10, 2021 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,3 +31,17 @@ screen -r 9623 Once finished, kill your screen with : `Ctrl` + `a` then `k` Confirm pressing `y` ## Lock your screen You can lock your current screen with : `Ctrl` + `a` then `x` ## Switching between screens When you do nested screen, you can switch between screen using command “Ctrl-A” and “n“. It will be move to the next screen. When you need to go to the previous screen, just press “Ctrl-A” and “p“. To create a new screen window, just press “Ctrl-A” and “c“. -
flavienbwk revised this gist
Apr 10, 2021 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,4 +26,8 @@ You'll see a list of PIDs. If for example I want to take back the hand on `9623` screen -r 9623 ``` ## Kill the screen Once finished, kill your screen with : `Ctrl` + `a` then `k` Confirm pressing `y` -
flavienbwk renamed this gist
Apr 10, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
flavienbwk created this gist
Apr 10, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ # Using screen Let's say you only have a terminal or a SSH access and want to perform multiple attached commands at the same time. E.g: `wget`. ## Start a new screen ```bash screen ``` Press enter to start using CLI and enter your command. ## Detach the screen To detach from your screen (and let the command run), press : `Ctrl` + `a` then `d` ## List and re-attach running screens ```bash screen -ls ``` You'll see a list of PIDs. If for example I want to take back the hand on `9623`, I'll enter : ```bash screen -r 9623 ```