To check disk space for all filesystems in a Linux environment, you can use the df command without specifying any particular path. Here’s the command:
df -h
Breakdown:
df: This command displays the disk space usage for all mounted filesystems.-h: This option makes the output human-readable, showing sizes in KB, MB, or GB.
Output:
The command will provide a list of all mounted filesystems along with:
- Filesystem name
- Total size
- Used space
- Available space
- Usage percentage
- Mount point
This command is useful for getting an overview of disk usage across your entire system.
If you have any more questions or need further assistance, feel free to ask!
