Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the difference between daemons and background processes in linux

Shulou Source: shulou.com Published: 2022-06-03 00:25:55 09月22日 Update

What is the difference between daemons and background processes in linux? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

The difference between a background process and a daemon in linux is:

1. The daemon has been completely detached from the terminal console, and the daemon has not been completely separated from the terminal (the result will still be output to the terminal before the terminal is closed)

2. The daemon will not be affected when the terminal console is closed, and the daemon will stop when the user exits. It needs to be run in nohup command & format to avoid the impact.

3. The session group and current directory of the daemon and the file descriptor are independent. Running in the background is just a fork by the terminal to let the program execute in the background, all of which have not changed.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Process background terminal program console help influence control run clear content just for this file article novice more format user directory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL Huawei Redmi MariaDB