Linux Shell & placed behind the startup parameters to set this process as a background process

Source: Internet
Author: User
Tags switches

& placed after the startup parameter to set this process as a background process

By default, the process is the foreground process, then the shell is occupied, we can not do other operations, for those who do not interact with the process, many times, we want to start in the background, you can start the parameters with a ' & ' to achieve this purpose.

Such as:

Tianfang > Run &
[1] 11319
Tianfang >

When the process switches to the background, we call it job. Switching to the background will output the relevant job information, with the previous output as [1] 11319 cases: [1] indicates that the job ID is 1,11319 indicates that the process ID is 11319. A process that switches to the background can still be viewed with the PS command

In Linux, the essential difference between a command and A & without &

Plus & is handing the command to the Linux kernel to run a process task,

Do not start a process task through the shell.

Linux is a multitasking operating system, and theshell can be understood as a single-tasking operating system (like dos).

Single-tasking operating system, you can start another task by yourself.

Multitasking operating system, you can run multiple tasks at the same time.

Linux Shell & placed behind the startup parameters to set this process as a background process

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.