Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Useful Screen Commands  (Read 13221 times)

0 Members and 1 Guest are viewing this topic.

nidhinjo

  • Guest
Useful Screen Commands
« on: November 01, 2018, 12:52:29 pm »
>> To install screen

Code: [Select]
#yum install screen
>> After installation if you see "/var/run/screen must have permissions 777" then change the permission to 777 

Code: [Select]
#chmod 777 /var/run/screen
>> To list screenname and state (attached or detached)

Code: [Select]
#screen -ls
After typing screen -ls it will show whether screen is "detached" or "attached" state

>> To reattach "detached" screen

Code: [Select]
#screen -r <screenname>
>> Leaving screen

Code: [Select]
press down ctrl + A together and type D   (ctrl A + D)

>> When u type screen -ls if the screen is attached, then do the below

Code: [Select]
#screen -D <screenname>     then

#screen -r <screenname>