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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store