Skip to content

Instantly share code, notes, and snippets.

@lilywang1988
Last active September 17, 2021 06:58
Show Gist options
  • Save lilywang1988/4aa790125d09c908915505b3dc2c220c to your computer and use it in GitHub Desktop.
Save lilywang1988/4aa790125d09c908915505b3dc2c220c to your computer and use it in GitHub Desktop.
Commonly used screen commands in linux for a data scientist (who is not a linux expert)
  1. Install screen
sudo apt-get update
sudo apt-get install screen
  1. Check the version
screen --version
  1. start a screen session
screen
  1. create a screen window using ctrl + a + c, view all the windows using ctrl + a + ". Detach the screen session via ctrl + a + d. kill the window using ctrl + a + k.

  2. Check the available screen sessions by screen -ls or return to the screen using screen -r [####], where [####] is the number leading the screen sessions available.

  3. Kill all window sessions:

pkill screen
  1. Check the memory use:
free -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment