Run a command immune to hangups.
Section: Processes Jobs and Scheduling
Keep process running after logout
bash
bash
nohup ./long-task.sh > task.out 2>&1 &Explanation
Useful on remote shells when a process should survive disconnects.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Processes Jobs and Scheduling
Show how the shell resolves a command
Reveal whether a name is an alias, builtin, function, or file.
Build command lines from stdin
Pass stdin items as arguments to another command.