Using screen Command in Linux

The screen command is commonly used in remote access to a Linux server. In particular, it can save the system administrator a large amount of time in performing a same task on a number of servers in parallel.

1. Execute a command in screen mode:
# screen -d -m 'command'

2. Enter screen console:
# screen

3. Resume a screen console:
# screen -r 'pid'

4. Exit a screen console:
# Ctrl+A
# Ctrl+D