Sunday, December 28, 2025

Linux Tip: Simplify Disk Usage Output

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

𝐀𝐩𝐫𝐢𝐥 𝟐𝟎𝟐𝟔 𝐌𝐢𝐜𝐫𝐨𝐬𝐨𝐟𝐭 𝟑𝟔𝟓 𝐂𝐡𝐚𝐧𝐠𝐞𝐬

Beyond the seasonal change, April brings over 𝟑𝟎 feature rollouts, retirements, and service updates. Here’s what you need to know. 𝐈𝐧 𝐭...