Child pages
  • How do I use screen on the Linux systems?

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. From the command prompt, just run screen. This will give you a new subshell.
  2. Run your desired program
  3. Wiki Markup
    Detatch from the screen session using the key sequence *Ctrl-a Ctrl-d*  (note that all screen key bindings start with Ctrl-a).  This will drop you back to your original shell and display a message "\[detached\]", indicating that the screen session is still running.
  4. You can then list the available screen sessions by running "screen -list"
  5. You can reattach to this screen session by running "screen -r". Once reattached, you will be able to take off where you left off and see any output that was printed to the screen during the time that you were detached. If you have multiple screen sessions, then you can specify the tty name (as displayed by screen -list) as an argument to screen -r to attach to a particular session.

Kerberos Issues

If you are using screen on the available SoIC Unified Linux Systems that are using the Unified Workstation Configuration you will need to take special care when using screen. This section explains how you can manage your kerberos keys in this environment but please note that this is NOT necessary when using Unified Server systems. So, for example, this is necessary if you are running screen on a workstation in LH035 but not if you are using a server like silo, tank, or hulk.

A full explanation of the kerberos issues at play can be found in the KB article Understanding Linux Kerberos Issues. In particular, you should follow the recommendations in the section titled *Running Persistent Remote Processes". As explained in this section, the only change you need to make is that you should run kinit to get a kerberos ticket in your screen session. Failure to do this will result in your screen session losing access to your networked home directory.