CompTIA Linux+ (XK0-005) — Question 99
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?
Answer options
- A. sudo fdisk /dev/sda
- B. sudo fdisk -s /dev/sda
- C. sudo fdisk -l
- D. sudo fdisk -h
Correct answer: C
Explanation
The correct command is 'sudo fdisk -l', which lists the partitions on all disks, showing their device names. The other options either do not provide a listing of all partitions or are not applicable for verifying device names.