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

Apple Account-Driven User Enrollment Guide

Set Up Account-Driven Apple User Enrollment for Microsoft Intune. This guide explains how to configure account-driven Apple User Enrollment ...