snippetbashTip
nohup — Allows for a process to live when the terminal gets killed. More information: <https://www.gnu.org/s
Viewed 0 times
commandnohupliveprocesscliallowswhenfor
Problem
How to use the
nohup command: Allows for a process to live when the terminal gets killed. More information: <https://www.gnu.org/software/coreutils/manual/html_node/nohup-invocation.html>.Solution
nohup — Allows for a process to live when the terminal gets killed. More information: <https://www.gnu.org/software/coreutils/manual/html_node/nohup-invocation.html>.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}} &Code Snippets
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}} &Context
tldr-pages: common/nohup
Revisions (0)
No revisions yet.