>> To install screen
#yum install screen
>> After installation if you see "/var/run/screen must have permissions 777" then change the permission to 777
#chmod 777 /var/run/screen
>> To list screenname and state (attached or detached)
#screen -ls
After typing screen -ls it will show whether screen is "detached" or "attached" state
>> To reattach "detached" screen
#screen -r <screenname>
>> Leaving screen
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
#screen -D <screenname> then
#screen -r <screenname>