Toggle navigation
All Forums
Recent Posts
Sign In
Unix ps command for Mac OS apps
Jump to First Reply
macrules101
Posted:
February 28, 2004 11:10PM
in
macOS
edited January 2014
When i run the ps command through unix it only shows up all current proceses in the unix shell. How can i get this to encompass all of mac os processes?
is this even posible?
thanks
BTW: Mac Rules!!!
Comments
Reply 1 of 6
ghost_user_name
Posts:
22,667
member
February 29, 2004 1:04AM
ps -ax
Enjoy.
0
Likes
0
Dislikes
0
Informatives
Reply 2 of 6
whisper
Posts:
735
member
February 29, 2004 1:18AM
The ps man page says something about it only displaying processes attached to a terminal. Typing "top" will give you info about OSX processes though.
0
Likes
0
Dislikes
0
Informatives
Reply 3 of 6
whisper
Posts:
735
member
February 29, 2004 1:40AM
Quote:
Originally posted by Brad
ps -ax
Enjoy.
Cool! I didn't know about that
0
Likes
0
Dislikes
0
Informatives
Reply 4 of 6
scott
Posts:
7,431
member
February 29, 2004 7:30AM
>man ps
0
Likes
0
Dislikes
0
Informatives
Reply 5 of 6
noleli2
Posts:
129
member
February 29, 2004 9:39AM
If you really want to see just OS X apps, assuming you keep them where you're supposed to, you can just pipe a grep into ps:
Code:
ps -ax | grep Applications
0
Likes
0
Dislikes
0
Informatives
Reply 6 of 6
ghost_user_name
Posts:
22,667
member
February 29, 2004 11:31AM
Ok just to point out...
You don't need the "-" with the ps commands you have listed with bash.
ps ax
(and for memory usage)
ps aux
However if you want the same output as ps ax only just the process names (not the directorys) you need the "-" and the command is "ps -A"
This is just because of ps's different style of options...
"ps - [letters]" are Unix98 style options.
"ps [letters]" are BSD-style options. Which I guess is OSX style too.
"ps --[words]" are GNU style options.
All get the job done... so it is up to you..
0
Likes
0
Dislikes
0
Informatives
Sign In
or
Register
to comment.
Comments
Enjoy.
Originally posted by Brad
ps -ax
Enjoy.
Cool! I didn't know about that
ps -ax | grep Applications
You don't need the "-" with the ps commands you have listed with bash.
ps ax
(and for memory usage)
ps aux
However if you want the same output as ps ax only just the process names (not the directorys) you need the "-" and the command is "ps -A"
This is just because of ps's different style of options...
"ps - [letters]" are Unix98 style options.
"ps [letters]" are BSD-style options. Which I guess is OSX style too.
"ps --[words]" are GNU style options.
All get the job done... so it is up to you..