What Is a Daemon? The Programs Working Behind Your Apps
Your computer doesn't need a window open for every job it does. A daemon is a program that runs in the background to provide a service, such as handling print requests or collecting system records.
The term is common on Linux and macOS, operating systems that manage a computer's hardware and programs. A daemon is a kind of process, the name for a running instance of a program.
Windows has a related concept called a service. Microsoft's service documentation describes programs that can start when the computer boots and run without their own user-facing window.
Linux in 100 Seconds
The print window can disappear while the work continues
When you send a document to a printing system, it can place the job in a queue and handle it separately from the app you were using. You can get back to writing while the printing software waits for the printer and manages the waiting jobs.
One real example is cupsd, the scheduler for the CUPS printing system. Its official manual describes how it normally runs as a daemon.
This separation is useful when several programs want the same service. Each app can submit work to the printing system instead of managing the printer entirely on its own.
What starts a daemon?
Some start during boot, when the computer is starting up. Others start only when a request, a connected device, or another event creates work for them.
A service manager is software that starts, stops, and supervises these services. On many Linux systems, that job belongs to systemd, whose daemon documentation describes both startup and on-demand activation.
Running in the background doesn't mean working flat out all the time. A daemon may wait quietly until it has something to do, and being a daemon doesn't require it to run forever.
It also doesn't have to be a network server. Some serve only programs on the same computer, while others accept requests from elsewhere.
The records behind a troubleshooting session
Another useful background job is collecting logs, records that programs and the operating system produce about their activity. These might include startup messages or errors that help explain why a service failed.
On systems that use it, systemd-journald collects and stores those records. Its documentation lists the sources it receives, including messages from services and the operating system's core.
The logging daemon doesn't automatically understand or repair every fault. What investigators can learn depends on which records were generated, collected, and kept.
Scheduled work uses background services, too. Cron, a scheduler that launches commands at specified times, is another example; the program it starts has its own work to complete.
- Stop breaking your focus to look up a command: the answer is already under your wrist.
- Find what you need fast, with commands grouped by job from files to networking.
- Enough room for a laptop or a keyboard and mouse, on a soft surface that's easy on your wrists.
Background programs still need boundaries
A daemon runs with the permissions of its assigned account. Some need powerful system access, while others can do their jobs with much less; the name “daemon” doesn't automatically grant administrator powers.
The systemd guidance recommends using the service manager to limit access to files and other resources. A service that only needs to read one folder shouldn't receive broad access just because nobody is watching it work.
Likewise, a background process isn't suspicious merely because it lacks a window. If you're investigating one, check which installed software it belongs to, what service it provides, and whether its behavior matches that purpose.
If a daemon is using excessive processor time or memory, look at its status and recent logs before stopping it. Ending a printing or logging service can interrupt useful work, so identifying the job first makes the next action much clearer.
Inetd and Xinetd: The Programs That Start Network Services on Demand

Cron Explained: How Computers Keep a Schedule

Unix: A Family History, a Standard and a Set of Permissions

QUOTE:
"Amateurs hack systems, professionals hack people."
