How to Check Disk Space in Linux with df Command
Introduction
Monitoring disk space is essential for Linux system administrators. The df command provides an overview of available and used disk space on mounted filesystems.
Step 1: Basic Usage
df -h
➡️ The -h option shows sizes in human-readable format (MB, GB).
Step 2: Check Specific Filesystem
df -h /home
➡️ Displays usage for only the /home directory filesystem.
Step 3: Show Inodes Usage
df -i
➡️ Useful for checking if inodes are running out.
Conclusion
The df command is a simple yet powerful tool for monitoring disk usage and preventing storage issues.

Comments
Post a Comment