How can you show the available disk space on all mounted filesystems?

Study for the LPI 101-500 Exam. Prepare with flashcards and multiple choice questions, each with hints and explanations. Get exam ready!

Multiple Choice

How can you show the available disk space on all mounted filesystems?

Explanation:
The command that displays the available disk space on all mounted filesystems is "df -h." This command is used to check disk usage, and the "-h" option stands for "human-readable," which formats the output in a way that makes it easy to understand—showing sizes in kilobytes (KB), megabytes (MB), or gigabytes (GB) as appropriate. The "df" command summarizes disk space usage for all mounted filesystems, providing information on total space, used space, available space, and the mount points, making it a practical tool for monitoring disk usage across the system. In contrast, "du -sh" is used to estimate file space usage for a specific directory, not for overall mounted filesystems. "lsblk" displays block devices in a tree-like format, showing devices and their mount points, but it does not provide detailed information on disk space usage. The "mount" command lists mounted filesystems but does not present information about available disk space relative to those filesystems. Therefore, "df -h" is the most suitable command for showing the available disk space on all mounted filesystems.

The command that displays the available disk space on all mounted filesystems is "df -h." This command is used to check disk usage, and the "-h" option stands for "human-readable," which formats the output in a way that makes it easy to understand—showing sizes in kilobytes (KB), megabytes (MB), or gigabytes (GB) as appropriate.

The "df" command summarizes disk space usage for all mounted filesystems, providing information on total space, used space, available space, and the mount points, making it a practical tool for monitoring disk usage across the system.

In contrast, "du -sh" is used to estimate file space usage for a specific directory, not for overall mounted filesystems. "lsblk" displays block devices in a tree-like format, showing devices and their mount points, but it does not provide detailed information on disk space usage. The "mount" command lists mounted filesystems but does not present information about available disk space relative to those filesystems. Therefore, "df -h" is the most suitable command for showing the available disk space on all mounted filesystems.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy