Difference between revisions of "Screen Command"

From AstroBaki
Jump to navigationJump to search
 
Line 14: Line 14:
 
\title{Screen}
 
\title{Screen}
  
The $\texttt{screen}$ command allows you to start a session on a remote computer and have it persist even if you log out. This is very useful if you're running a long program so that you don't have to stay logged in for that full duration.  
+
The screen command allows you to start a session on a remote computer and have it persist even if you log out. This is very useful if you're running a long program so that you don't have to stay logged in for that full duration.  
  
To attach to an existing screen, do $\texttt{screen\ -r}$. This will return you to an existing session.
+
To attach to an existing screen, do:
 +
\begin{verbatim}
 +
screen -r
 +
\end{verbatim}
 +
This will return you to an existing session.
  
While you're attached to a screen, all screen commands begin with $\texttt{Ctrl-a}$. To detach a session, type $\texttt{Ctrl-a\ d}$.
+
While you're attached to a screen, all screen commands begin with:
 +
\begin{verbatim}
 +
Ctrl-a
 +
\end{verbatim}
 +
To detach a session, type:
 +
\begin{verbatim}
 +
Ctrl-a d
 +
\end{verbatim}
  
To list the existing screens and whether you are attached to one, run $\texttt{screen\ -ls}$.
+
To list the existing screens and whether you are attached to one, run:
 +
\begin{verbatim}
 +
screen -ls
 +
\end{verbatim}  
  
  
 
\end{document}
 
\end{document}
 
</latex>
 
</latex>

Latest revision as of 11:37, 16 April 2019

Reference Material[edit]

Screen

The screen command allows you to start a session on a remote computer and have it persist even if you log out. This is very useful if you’re running a long program so that you don’t have to stay logged in for that full duration.

To attach to an existing screen, do:

screen -r

This will return you to an existing session.

While you’re attached to a screen, all screen commands begin with:

Ctrl-a

To detach a session, type:

Ctrl-a d

To list the existing screens and whether you are attached to one, run:

screen -ls