Skip to content

Instantly share code, notes, and snippets.

@flavienbwk
Last active April 10, 2021 14:49
Show Gist options
  • Select an option

  • Save flavienbwk/231c57aebd8f0645a1481035a713ebe9 to your computer and use it in GitHub Desktop.

Select an option

Save flavienbwk/231c57aebd8f0645a1481035a713ebe9 to your computer and use it in GitHub Desktop.

Revisions

  1. flavienbwk revised this gist Apr 10, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions SCREEN_COMMAND_GUIDE.md
    Original 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/)
  2. flavienbwk revised this gist Apr 10, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions SCREEN_COMMAND_GUIDE.md
    Original 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“.
  3. flavienbwk revised this gist Apr 10, 2021. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions SCREEN_COMMAND_GUIDE.md
    Original 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“.


  4. flavienbwk revised this gist Apr 10, 2021. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions SCREEN_COMMAND_GUIDE.md
    Original 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`
  5. flavienbwk renamed this gist Apr 10, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. flavienbwk created this gist Apr 10, 2021.
    29 changes: 29 additions & 0 deletions README.md
    Original 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
    ```