linux - under mac terminal: List all of the users whom has at least one running process? -



linux - under mac terminal: List all of the users whom has at least one running process? -

how list of users whom has @ to the lowest degree 1 running process.

the user name should not duplicated. user name should sorted.

$ ps xau | cutting -f1 -d " "| sort | uniq | tail -n +2

you may want weed out names starting _ :

ps xau | cutting -f1 -d " "| sort | uniq | grep -v ^_ | tail -n +2

linux osx terminal

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -