What command would you use to display disk partitions?

Study for the LPI Linux Essentials Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

What command would you use to display disk partitions?

Explanation:
The command to display disk partitions is primarily `fdisk -l`. This command lists all the disk partitions on the system, providing detailed information about each one, such as the device name, size, partition type, and filesystem. It is particularly useful for identifying how disks are partitioned and is often used for initial disk management and setup tasks. Additionally, while there are other commands related to disk usage and partitions, `fdisk -l` specifically targets the listing of partitions, making it ideal for this context. The output you get from `fdisk -l` helps you see which partitions exist on your disks, alongside their sizes and other attributes. Other commands like `lsblk`, `parted`, and `df -h` can also provide information about disks and filesystems, but they serve different purposes. `lsblk` lists block devices and their mount points in a more user-friendly format, `parted` is used for managing disk partitions (like creating or modifying them), and `df -h` displays disk space usage on mounted filesystems, rather than specifically focusing on the partitions themselves.

The command to display disk partitions is primarily fdisk -l. This command lists all the disk partitions on the system, providing detailed information about each one, such as the device name, size, partition type, and filesystem. It is particularly useful for identifying how disks are partitioned and is often used for initial disk management and setup tasks.

Additionally, while there are other commands related to disk usage and partitions, fdisk -l specifically targets the listing of partitions, making it ideal for this context. The output you get from fdisk -l helps you see which partitions exist on your disks, alongside their sizes and other attributes.

Other commands like lsblk, parted, and df -h can also provide information about disks and filesystems, but they serve different purposes. lsblk lists block devices and their mount points in a more user-friendly format, parted is used for managing disk partitions (like creating or modifying them), and df -h displays disk space usage on mounted filesystems, rather than specifically focusing on the partitions themselves.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy