Scenario: A server is running low on disk space.
df -h \
| grep -v tmpfs \
| awk '{print $6, $5}' \
| sed 's/%//g'
What this does:
-
Filters out temporary filesystems
-
Shows only the mount point and usage percentage
-
Strips the percent sign for cleaner output
Outcome: An easy-to-read overview of disk usage to quickly spot storage pressure.

No comments:
Post a Comment