How Do I Check Disk Usage per Directory in Linux?

How Do I Check Disk Usage per Directory in Linux?
Contents

How do I check disk space on a specific directory in Linux?

df command – Shows the amount of disk space used and available on Linux file systems. du command – Display the amount of disk space used by the specified files and for each subdirectory. btrfs fi df /device/ – Show disk space usage information for a btrfs based mount point/file system.

How do I see disk usage in Linux?

Useful df “disk filesystem” Commands to Check Disk Space in Linux

  1. FileSystem — provides the name of the file system. …
  2. df -m — to display information of file system usage in MB.
  3. df -k — to display file system usage in KB.
  4. Useful du “disk Usage” Commands to Check usage of Space in Linux.
Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.