Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to get a list of background processes in freebsd, but i don't know how. I've tried to use ps command,

ps -ax
ps -e -j

but I haven't found properties which describe background processes. +Tried to use top command, but I've got no result :(

Hmm, I guess that i should see a priority of a process, and if this process has less priority than non-background analogue, so we can conclude that there is a background process.

But that's just a guess...

share|improve this question
What, precisely, do you mean by "background process"? Do you mean processes that have no controlling terminal? Processes that share a controlling terminal with your process but aren't in the foreground? Or something totally different? – David Schwartz Nov 1 '13 at 8:08
Processes that have no controlling terminal :) – Aleksander Korovin Nov 1 '13 at 8:24
up vote 1 down vote accepted

The correct command is


If you wish to have more info (not always available), it is

jobs -l

If you wish to bring job number 3 to the foreground,

fg %3

If you have a stopped job, you can resume its execution in the background by means of

bg %3

As for the BSD-style output ps ax, which, BTW, I use too, it is not too informative: it will show your background process in status S (interruptible sleep) if it is waiting for an event (user input?), or R if it is running. But this will not single them out among the bevvy of other processes. You can indeed identify it by combining this info with user ownership and terminal of execution, but I never do it this way because it is too cumbersome.

share|improve this answer
Thank you for reply :) I hope it will help someone else :) – Aleksander Korovin Nov 1 '13 at 8:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.