tldr/pages/common/nohup.md

21 lines
554 B
Markdown
Raw Normal View History

2014-03-24 10:17:15 +00:00
# nohup
> Allows for a process to live when the terminal gets killed.
> More information: <https://www.gnu.org/software/coreutils/nohup>.
2014-03-24 10:17:15 +00:00
- Run a process that can live beyond the terminal:
2014-03-24 10:17:15 +00:00
`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}} &`