M BUZZ CRAZE NEWS
// news

What's the difference between a Job and a Daemon?

By Gabriel Cooper

I currently am a bit confused with all the terms Linux has for running software.

Now these new term job has appeared. What is a job?

It's also a process (running software)? Right?

But especially:

What's the difference between a job and a daemon?

They both seem to be background programs with no user interface. So in what do they differ?

1

1 Answer

A job is any program that you interactively start and that does not detach itself.

The are a couple of commands for job control:

jobs - List all the jobs that are running or suspended.
fg - Bring the job to the foreground.
bg - Send the job to the background.
stop or Ctrl + z - Suspend the job.
kill or Ctrl + c - Terminate the job.

When you append " &" at the end of the command it becomes a "background job".

Jobs tend to end at some point.

A daemon is a process that runs detached from your session. So basically something you/we do not have direct control over. It waits for something to react upon (so when an event happens or a condition is met). Daemons tend to end when you stop them or when the system is shutdown. Where you can start them again manually or during booting.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy