modified: README.md
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
- [System Monitoring Utilities](#system-monitoring-utilities)
|
- [System Monitoring Utilities](#system-monitoring-utilities)
|
||||||
- [btop](#btop)
|
- [btop](#btop)
|
||||||
- [memory usage by user](#memory-usage-by-user)
|
- [memory usage by user](#memory-usage-by-user)
|
||||||
|
- [ps - examples](#ps---examples)
|
||||||
|
- [swap](#swap)
|
||||||
- [Storage](#storage)
|
- [Storage](#storage)
|
||||||
- [Disk Space and Used](#disk-space-and-used)
|
- [Disk Space and Used](#disk-space-and-used)
|
||||||
- [Physical Disks and Partition](#physical-disks-and-partition)
|
- [Physical Disks and Partition](#physical-disks-and-partition)
|
||||||
@@ -273,6 +275,23 @@ apt update && apt install btop -y
|
|||||||
| awk '{mem[$1]+=$2} END {for (u in mem) printf "%-15s %.1f MB\n", u, mem[u]/1024}'
|
| awk '{mem[$1]+=$2} END {for (u in mem) printf "%-15s %.1f MB\n", u, mem[u]/1024}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### ps - examples
|
||||||
|
|
||||||
|
List order my memory usage (MB)
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
ps -eo pid,ppid,user,pmem,pcpu,rss,vsz,cmd --sort=-rss | awk 'NR==1{print;next} {printf "%s %s %s %s %s %.1fMB %.1fMB %s\n", $1,$2,$3,$4,$5,$6/1024,$7/1024,$8}'
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
#### swap
|
||||||
|
|
||||||
|
Check swap usage
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
grep VmSwap /proc/*/status 2>/dev/null | sort -k2 -n
|
||||||
|
```
|
||||||
|
|
||||||
### Storage
|
### Storage
|
||||||
|
|
||||||
#### Disk Space and Used
|
#### Disk Space and Used
|
||||||
|
|||||||
Reference in New Issue
Block a user