Browse Source

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

Antoine Amara 3 years ago
parent
commit
af038c76b2
1 changed files with 13 additions and 1 deletions
  1. 13 1
      pages/common/nohup.md

+ 13 - 1
pages/common/nohup.md

@@ -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}} &`