|
List users with running processes |
|
|
|
|
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.
|