Disk Usage Commands

Command Description

df

Lists file system disk space usage in terms that make sense to your computer.

df -h

Lists file system disk space usage in terms that make sense to humans.

du

Lists disk space usage of each subdirectory below your current working directory

du -s

Lists the cumulative disk space usage of your current working directory.

du -s file_or_directory

Lists the disk space usage for a file or the cumulative disk space usage for a directory and its contents.