Pages

Wednesday, January 7, 2015

Screens in Ubuntu

Screen is a terminal multiplexer, which allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. Sometimes you need to run a rake task or something else which keep on producing logs and you want to keep it running even you close your terminal.

1. Install Screen

sudo apt-get install screen screen-profiles screen-profiles-extras

2. Create Screen

screen -S name_of_screen

Run your Task in this screen.

3. Detach Screen

ctlr + a then d

4. Attach the Detached Screen 

screen -r name_of_your_screen

Restart your process and then again detach.

5. Terminate the screen 

Go to your screen then type exit, it will terminate your screen.

6. List of screens running

screen -list

No comments:

Post a Comment