1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 11:15:26 +02:00

nohup: add background and output to file examples (#7085)

This commit is contained in:
Antoine Amara 2021-10-19 13:06:42 +02:00 committed by GitHub
parent 32ab0c3c13
commit af038c76b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,4 +5,16 @@
- Run a process that can live beyond the terminal:
`nohup {{command}} {{command_options}}`
`nohup {{command}} {{command_arguments}}`
- Launch nohup in background mode:
`nohup {{command}} {{command_arguments}} &`
- 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}} {{command_arguments}} > {{path/to/output_file}} &`