nohup
Allows for a process to live when the terminal gets killed. More information: https://www.gnu.org/software/coreutils/nohup.
-
Run a process that can live beyond the terminal:
nohup {{command}} {{argument1 argument2 ...}}
-
Launch
nohup
in background mode:
nohup {{command}} {{argument1 argument2 ...}} &
-
Run a shell script that can live beyond the terminal:
nohup {{path/to/script.sh}} &
-
Run a process and write the output to a specific file:
nohup {{command}} {{argument1 argument2 ...}} > {{path/to/output_file}} &
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.