What Is Using My Disk Space Linux?
Contents How Do I Find out What Is Taking up Disk Space in Linux? Check Disk Usage in Linux Using the Du Command Du -Sh /Home/User/Desktop — the -S Option Will...
Contents
How do I find out what is taking up disk space in Linux?
Check Disk Usage in Linux Using the du Command
du -sh /home/user/Desktop — the -s option will give us the total size of a specified folder (Desktop in this case). du -m /home/user/Desktop — the -m option provides us with folder and file sizes in Megabytes (we can use -k to see the information in Kilobytes).
How do I analyze disk usage in Linux?
Linux command to check disk space
- 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.