ps command

Posted:
in macOS edited January 2014
How do you use the ps command?



Any favorite handy ps options you use a lot?



Examples?

Comments

  • Reply 1 of 3
    on linux i use ps -axlf a lot to locate the heirarchies of processes but unfortunately the -f option isn't implemented on apples BSD and ps -axl doesn't really cut it for me.



    anyone who knows a way of displaying the heiarchies of PIDs on osx?
  • Reply 2 of 3
    chychchych Posts: 860member
    Read the man pages (type in man ps)



    I usually use:

    ps -aux

    and

    ps -aux | grep "search string"



    Make sure your terminal window is wide, ps has an issue of not displaying stuff on narrow terminal windows.
  • Reply 3 of 3
    for just finding PID's or being able to see the names in the small windows, I use 'ps -ax'.

    However, I think 'top' is much more fun and 'top -u' shows the top processor hogs.



    Weird, the kernal_tas is being a processor hog... I don't think it should be...
Sign In or Register to comment.