[Linux] How to enable a program on a terminal to close the terminal without exiting, linux terminal

Source: Internet
Author: User

[Linux] How to enable a program on a terminal to close the terminal without exiting, linux terminal
Zookeeper does not exit when the terminal starts a program to close the terminal.

Generally, when the terminal is closed, the background program started in this terminal will also be terminated. To keep the background program running after the terminal is closed, use this command:

Nohup command &


For example: nohup test. sh &


On a linux terminal, why can I continue the next command after I open the software by shutting down the software?

This process is the sub-process of your current shell (your terminal) by default, and shell will continue to go down until the sub-process ends by default. Therefore, the software is not closed, the sub-process does not return and the shell does not continue. If this is not the case, you need to put the command in the background for execution (the command is followed by an & symbol, such as command &), so that shell will not wait until the process ends.

In linux, how does one start a program ???

Open the terminal window, log in as the root user, and enter firefox to start firefox. skype should also be fine. If not, you must write the complete executable program path, and then skype

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.