nohup command > output.log 2>&1 &

Category: Administration

nohup command > output.log 2>&1 &

Run command in background, redirect all output to log

Runs a command in the background that survives terminal closure, with all output saved to a log file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.