Prepare for the Linux Professional Institute Certification Level 1 (LPIC-1) Test. Use flashcards and multiple choice questions with hints and explanations. Ace your exam!

Multiple Choice

What command shows the disk partitioning information?

The command that displays disk partitioning information is fdisk -l. This command is specifically designed to list the partitions on all the disks in the system, providing key details such as the device name, size, and partition type. It is particularly useful for managing partition tables and understanding how the disks are structured. The other commands mentioned serve different purposes. For instance, df -h is used to report the disk space usage of file systems, showing information related to disk usage rather than partitioning. The command partinfo, while it sounds like it should provide partition information, is not a standard command found in most Linux distributions; thus, it's not reliable for this context. Finally, diskpart is a Windows command-line utility used to manage disks and partitions in a Windows environment, not applicable to Linux systems.

The command that displays disk partitioning information is fdisk -l. This command is specifically designed to list the partitions on all the disks in the system, providing key details such as the device name, size, and partition type. It is particularly useful for managing partition tables and understanding how the disks are structured.

The other commands mentioned serve different purposes. For instance, df -h is used to report the disk space usage of file systems, showing information related to disk usage rather than partitioning. The command partinfo, while it sounds like it should provide partition information, is not a standard command found in most Linux distributions; thus, it's not reliable for this context. Finally, diskpart is a Windows command-line utility used to manage disks and partitions in a Windows environment, not applicable to Linux systems.