OS Manuals

/usr/bin/cfdisk

Curses based partition table manipulator from util-linux

From cfdisk 2.42.4-r2 (os), captured 2026-11-05 by running cfdisk --help (exit 0). permalink

Usage:
 cfdisk [options] <disk>

Display or manipulate a disk partition table.

Options:
 -L, --color[=<when>]     colorize output (auto, always or never)
                            colors are enabled by default
 -z, --zero               start with zeroed partition table
     --lock[=<mode>]      use exclusive device lock (yes, no or nonblock)
 -r, --read-only          forced open cfdisk in read-only mode
 -b, --sector-size <size> physical and logical sector size

 -h, --help               display this help
 -V, --version            display version

For more details see cfdisk(8).
Options (7)
OptionDescriptionSource
-L, --color whencolorize output (auto, always or never) colors are enabled by defaulthelp + man
-z, --zeroStart with an in-memory zeroed partition table.help + man
--lock modeUse an exclusive BSD lock for the device or file that is operated upon.help + man
-r, --read-onlyforced open cfdisk in read-only modehelp + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
-b, --sector-size sectorsizeSpecify the sector size of the disk. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.