DeveloperBreeze

Disk Space Development Tutorials, Guides & Insights

Unlock 2+ expert-curated disk space tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your disk space skills on DeveloperBreeze.

How to view free space on a Linux server

Code August 11, 2024
bash

  • df: This command stands for "disk free" and reports the amount of disk space used and available on Linux filesystems.
  • -h: This option stands for "human-readable" format, which makes the output easier to read by showing sizes in KB, MB, GB, etc.

When you run the df -h command, you might see output similar to the following:

Finding the Top 10 Biggest Files on an Ubuntu Server

Tutorial August 11, 2024
bash

1.2G    /var/log/largefile.log
900M    /home/user/bigdata.dat
850M    /opt/application/hugefile.bin
...

If you're interested in both files and directories, you can use the du command: