New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 4 Question 52 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 52
Topic #: 4
[All XK0-005 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

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.


Contribute your Thoughts:

0/2000 characters
Marget
2 months ago
Wait, can you really use -s for that? I thought it was just for size.
upvoted 0 times
...
Shantell
2 months ago
I thought it might be A at first, but C makes more sense.
upvoted 0 times
...
Emmett
3 months ago
Yeah, definitely C! That's the go-to command.
upvoted 0 times
...
Ruth
3 months ago
Not sure about that, I always use lsblk instead.
upvoted 0 times
...
Tasia
3 months ago
Pretty sure it's C, sudo fdisk -l shows all partitions.
upvoted 0 times
...
Vallie
3 months ago
I don't recall using `-h` for anything useful, so I'm leaning towards `-l` as the correct answer here.
upvoted 0 times
...
Antonio
4 months ago
I feel like I might confuse `-s` and `-l`, but I think `-l` is the one that lists the partitions.
upvoted 0 times
...
Sharee
4 months ago
I remember practicing with `fdisk`, and I think `-l` is definitely the command that shows all partitions, right?
upvoted 0 times
...
Theodora
4 months ago
I think the command to list partitions is `sudo fdisk -l`, but I'm not entirely sure if that's the right one for just verifying the device name.
upvoted 0 times
...
Sabra
4 months ago
I'm a little confused by the wording here. Is it asking for the command to create the partition, or just to verify the device name? I'll need to re-read the question a few times to make sure I understand it.
upvoted 0 times
...
Sang
4 months ago
Okay, I've got this. The question is specifically asking for the command to verify the device name, so the answer has to be C - sudo fdisk -l. That will show me the list of devices and partitions.
upvoted 0 times
...
Cheryl
5 months ago
I'm a bit unsure about this one. Is it asking for the command to verify the device name, or to actually create the partition? I'll need to think this through carefully.
upvoted 0 times
...
German
5 months ago
Hmm, this looks like a straightforward Linux command question. I think the answer is C - sudo fdisk -l. That should list all the partitions on the system.
upvoted 0 times
...
Nydia
10 months ago
I'm not sure, but I think A) sudo fdisk /dev/sda might also work to verify the device name.
upvoted 0 times
...
France
10 months ago
I agree with Domingo, because the -l option lists all partitions on the specified device.
upvoted 0 times
...
Tarra
10 months ago
I once tried to fdisk my way out of a paper bag. Didn't end well. Option C is the clear winner here.
upvoted 0 times
Odette
9 months ago
Yeah, 'sudo fdisk -l' is the safest bet to ensure you are working on the right partition.
upvoted 0 times
...
Tawna
9 months ago
I always double-check with 'sudo fdisk -l' to avoid any mistakes when creating partitions.
upvoted 0 times
...
Joni
9 months ago
Using 'sudo fdisk -l' will list all partitions on the device, making it easy to identify the correct one.
upvoted 0 times
...
Devorah
10 months ago
I agree, option C is the correct command to verify the device name of the partition.
upvoted 0 times
...
...
Eloisa
10 months ago
Just remember, with great power comes great responsibility. Use fdisk wisely, my friend.
upvoted 0 times
...
Sheridan
10 months ago
Wow, I thought fdisk was just for creating partitions. Didn't know it could also list them. Good to know!
upvoted 0 times
...
Domingo
10 months ago
I think the answer is C) sudo fdisk -l.
upvoted 0 times
...
Amira
10 months ago
Option C is the way to go! Listing the partitions is the best way to verify the device name.
upvoted 0 times
Bettina
9 months ago
Yes, using 'sudo fdisk -l' will list all partitions and their device names.
upvoted 0 times
...
Wenona
10 months ago
I agree, option C is the correct command to verify the device name.
upvoted 0 times
...
...

Save Cancel