Nohup command: Run a program in daemon mode

Source: Internet
Author: User
Nohup command: If you are running a process and you feel that the process will not end when you exit the account, you can use the Nohup command. This command can continue to run the process after you exit the account/close the terminal. Nohup is the meaning of not hanging up. The general form of the command is: Nohup Command & Submit a job using nohup commands if the job is submitted using the Nohup command, Then, by default, all output of the job is redirected to a file named Nohup.out unless an output file is specified: Nohup command > Myout.file 2>&1 & In the example above, 0–stdin ( Standard input), 1–stdout (standardized output), 2–stderr (standard error), 2>&1 is to redirect standards Errors (2) to standard output (&1), &1) is then redirected to the Myout.file file. Use jobs to view tasks. Use FG%n to close. There are two commonly used FTP tools Ncftpget and Ncftpput, can achieve FTP upload and download, we can use the Nohup command in the background to implement file upload and download.

Nohup command: Run a program in daemon mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.