I need command to get process memory usage in MiB or KiB by PID. I prefer the number I see in gnome-system-monitor in "Memory" column. I tried a lot of different commands but all of them give me some other numbers.
For example, I've tried ps
with different keys. The most interesting was
ps aux
. The RSS column is something close but number here greater than in gnome-system-monitor. A lot of answers on question similar to mine contain top
command but it gives memory usage in percents.