A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?
The commandsudo fdisk -lshould be issued to verify the device name of the partition. Thesudocommand allows the administrator to run commands as the superuser or another user. Thefdiskcommand is a tool for manipulating disk partitions on Linux systems. The-loption lists the partitions on all disks or a specific disk. The commandsudo fdisk -lwill show the device names, sizes, types, and other information of the partitions on all disks. The administrator can identify the device name of the partition by looking at the output. This is the correct command to use to accomplish the task. The other options are incorrect because they either do not list the partitions (sudo fdisk /dev/sdaorsudo fdisk -h) or do not exist (sudo fdisk -s /dev/sda).Reference:CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 10: Managing Storage, page 317.
Currently there are no comments in this discussion, be the first to comment!