Start screen with
$> screen
Once inside screen, the windows act mostly like a terminal, but now you can issue commands to screen using Ctrl-a and a command key. The useful keys that I have been using are:- Create a window (Ctrl-a c)
- Next (Ctrl-a n) or Previous (Ctrl-a p) window.
- Detach (Ctrl-a d)
$> screen -ls
There are screens on:
11999.pts-0.localhost (Attached)
17129.pts-3.localhost (Detached)
$> screen -r 17129.pts-3.localhost
The -r flag resumes the detached screen session.11999.pts-0.localhost (Attached)
17129.pts-3.localhost (Detached)
$> screen -r 17129.pts-3.localhost
Detaching is useful especially for long-running programs or for conserving the state of many terminal windows.
No comments:
Post a Comment