Linux Must-Know Series - not hang up & running in the background to run nohup + + Redirect

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/sinat_34611224/article/details/89785820

nohup command > file_name 2>&1 &

  • nohup: do not hang up the run, the permanent command execution continues;
  • &: Is running in the background;
  • 2> & 1: The standard error (2) is redirected to the standard output (& 1), the standard output (& 1) and then is inputted to the redirected file_name file.

command name you want to run, file_name file name you want to export.

Guess you like

Origin blog.csdn.net/sinat_34611224/article/details/89785820