Screen
Create
1
screen -S name
List all screen
1
screen -ls
Get into the detached screen
1
screen -r name
Exit the screen
detach current screen, it will run in background,
ctrl + a + d
get into the exit screen then use
exit
orctrl + a + k
to exit the current screen completely.- No need to get into the exit screen, just use
screen -S name -X quit
to exit the target screen. kill pid
Switch between the screens
ctrl + a + p
previous screenctrl + a + n
next screen