nohup
SafeKeep running after logout
nohup <command> &
Ignores hangup so the job survives SSH disconnects. Output goes to nohup.out.
Examples
nohup ./migrate.sh > migrate.log 2>&1 &Background with own log
Syntax
nohup <cmd> [&]
Before you run it
Don't forget orphaned jobs.
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store