If you use top in batch mode you get a list of all processes:
top -b -n 1 > list_of_processes
Before that, if you want the output sorted by memory usage you can do the following:
top
M (this sorts the output on the screen by memory usage)
W (this writes the sort settings to a configuration file ~/.toprc; this settings are used when you then start top in batch mode as described above)
http://www.unix.com/suse/112679-how-check-memory-utilization-each-process.html
No comments:
Post a Comment