DEV Community

Dan Higgins
Dan Higgins

Posted on

Mission: Save the Server – The Disk is Almost Full!

You're peacefully sipping coffee when—BAM!—an alert hits your screen: "Root filesystem almost full!" Time to throw on your junior sysadmin cape and rescue the server before it chokes on log files and forgotten temp data.

📚 Table of Contents

Step 1: "How bad is it, really?"

Image description

Translation: "Dear Linux, how fat are your filesystems today?"
This tells you where the problem is—likely / is crying for help.

Step 2: "Let’s find the disk hogs"

Image description

Translation: "Show me the biggest offenders in the root directory, but quietly—no permission whining."
You’re basically rolling out the red carpet for the top 10 space guzzlers.

Step 3: "Drill deeper into the belly of the beast"

Image description

You’ve spotted /var as the heavyweight. Now let’s peek inside and see which of its children are stuffing their faces.

Step 4: "Big log files? Found you!"

Image description

Translation: "Bring me every log file larger than a hippo."
Logs grow. Then they grow some more. Suddenly, they’re hoarding all the disk space like a raccoon with snacks.

Step 5: "Snip or wipe, your choice"

Image description

Snip snip! This clears the log file while leaving its shell intact—great if an app still expects it to exist.

Or go full cleanup:

sudo rm /var/log/very_old_file.log

Boom. That file's gone. Be responsible though—delete only what you know is safe.

Step 6: "Did we win?"

Image description

Aaaand we’re back to check the damage—hopefully in the green zone now. Disk space reclaimed, crisis averted.

Why This Stuff Actually Matters

Sure, saving a server from disk doom is heroic, but the real win is learning how systems behave under pressure.

These real-world tasks sharpen your instincts and problem-solving chops, which are way more valuable than just reading theory.

Plus, when you show off these projects to a potential employer, you’re not just another resume—you’re a sysadmin with battle scars and stories.

Top comments (0)