Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 know that you can connect to various background processes to watch their console output, but is there a way to view the output of all processes at once? Likely it would scroll quickly and be hard to read, but is it possible?

share|improve this question
up vote 2 down vote accepted

Well, you can spawn several processes in your shell in the background and then (if they all use their stdout or stderr) you can get lots of information intermingled in the console - and by intermingled I mean it can possibly even mix data from several processes in the middle of a line.

What you are probably looking for is logging to a file (system services usually use something in /var/log) and then viewing the file(s). There are couple of utilities for this: tail (important option -F, which monitors the file and prints any lines added), less can (in the follow mode) do the same interactively (i.e. you can switch back and forth between following the file and scrolling back). most is another interesting file pager utility, more is the "classic" one found almost everywhere (even on DOS and Windows).

Last but not the least, tee might be of interest - it duplicates its stdin to stdout and to a file, which can often come in handy.

share|improve this answer

If they all write to a logfile, you can use multitail to tail them all simultaneously.

share|improve this answer

All processes? Most background processes actually intentionally close their file descriptors, and there's no easy way to grab them back or force the process to recognize a new one.

You can watch all the messages to syslog, as others have said, and a lot of user-spawned processes do actually have their output directed somewhere (at least, if you're running a sane X startup environment), so you can watch a lot of them if you know what files to look at. But for the most part, you can't see the output of ALL non-user processes because they simply don't have anywhere defined to send output.

share|improve this answer

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.