Common commands for "process" Linux Process Control

Source: Internet
Author: User

1) &

Example: Ping baidu.com &

This is used at the end of a command, you can put this command in the background to execute, but this is also possible because the terminal exit causes the process ye to exit

2) nohup background operation ( recommended )

Example: Ping baidu.com &

This will not affect process execution even if the terminal exits

3) CTRL + Z process paused
Scenario: The CP centos6.6.iso/tmp/will be running for a long time, and the terminal will take up the inability to manipulate the other commands, this time in case of broken nets or anything.

4) Jobs
See how many commands are currently running in the background

5) BG

The ordinal of the command executed (not PID)

6) FG (contrary to BG)

ordinal of the command executed (not PID) If there are multiple commands in the background, you can use FG%jobnumber to bring up the selected command , %jobnumber is the serial number (not the PID) of the command being executed in the background that was found through the jobs command .



Common commands for "process" Linux Process Control

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.