Linux foreground program goes to background execution (closes terminal without killing command)

Source: Internet
Author: User

Do you often encounter situations where you connect to a Linux/unix machine via SSH or terminal putty, execute a program, a script, or a command, but now you need to close the SSH or terminal, because that program, script, or command is running, Once you close without doing any processing this process will be closed together, so half of the work is wasted, it is a pity!
Here's a way to get a running program, script, or command to go back to the background when you need to close the terminal, assuming your program, script, or command is executing, as you can do here:

1. Press CTRL + Z
2. Input command bg
3, input disown (may only see one or two letters in the input, do not think that no input, the direct return can be completed)
4. Exit

Reprinted from: http://blog.csdn.net/flm2003/article/details/8130210

Linux foreground program goes to background execution (closes terminal without killing command)

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.