Chris Nizzardini, Salt Lake City Utah, Web Developer Specializing in LAMP+Ajax Since 2006

My Blog

Here is my awesome blog. You can find information on programming, linux, documentation, tips for code and database optimization, my thoughts and rants, and whatever else I feel like sharing. Feel free to contribute to the blog by posting comments and asking questions.
Linux

Manage Multiple Shell Sessions with Screen

Screen is useful for running a script or other long process as yourself if you are worried about disconnecting from your SSH session or want to do some other things in the shell as the process runs. You will need screen installed to do this. This will really save you a lot of time with Linux servers.

To start a screen session:

screen -R -D

To detatch from the screen session and continue working from the shell:

Ctrl + a + d

To view the status of your screen sessions:

screen -ls

To reattach an existing screen session:

screen -r <i>screen name</i>

You can get the screen name via the screen -ls command, the screen name should look something like 3003.pts-4.localhost.

Related posts:

  1. Resize Images From Linux Shell using imagemagick
  2. Linux Search From Shell Using Grep Find Xargs

Tags:

Leave a Reply