ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 1 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://math.asu.edu/resources/computer-resources/gnu-screen |
| Last Crawled | 2026-03-09 22:45:56 (29 days ago) |
| First Indexed | 2020-06-11 06:03:21 (5 years ago) |
| HTTP Status Code | 200 |
| Meta Title | Screen - Take your terminal session with you! | School of Mathematical and Statistical Sciences |
| Meta Description | Screen is a full-screen window manager that multiplexes a physic |
| Meta Canonical | null |
| Boilerpipe Text | Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). In other words You can run multiple applications in a terminal session that allows you to 'detach'(disconnect) the session by running the applications in the background and 'attach'(reconnect to) the same session later.
Imagine these scenarios:
Case 1:
1. You scheduled a long job from the terminal in your Office desktop.
2. You are in your colleagues office/ home/ attending a conference on east coast. Want to check the status of this job?
Case 2:
1. You have submitted the job from your laptop.
2. But now you cannot shutdown your laptop because the job will get killed.
Case 3:
1. You submitted the job from a machine .
2. The network for that machine goes down for 2 minutes. But now, your job is also killed!!
Screen is a program that comes to your rescue in these scenarios and more
With screen you can...
1. Close and open the terminal's session from any computer
2. Share the session with colleagues
3. Stay immune to network downtime and laptop battery draining out
Using Screen
To start a new screen, simply execute the following command
$ screen
You'll see a message telling you the version of screen you're using and a bit of license information. Just hit space or Enter to get the shell prompt again. Now you are running inside screen. We can now test that its possible to disconnect and reconnect this screen session by running a simple command:
$ ls
and you should get a normal directory listing. Now press ^a-d (Ctrl-a and then 'd') and you'll exit the screen session and see a small [detached] message displayed to tell you this. We can see that screen is still running by using the list command
tpradeep@helios:~$ screen -list
There is a screen on:
4533.pts-0.helios (08/10/2009 04:36:10 AM) (Detached)
1 Socket in /var/run/screen/S-tpradeep.
tpradeep@helios:~$
This shows me that there is one session currently running, and that 4533 is its process ID. we can now retrieve it by typing:
$ screen -r
If there were several screen sessions running then you would have to specify which one you want to retrieve, and you do this by specifying the process ID. For example 'screen -r 4533'.
To end a session, simply exit the last running application (this may be a shell) and you'll get a message like [screen is terminating] to let you know what's going on.
You can also specify a meaningful name while creating a new session.This name will identify the session for "screen -list" and "screen -r" actions. It substitutes the default [tty.host] suffix.
$ screen -S matlab_dartel
you will start a screen session called 'matlab_dartel'.
start matlab by typing 'matlab' at the command prompt(it will open in nodisplay mode by default), do a small task.
tpradeep@helios:~$ matlab
Warning: No display specified. You will not be able to display graphics on the screen.
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 32-bit (glnx86)
February 12, 2009
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit
www.mathworks.com
.
>> eye(2,2)
ans =
1 0
0 1
>>
Detach the session by pressing ^a-d. Check the status of your sessions by means of "screen -list".
tpradeep@helios:~$ screen -list
There are screens on:
5260.matlab_dartel (08/10/2009 04:52:16 AM) (Detached)
4533.pts-0.helios (08/10/2009 04:36:10 AM) (Detached)
2 Sockets in /var/run/screen/S-tpradeep.
tpradeep@helios:~$
Reattach the matlab session by typing 'screen -r matlab_dartel'. You will get back to the same matlab session you started before.
Note:The session has to be detached before you try to attach or alternatively you can do both the things at the same time by typing 'screen -D -R matlab_dartel'
-D -R options mean: If a session is running, then reattach. If necessary detach and logout remotely first. If it was not running create it and notify the user.
Multiple tabs
You can have multiple tabs inside your screen session
Like Firefox is one process but multipe websites can be opened in each tab
Inside a screen session, you can have multiple tabs. ^a-c creates a new console inside the session, you can switch between tabs using ^a-"nr of the tab" E.g ^a0 takes u the first tab, ~a1 takes u to next tab etc...
Key Bindings
Here is a default list of commands that can be used inside screen
Ctrl-a c
Create new window
Ctrl-a k
Kill the current window
Ctrl-a w
List all windows (the current window is marked with "*")
Ctrl-a 0-9
Go to a window numbered 0-9
Ctrl-a n
Go to the next window
Ctrl-a Ctrl-a
Toggle between the current and previous window
Ctrl-a [
Start copy mode
Ctrl-a ]
Paste copied text
Ctrl-a ?
Help (display a list of commands)
Ctrl-a Ctrl-\
Quit screen
Ctrl-a D (Shift-d)
Power detach and logout
Ctrl-a d
Detach but keep shell window open
Sharing Screen
You can connect to a screen session multiple times. This allows you to use the same screen session on multiple terminals (potentially in differing locations). Connect to one screen session as standard, and then use screen -x to connect a second terminal to the same session. You can then see the same output on both terminals.
Note: You need to use the same username for both screen sessions for this to work.
References:
http://www.ibm.com/developerworks/aix/library/au-gnu_screen/index.html |
| Markdown | [](https://www.asu.edu/)
[School of Mathematical and Statistical Sciences](https://math.asu.edu/resources/computer-resources/gnu-screen "School of Mathematical and Statistical Sciences home page")
1. [Home](https://math.asu.edu/)
2. [Resources](https://math.asu.edu/resources)
## [Resources](https://math.asu.edu/resources)
Select Section
[Math Courses](https://math.asu.edu/resources/computer-resources/gnu-screen#cardBodymath-courses)
[MAT 114: College Mathematics](https://math.asu.edu/mat114) [MAT 117: College Algebra](https://math.asu.edu/mat117) [MAT 119: Finite Mathematics](https://math.asu.edu/mat119) [MAT 170: Precalculus](https://math.asu.edu/mat170) [MAT 171: Precalculus: Science. Technology, Engineering and Mathematics (STEM)](https://math.asu.edu/mat171) [MAT 210: Brief Calculus](https://math.asu.edu/mat210) [MAT 211: Mathematics for Business Analysis](https://math.asu.edu/mat211) [MAT 242 - Elementary Linear Algebra](https://math.asu.edu/mat242) [MAT 243: Discrete Mathematical Structures](https://math.asu.edu/mat243) [MAT 251: Calculus for Life Sciences](https://math.asu.edu/mat251) [MAT 265: Calculus for Engineers I](https://math.asu.edu/mat265) [MAT 266: Calculus for Engineers II](https://math.asu.edu/mat266) [MAT 267: Calculus for Engineers III](https://math.asu.edu/mat267) [MAT 270: Calculus with Analytic Geometry I](https://math.asu.edu/mat270) [MAT 271: Calculus with Analytic Geometry II](https://math.asu.edu/mat271) [MAT 272: Calculus with Analytic Geometry III](https://math.asu.edu/mat272) [MAT 275: Modern Differential Equations](https://math.asu.edu/mat275) [MTE 280 - Numbers, Operations and Proportional Reasoning for K-8 Teaching](https://math.asu.edu/MTE280) [STP 226: Elements of Statistics](https://math.asu.edu/stp226) [STP 231: Statistics for Life Science](https://math.asu.edu/stp231) [STP 420: Introductory Applied Statistics](https://math.asu.edu/stp420) [DAT 250: Data Science and Society](https://math.asu.edu/DAT250) [DAT 301: Exploring Data in R and Python](https://math.asu.edu/dat301)
[Special Course Offerings](https://math.asu.edu/resources/computer-resources/gnu-screen#cardBodyspecial-course-offerings)
[Previous Course Announcements](https://math.asu.edu/courses/courses-somss/previous)
[Math Tutoring Center](https://math.asu.edu/resources/math-tutoring-center)
[Math Community Center](https://math.asu.edu/resources/math-community-center)
[Other Tutoring Options](https://math.asu.edu/tutoring)
[Computing Resources](https://math.asu.edu/resources/computer-resources/gnu-screen#cardBodycomputing-resources)
[Common Linux Commands](https://math.asu.edu/resources/computer-resources/common-linux-commands) [Configuring Outlook 365](https://math.asu.edu/resources/computing-resources/O365) [How to Create Your Own Web Page Using SoMSS Template](https://math.asu.edu/resources/computer-resources/how-create-your-own-web-page-using-somss-template) [How to install LaTeX on Macintosh/Windows platforms](https://math.asu.edu/resources/computer-resources/how-install-latex-macintoshwindows-platforms) [How to install SSL VPN on Windows/Mac](https://math.asu.edu/resources/computer-resources/how-install-sslvpn-windowsmac) [How to install TexLive in Windows](https://math.asu.edu/resources/computer-resources/texlive-windows) [How to secure your home page](https://math.asu.edu/resources/computer-resources/how-secure-your-home-page) [How to use MobaXterm from windows to a linux server](https://math.asu.edu/resources/computing-resources/mobaxterm-windows) [How to use the new page header?](https://math.asu.edu/resources/computer-resources/how-use-new-page-header) [Screen - Take your terminal session with you\!](https://math.asu.edu/resources/computer-resources/gnu-screen) [Servers](https://math.asu.edu/resources/computer-resources/servers) [SoMSS Presentation Template](https://math.asu.edu/resources/computer-resources/asu-school-mathematical-and-statistical-sciences-presentation-template) [TI 83/84 Graphing Calculator Workshop](https://math.asu.edu/computing-resources/graphing-calculator-workshop) [What is WeBWork?](https://math.asu.edu/computing-resources/webwork)
[Office hours](https://math.asu.edu/resources/office-hours)
[Policy on Discrimination, Harassment, and Retaliation](https://math.asu.edu/resources/policy-discrimination-harassment-retaliation)
# Screen - Take your terminal session with you\!
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). In other words You can run multiple applications in a terminal session that allows you to 'detach'(disconnect) the session by running the applications in the background and 'attach'(reconnect to) the same session later.
### Imagine these scenarios:
**Case 1:**
1. You scheduled a long job from the terminal in your Office desktop.
2. You are in your colleagues office/ home/ attending a conference on east coast. Want to check the status of this job?
**Case 2:**
1. You have submitted the job from your laptop.
2. But now you cannot shutdown your laptop because the job will get killed.
**Case 3:**
1. You submitted the job from a machine .
2. The network for that machine goes down for 2 minutes. But now, your job is also killed!\!
Screen is a program that comes to your rescue in these scenarios and more
### With screen you can...
1\. Close and open the terminal's session from any computer
2. Share the session with colleagues
3. Stay immune to network downtime and laptop battery draining out
### Using Screen
To start a new screen, simply execute the following command
*\$ screen*
You'll see a message telling you the version of screen you're using and a bit of license information. Just hit space or Enter to get the shell prompt again. Now you are running inside screen. We can now test that its possible to disconnect and reconnect this screen session by running a simple command:
*\$ ls*
and you should get a normal directory listing. Now press ^a-d (Ctrl-a and then 'd') and you'll exit the screen session and see a small \[detached\] message displayed to tell you this. We can see that screen is still running by using the list command
*tpradeep@helios:~\$ screen -list*
*There is a screen on:*
*4533\.pts-0.helios (08/10/2009 04:36:10 AM) (Detached)*
*1 Socket in /var/run/screen/S-tpradeep.*
*tpradeep@helios:~\$*
This shows me that there is one session currently running, and that 4533 is its process ID. we can now retrieve it by typing:
*\$ screen -r*
If there were several screen sessions running then you would have to specify which one you want to retrieve, and you do this by specifying the process ID. For example 'screen -r 4533'.
To end a session, simply exit the last running application (this may be a shell) and you'll get a message like \[screen is terminating\] to let you know what's going on.
You can also specify a meaningful name while creating a new session.This name will identify the session for "screen -list" and "screen -r" actions. It substitutes the default \[tty.host\] suffix.
*\$ screen -S matlab\_dartel*
you will start a screen session called 'matlab\_dartel'.
start matlab by typing 'matlab' at the command prompt(it will open in nodisplay mode by default), do a small task.
*tpradeep@helios:~\$ matlab*
*Warning: No display specified. You will not be able to display graphics on the screen.*
*\< M A T L A B (R) \>*
*Copyright 1984-2009 The MathWorks, Inc.*
*Version 7.8.0.347 (R2009a) 32-bit (glnx86)*
*February 12, 2009*
*To get started, type one of these: helpwin, helpdesk, or demo.*
*For product information, visit [www.mathworks.com](http://www.mathworks.com/ "www.mathworks.com").*
*\>\> eye(2,2)*
*ans =*
*1 0*
*0 1*
*\>\>*
Detach the session by pressing ^a-d. Check the status of your sessions by means of "screen -list".
*tpradeep@helios:~\$ screen -list*
*There are screens on:*
*5260\.matlab\_dartel (08/10/2009 04:52:16 AM) (Detached)*
*4533\.pts-0.helios (08/10/2009 04:36:10 AM) (Detached)*
*2 Sockets in /var/run/screen/S-tpradeep.*
*tpradeep@helios:~\$*
Reattach the matlab session by typing 'screen -r matlab\_dartel'. You will get back to the same matlab session you started before.
Note:The session has to be detached before you try to attach or alternatively you can do both the things at the same time by typing 'screen -D -R matlab\_dartel'
\-D -R options mean: If a session is running, then reattach. If necessary detach and logout remotely first. If it was not running create it and notify the user.
### Multiple tabs
You can have multiple tabs inside your screen session
Like Firefox is one process but multipe websites can be opened in each tab
Inside a screen session, you can have multiple tabs. ^a-c creates a new console inside the session, you can switch between tabs using ^a-"nr of the tab" E.g ^a0 takes u the first tab, ~a1 takes u to next tab etc...
### Key Bindings
Here is a default list of commands that can be used inside screen
| | |
|---|---|
| Ctrl-a c | Create new window |
| Ctrl-a k | Kill the current window |
| Ctrl-a w | List all windows (the current window is marked with "\*") |
| Ctrl-a 0-9 | Go to a window numbered 0-9 |
| Ctrl-a n | Go to the next window |
| Ctrl-a Ctrl-a | Toggle between the current and previous window |
| Ctrl-a \[ | Start copy mode |
| Ctrl-a \] | Paste copied text |
| Ctrl-a ? | Help (display a list of commands) |
| Ctrl-a Ctrl-\\ | Quit screen |
| Ctrl-a D (Shift-d) | Power detach and logout |
| Ctrl-a d | Detach but keep shell window open |
### Sharing Screen
You can connect to a screen session multiple times. This allows you to use the same screen session on multiple terminals (potentially in differing locations). Connect to one screen session as standard, and then use screen -x to connect a second terminal to the same session. You can then see the same output on both terminals.
Note: You need to use the same username for both screen sessions for this to work.
*References:*
<http://www.ibm.com/developerworks/aix/library/au-gnu_screen/index.html>

[Facebook](https://www.facebook.com/asu.math/ "Facebook") [X/Twitter](https://twitter.com/asumathematics "X/Twitter") [LinkedIn](https://www.linkedin.com/in/somss "LinkedIn")
A unit of
[The College of Liberal Arts and Sciences](https://thecollege.asu.edu/)
[Support ASU](https://www.asufoundation.org/colleges-and-programs/schools-and-colleges/the-college-of-liberal-arts-and-sciences/mathematics-gifts-account-CA107121.html)
[Academics](https://math.asu.edu/resources/computer-resources/gnu-screen#footer-link-col)
[Undergraduate degrees](https://math.asu.edu/degrees/undergrad "Undergraduate degrees") [Minors and certificates](https://math.asu.edu/degrees/undergrad/minor-certs "Minors and certificates") [Graduate degrees](https://math.asu.edu/degrees/grad "Graduate degrees") [Graduate certificates](https://math.asu.edu/degree/graduate/statistics-and-data-science-graduate-certificate-certificate-cert "Graduate certificates")
[Connect](https://math.asu.edu/resources/computer-resources/gnu-screen#footer-link-col--2)
[Academic advising](https://math.asu.edu/student-life/undergraduate-experience/academic-advising "Academic advising") [Community outreach](https://math.asu.edu/about/community-outreach "Community outreach") [Employment](https://math.asu.edu/careers "Employment") [Giving](https://math.asu.edu/about/giving "Giving") [People](https://math.asu.edu/people "People") [Contact](https://math.asu.edu/about/contact-us "Contact")
[Current graduate students](https://math.asu.edu/resources/computer-resources/gnu-screen#footer-link-col--3)
[SoMSS Handbooks for Graduate Students in PhD and Master's Programs](https://math.asu.edu/grad-handbooks-somss "SoMSS Handbooks for Graduate Students in PhD and Master's Programs") [Archive of SoMSS Handbooks for Graduate Students](https://math.asu.edu/grad-handbooks-somss-archive "Archive of SoMSS Handbooks for Graduate Students") [Graduate College TA/RA Handbook](https://graduate.asu.edu/ta-ra-handbook "Graduate College TA/RA Handbook") [Student club resources](https://math.asu.edu/student-club-resources "Student club resources")
[Intranet](https://math.asu.edu/resources/computer-resources/gnu-screen#footer-link-col--4)
[ASU Outlook Web Access](https://outlook.com/asurite.asu.edu "ASU Outlook Web Access") [Novel Coronavirus Online Teaching Resources](https://math.asu.edu/coronavirus-online-teaching-resources "Novel Coronavirus Online Teaching Resources")
[](https://www.asu.edu/rankings)
[Maps and Locations](https://www.asu.edu/about/locations-maps) [Jobs](https://cfo.asu.edu/applicant) [Directory](https://search.asu.edu/?search-tabs=web_dir_faculty_staff) [Contact ASU](https://www.asu.edu/about/contact) [My ASU](https://my.asu.edu/)
[Copyright and Trademark](https://www.asu.edu/about/copyright-trademark) [Accessibility](https://accessibility.asu.edu/report) [Privacy](https://www.asu.edu/about/privacy) [Terms of Use](https://www.asu.edu/about/terms-of-use) [Emergency](https://www.asu.edu/emergency) |
| Readable Markdown | Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). In other words You can run multiple applications in a terminal session that allows you to 'detach'(disconnect) the session by running the applications in the background and 'attach'(reconnect to) the same session later.
### Imagine these scenarios:
**Case 1:**
1. You scheduled a long job from the terminal in your Office desktop.
2. You are in your colleagues office/ home/ attending a conference on east coast. Want to check the status of this job?
**Case 2:**
1. You have submitted the job from your laptop.
2. But now you cannot shutdown your laptop because the job will get killed.
**Case 3:**
1. You submitted the job from a machine .
2. The network for that machine goes down for 2 minutes. But now, your job is also killed!\!
Screen is a program that comes to your rescue in these scenarios and more
### With screen you can...
1\. Close and open the terminal's session from any computer
2. Share the session with colleagues
3. Stay immune to network downtime and laptop battery draining out
### Using Screen
To start a new screen, simply execute the following command
*\$ screen*
You'll see a message telling you the version of screen you're using and a bit of license information. Just hit space or Enter to get the shell prompt again. Now you are running inside screen. We can now test that its possible to disconnect and reconnect this screen session by running a simple command:
*\$ ls*
and you should get a normal directory listing. Now press ^a-d (Ctrl-a and then 'd') and you'll exit the screen session and see a small \[detached\] message displayed to tell you this. We can see that screen is still running by using the list command
*tpradeep@helios:~\$ screen -list*
*There is a screen on:*
*4533\.pts-0.helios (08/10/2009 04:36:10 AM) (Detached)*
*1 Socket in /var/run/screen/S-tpradeep.*
*tpradeep@helios:~\$*
This shows me that there is one session currently running, and that 4533 is its process ID. we can now retrieve it by typing:
*\$ screen -r*
If there were several screen sessions running then you would have to specify which one you want to retrieve, and you do this by specifying the process ID. For example 'screen -r 4533'.
To end a session, simply exit the last running application (this may be a shell) and you'll get a message like \[screen is terminating\] to let you know what's going on.
You can also specify a meaningful name while creating a new session.This name will identify the session for "screen -list" and "screen -r" actions. It substitutes the default \[tty.host\] suffix.
*\$ screen -S matlab\_dartel*
you will start a screen session called 'matlab\_dartel'.
start matlab by typing 'matlab' at the command prompt(it will open in nodisplay mode by default), do a small task.
*tpradeep@helios:~\$ matlab*
*Warning: No display specified. You will not be able to display graphics on the screen.*
*\< M A T L A B (R) \>*
*Copyright 1984-2009 The MathWorks, Inc.*
*Version 7.8.0.347 (R2009a) 32-bit (glnx86)*
*February 12, 2009*
*To get started, type one of these: helpwin, helpdesk, or demo.*
*For product information, visit [www.mathworks.com](http://www.mathworks.com/ "www.mathworks.com").*
*\>\> eye(2,2)*
*ans =*
*1 0*
*0 1*
*\>\>*
Detach the session by pressing ^a-d. Check the status of your sessions by means of "screen -list".
*tpradeep@helios:~\$ screen -list*
*There are screens on:*
*5260\.matlab\_dartel (08/10/2009 04:52:16 AM) (Detached)*
*4533\.pts-0.helios (08/10/2009 04:36:10 AM) (Detached)*
*2 Sockets in /var/run/screen/S-tpradeep.*
*tpradeep@helios:~\$*
Reattach the matlab session by typing 'screen -r matlab\_dartel'. You will get back to the same matlab session you started before.
Note:The session has to be detached before you try to attach or alternatively you can do both the things at the same time by typing 'screen -D -R matlab\_dartel'
\-D -R options mean: If a session is running, then reattach. If necessary detach and logout remotely first. If it was not running create it and notify the user.
### Multiple tabs
You can have multiple tabs inside your screen session
Like Firefox is one process but multipe websites can be opened in each tab
Inside a screen session, you can have multiple tabs. ^a-c creates a new console inside the session, you can switch between tabs using ^a-"nr of the tab" E.g ^a0 takes u the first tab, ~a1 takes u to next tab etc...
### Key Bindings
Here is a default list of commands that can be used inside screen
| | |
|---|---|
| Ctrl-a c | Create new window |
| Ctrl-a k | Kill the current window |
| Ctrl-a w | List all windows (the current window is marked with "\*") |
| Ctrl-a 0-9 | Go to a window numbered 0-9 |
| Ctrl-a n | Go to the next window |
| Ctrl-a Ctrl-a | Toggle between the current and previous window |
| Ctrl-a \[ | Start copy mode |
| Ctrl-a \] | Paste copied text |
| Ctrl-a ? | Help (display a list of commands) |
| Ctrl-a Ctrl-\\ | Quit screen |
| Ctrl-a D (Shift-d) | Power detach and logout |
| Ctrl-a d | Detach but keep shell window open |
### Sharing Screen
You can connect to a screen session multiple times. This allows you to use the same screen session on multiple terminals (potentially in differing locations). Connect to one screen session as standard, and then use screen -x to connect a second terminal to the same session. You can then see the same output on both terminals.
Note: You need to use the same username for both screen sessions for this to work.
*References:*
<http://www.ibm.com/developerworks/aix/library/au-gnu_screen/index.html> |
| Shard | 11 (laksa) |
| Root Hash | 7487819192703931211 |
| Unparsed URL | edu,asu!math,/resources/computer-resources/gnu-screen s443 |