In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the use of the bg command in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The bg command is used to run the job in the background so that the foreground can perform other tasks. The effect of this command is the same as that of adding a symbol to the instruction, which is executed in the background of the system.
Bg moves the foreground terminal job to the background to run
Summary bg [job_spec...] Parameter job_spec (optional): specifies the job identifier to be moved to background execution, which can be one or more.
The return value returns success unless job control is not turned on or an error occurs.
Example # run the sleep command, then press ctrl+z. Sleep 60 ^ Z [1] + Stopped sleep 60 # uses the bg command to make the job run in the background. Bg% 1 # return message: [1] + sleep 60 & Note that bash's job control command includes bg fg kill wait disown suspend.
This command needs to be executed when the set option monitor is on; to view the job control status: type set-o to view the monitor line; execute set-o monitor or set-m to turn on this option.
This command is a bash built-in command. For help, please see the help command.
Thank you for reading! This is the end of this article on "what is the use of bg commands in Linux?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.