[Linux] Getting the Linux top output for a specific process id in 2019

Sometimes you may want to know how much CPU or RAM utilization a specific process is using without it jumping around. For example, if you had iTerm2 running you may want to zoom in on how many resources it is using. You’d first find the process id for iTerm by using grep and ps aux, e.g.

$ ps aux | grep iTerm

Then with the process ID you can run the command below, where 4452 is your process ID.

$ top -p 4452

Happy Holidays! πŸ™‚ 🌲🌲🀢🀢

Leave a Reply

You are currently viewing [Linux] Getting the Linux top output for a specific process id in 2019