

Daemons running without root privileges won't.If root is running graphical programs, they will show up.This can be achieved using ps' -U switch. On a standard system, where root does not run graphical programs, you could simply restrict the previous list to root's processes. Chromium) are not attached to a terminal, they also appear in the output. The big problem here comes when your system runs a graphical environment. The tty output field contains "?" when the process has no controlling terminal. This can be done quite easily with ps: $ ps -eo 'tty,pid,comm' | grep ^? Now, if we use the information that I gave in my answer, we could find running daemons by searching for processes which run without a controlling terminal attached to them. Just to make the notion a little clearer : a program is an executable file (visible in the output of ls) a process is an instance of that program (visible in the output of ps). For this reason, there is no sense in "finding daemons on the filesystem". The notion of daemon is attached to processes, not files.
