What command line should I write to display the memory used by process as well as the process command line and it's pid ?
Something like:
pid mem cmdline --- --- ------- 112 12M mysql -param1 5 -param2 12 115 15M apache -param1 44 -param2 8 ...
In the Activity Monitor utility, you can see the name of each process running ("Process Name" column) and how much memory each process is using ("Real Mem" column).
try
ps -eo pid,rss,cmd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With