Quick Answer: How to Check Disk Space in Linux?
Contents 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...
Contents
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.
How do I free up disk space on Linux?
Freeing disk space on your Linux server
- Get to the root of your machine by running cd /
- Run sudo du -h –max-depth=1.
- Note which directories are using a lot of disk space.
- cd into one of the big directories.
- Run ls -l to see which files are using a lot of space. Delete any you don’t need.
- Repeat steps 2 to 5.
Must Read
How do I check my disk space?
Method 1 On Windows
- Open Start. .
- Open Settings. .
- Click System. It’s a computer-shaped icon on the Settings page.
- Click the Storage tab. This option is in the upper-left side of the Display page.
- Review your hard drive’s space usage.
- Open your hard disk.