Linux screen command, useful moments

To create screen:

screen -S cpu_check

To detach:

Ctrl+A+D

Get list of existen screens:

screen -ls

To back to screen

screen -r 22324.cpu_check

To back to screen if there is only one created:

screen -x

Also to back to screen:

screen -x 22324.cpu_check

To create a screen with name “cpu_check”, execute a command, detach and leave ability to enter it back if needed

screen -dm -S cpu_check bash -c 'top -c; exec bash'

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *