Use of &/JOBS/FG/BG commands under Linux

Source: Internet
Author: User

First, &

This is used at the end of a command to put this command in the background.

Second, "Ctrl" + "Z"

You can place a command that is executing in the foreground in the background and pause.

Third, Jobs

See how many commands are currently running in the background.

Iv. FG

The commands in the background are moved to the foreground to continue running.

If there is more than one command in the background, you can use FG%jobnumber to bring up the selected command,%jobnumber is the ordinal of the command that is being executed in the background through the Jobs command (not the PID ).

V. BG

A command that pauses in the background changes to continue execution.

If there are multiple commands in the background, you can use BG%jobnumber to bring up the selected command,%jobnumber is the ordinal of the command being executed in the background through the Jobs command (not PID).

Above transfer from: http://blog.sina.com.cn/s/blog_673ee2b50100iywr.html

Use of &/JOBS/FG/BG commands under Linux (RPM)

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.