Free up disk space with df and du commands

This title was summarized by AI from the post below.

Does your disk ever get cramped? Even after you clear out some old virtual machines? Is there still no extra disk space to work with? If you find yourself in that situation, remembering to use these commands can help: 🐧 df -h --> this will help you see which filesystem is tight. 👀 du -h --> using that on a particular path or directory will help you see which directories are the biggest. df stands for "disk free" du stands for "disk usage" For the -h flag, this comes straight from the man page:    -h, --human-readable       print sizes in human readable format (e.g., 1K 234M 2G) In general, those commands will help you figure out how your disk is or isn't being used, but it may still take some extra work to figure out exactly why space is still cramped. I forgot that the distro I am using (#Omarchy) uses #snapper to create snapshots of my system after every update. It's nice to have those snapshots, but on a small disk I was running out of space too fast. For now I'm okay, and du and df have helped me identify ways to get more breathing room, but maybe the next step should be to just go out and finally buy a bigger hard drive... Is a 256G SSD enough? Doesn't seem like it. How much space do you like to have on your main drive? #linux

  • The image shows a penguin in a crowded living room. The penguin is checking some gauges on a wall. One gauge reads, "disk free (df -h)", another gauge reads, "disk usage (du -h)".

To view or add a comment, sign in

Explore content categories