How to Check Disk Usage in Linux
Introduction
Low disk space can lead to system instability. Regular disk usage monitoring is essential for Linux system health.
Step 1: Use the df Command
df -h
➡️ Shows disk usage for all partitions in human-readable format.
Step 2: Use the du Command
du -sh /path/to/folder
➡️ Displays the size of a directory or file.
Step 3: Find Large Files
find / -type f -size +100M
➡️ Lists files larger than 100 MB.
Conclusion
df, du, and find are powerful tools to keep track of disk usage and prevent running out of space.

Comments
Post a Comment