Linux - How to display memory usage with ps command, Diaplay memory usage

How to display memory usage with ps command

Find memory usage of a particular process or command by a user

ps -o comm,%mem,args -u nobody

output:
proftpd          0.2 proftpd: (accepting connections)
mysqld           1.0 /opt/lampp/sbin/mysqld --basedir=/opt/lampp....
httpd            2.4 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
httpd            2.4 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
httpd            2.4 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
httpd            2.4 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
httpd            2.4 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
httpd            2.4 /opt/lampp/bin/httpd -k start -DSSL -DPHP5

The ps command is used to print the memory usage of a process. This command will be much helpful to find the process which utilizes more memory, -u is used to specify the user.

The topic on Linux - How to display memory usage with ps command is posted by - Math

Hope you have enjoyed, Linux - How to display memory usage with ps commandThanks for your time

Tech Bluff