diff --git a/README.md b/README.md index 01a29eb..2a5aedd 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ - [static ip](#static-ip) - [System Monitoring Utilities](#system-monitoring-utilities) - [btop](#btop) + - [memory usage by user](#memory-usage-by-user) - [Storage](#storage) - [Disk Space and Used](#disk-space-and-used) - [Physical Disks and Partition](#physical-disks-and-partition) @@ -207,6 +208,13 @@ sudo /etc/init.d/networking restart apt update && apt install btop -y ``` +#### memory usage by user + +``` bash + ps -eo user,rss --no-headers \ + | awk '{mem[$1]+=$2} END {for (u in mem) printf "%-15s %.1f MB\n", u, mem[u]/1024}' +``` + ### Storage #### Disk Space and Used