Frequent Question: How Do I Check Disk Usage in Unix?
Contents Unix Command to Check Disk Space: Df Command – Shows the Amount of Disk Space Used and Available on Unix File Systems. Du Command – Display Disk Usage...
Contents
Unix command to check disk space: df command – Shows the amount of disk space used and available on Unix file systems. du command – Display disk usage statistic for each directory on Unix server.
How do I see disk usage in Linux?
Linux command to check disk space using:
- 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.
How do I clear disk space in 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.