Process-process control-&/fg/bg

Source: Internet
Author: User
If we only want to pause the process rather than terminate the process. Then we usually need to move the processes executed at the front end to the backend for execution.

Process interruption

Ctrl-C

========================================================== ======

Make the process run in the background

Programs &

========================================================== ======

Send the process back to the foreground for execution

To make the process return to the foreground for execution, you can use the fg command.

========================================================== ======

Pause a process

If we only want to pause the process rather than terminate the process. We usually need to move the processes executed on the foreground to the background for execution.

To pause the foreground process, press Ctrl-Z.

At this time, we can use the fg command to restore the process from running on the foreground, or use the bg command to move the process to the background for running.

========================================================== ======

Related Article

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.