In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use the nohup command in Linux". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to use the nohup command in Linux.
The Linux common command nohup command can run the program in a way that ignores the hang signal, and the output information of the running program will not be displayed to the terminal.
Nohup runs the program by ignoring the hang signal
Add that whether or not the output of the nohup command is redirected to the terminal, the output is appended to the nohup.out file in the current directory. If the nohup.out file in the current directory is not writable, the output is redirected to the $HOME/nohup.out file. If there is no file that can be created or opened for append, the command specified by the command parameter cannot be called. If standard error is a terminal, the specified command is written to all outputs of standard error as standard output is redirected to the same file descriptor.
Syntax nohup (option) (parameter)
Option-- help: online help;-- version: display version information. Parameter programs and options: programs and options to run.
The instance uses the nohup command to submit a job, and if you use the nohup command to submit a job, all output from the job is redirected to a file named nohup.out by default, unless another output file is specified:
Nohup command > myout.file 2 > & 1 & in the above example, the output is redirected to the myout.file file.
This instruction means that you will not hang up and download in the background.
The following command nohup wget site.com/file.zip generates a file named nohup.out in the same directory that contains the output of the running program
Nohup ping-c 10 baidu.com and above are all the contents of this article entitled "how to use nohup commands in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.