Start long-running processes via SSH

· by

Contents

Screen

screen is a nice tool that can be used to detach long-running processes from the current SSH session - and be able to get them back again!

Basic usage

You start it with

$ screen

You detach it with Ctrl + a and then d. After you have pressed this key combination, you will see

[detached]

You get it back again with:

$ screen -r

Named sessions

You can start a named session with

$ screen -S foo

and get it back with

$ screen -r foo

nohup

$ nohup command &

See also