FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Real World vs Theory Lessons
How-ToWeb Development

Real World vs Theory Lessons

via Dev.toNagesh K3h ago

In theory, checking disk usage looks simple — just grab the percentage from df -h. But in the real world, scripts break, formats differ, and human‑readable values like 374G don’t compare cleanly. This post is about the lessons learned when theory meets reality. Disk Usage Monitoring in Linux: Percentage vs. Actual Size Monitoring disk usage is one of the most common tasks for system administrators and developers. But there’s often confusion between checking percentage usage (df -h) and checking actual disk space (du -sh with numfmt). Let’s break down the challenges, solutions, pros, and cons of each approach. ❓ Common Questions Should I monitor disk usage by percentage or by actual size? Why does my script fail with “integer expression expected” errors? How can I compare human‑readable sizes like 192K, 374G, or 2T against thresholds? Which method is more reliable across different environments (Linux, Git Bash, macOS)? ⚡ The Challenge Using df -h with percentages A typical script might

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

I Haven’t Written Real Code in 3 Months. My Products Still Ship.
How-To

I Haven’t Written Real Code in 3 Months. My Products Still Ship.

Medium Programming • 3h ago

My Learning Experience with Sorting Algorithms
How-To

My Learning Experience with Sorting Algorithms

Dev.to Tutorial • 5h ago

Stop Building Projects. Start Building Systems.
How-To

Stop Building Projects. Start Building Systems.

Medium Programming • 5h ago

I Learned More in 3 Months Than 3 Years (The System That Actually Works)
How-To

I Learned More in 3 Months Than 3 Years (The System That Actually Works)

Medium Programming • 5h ago

CA 12 - Next Permutation
How-To

CA 12 - Next Permutation

Dev.to • 6h ago

Discover More Articles