Saturday, November 8, 2008

Linux Screen Command

Linux Screen Command

GNU Screen enables you to run many shell processes in a single terminal. So in one e.g. xterm you can have many bash instances like layers in GIMP or Adobe Photoshop. Even better, you can split your terminal into different regions.

1)Create a screen using the command
#screen -S sylesh

2)Close the shell without logout

3)Open a new shell

4)Type screen -ls

[root@sylesh ~]# screen -ls
There are screens on:
16921.sds (Dead ???) (Attached)
Remove dead screens with ’screen -wipe’.
3 Sockets in /tmp/screens/S-root.

5)You can login to that screen using the command screen -r ’screen name’

[root@sylesh ~]# screen -r 5002.sylesh
There is a screen on:

1 comment:

maverick said...


Your blogs are very informative.

Can you please guide me how to change the main IP of a Cpanel server as I had requested my host to set up a PTR record for an IP, unfortunately that IP is not the main IP of the server.

Thank you.