Let's say you only have a terminal or a SSH access and want to perform multiple attached commands at the same time. E.g: wget.
screenPress enter to start using CLI and enter your command.
To detach from your screen (and let the command run), press : Ctrl + a then d
screen -lsYou'll see a list of PIDs. If for example I want to take back the hand on 9623, I'll enter :
screen -r 9623Once finished, kill your screen with : Ctrl + a then k
Confirm pressing y
You can lock your current screen with :
Ctrl + a then x
You current Linux user password will be asked
When you do nested screen, you can switch between screen using command “Ctrl-A” and “n“. It will be move to the next screen. When you need to go to the previous screen, just press “Ctrl-A” and “p“.
To create a new screen window, just press “Ctrl-A” and “c“.
Simplified from tecmint.com