Comments on How to Check Disk Space on Ubuntu 24.04

Tracking disk usage information is a day-to-day task of any system administrator. Linux has some built-in utilities that help you find the disk space of your system. In this tutorail, we will show you how to check disk space on Linux using multiple ways.

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Dave at: 2021-03-17 16:41:08

df and du cannot be trusted to provide the correct values with certain file systems. BTRFS and ZFS come to mind.  But they are great for xfs, ext2/3/4, f2fs and a number of other native Linux file systems.

Some handy aliases:

alias df='df -h'alias dft='df -hT -x squashfs -x tmpfs -x devtmpfs'alias du='du -h'