DEV Community

Cover image for How to check space left and what eat it on Ubuntu
Antoine
Antoine

Posted on • Edited on

1

How to check space left and what eat it on Ubuntu

Photo by NASA on Unsplash

Source

2 commands are particularly useful:

df -H --output=size,used,avail

du -a /media/jack | sort -n -r | head -n 10
Enter fullscreen mode Exit fullscreen mode

example:

sudo du -a /usr | sort -n -r | head -n 10
Enter fullscreen mode Exit fullscreen mode

Hope this helps !

Top comments (1)

Collapse
 
thomasbnt profile image
Thomas Bnt

Hey 👋🏼

This looks like a good post here. Can you share this in full on DEV?

DEV generally asks that folks share their posts in full if possible and there is tooling provided to make it so that it's relatively easy to repost from outside blogs.

Hope you'll consider sharing the full post going forward.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay