GCFA · Question #50
You work as the Network Administrator for McNeil Inc. The company has a Unix-based network. You want to fix partitions on a hard drive. Which of the following Unix commands can you use to accomplish…
The correct answer is D. fdisk. The fdisk command is the standard Unix/Linux utility for creating, deleting, and managing disk partition tables on a hard drive.
Question
You work as the Network Administrator for McNeil Inc. The company has a Unix-based network. You want to fix partitions on a hard drive. Which of the following Unix commands can you use to accomplish the task?
Options
- Afdformat
- Bexportfs
- Cfsck
- Dfdisk
How the community answered
(46 responses)- A13% (6)
- B4% (2)
- C2% (1)
- D80% (37)
Why each option
The fdisk command is the standard Unix/Linux utility for creating, deleting, and managing disk partition tables on a hard drive.
fdformat is used to perform a low-level format of floppy disk devices, not to manage hard drive partitions.
exportfs manages NFS (Network File System) export entries, controlling which directories are shared over the network, and has no role in partitioning.
fsck (file system check) scans and repairs file system integrity errors on an already-partitioned device, not the partition table itself.
fdisk is an interactive command-line utility that directly manipulates the partition table of a block device, allowing an administrator to create, delete, resize, and change the type of partitions on a hard disk. It operates on the raw partition structure and is the correct tool when the goal is to fix or reconfigure partitions. On modern systems it supports both MBR and, via gdisk/parted, GPT partition schemes.
Concept tested: Unix disk partition management with fdisk
Source: https://man7.org/linux/man-pages/man8/fdisk.8.html
Topics
Community Discussion
No community discussion yet for this question.