Home arrow Linux Tips arrow List users with running processes
Syndicate
List users with running processes PDF Print E-mail
Mar 04, 2010 at 08:10 PM
List users with running processes

$ ps aux | sed -n '/USER/!s/\([^ ]\) .*/\1/p' | sort -u

This is different that `who` in that who only cares about logged-in users running shells, this command will show all daemon users and what not; also users logged in remotely via SSH but are running SFTP/SCP only and not a shell.
<Previous   Next>

Mambo is Free Software released under the GNU/GPL License.