FG & BG & jobs & Ctrl + z

Source: Internet
Author: User

 

[Root @ mainlinemb daodao-site] # FG 1 -Bash: FG: 1  : No such job [root @ mainlinemb daodao - Site] # jobs [  2 ]-Stopped Vim src/ Tr /COM/daodao/util/ Daodaouiutil. Java [  3 ] + Stopped bounce_httpd. Sh -F- D [root @ mainlinemb daodao -Site] # FG 3 Bounce_httpd.  Sh -F- D [  3 ] + Stopped bounce_httpd. Sh -F- D [root @ mainlinemb daodao -Site] # BG 3  [  3 ] + Bounce_httpd. Sh -F-D &

& This command is most often used at the end of a command and can be executed in the background.

CTRL + z pause the foreground task and put it in the background

Jobs to view the currently suspended task. Run the following command before FG or BG:

FG 1 ~ N the foreground runs the pending task.

BG 1 ~ N: run the suspended task in the background. (Will not end with the window closed)

If there is only one task, you can directly FG or BG

 

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.