Learn a Linux command every day (116): cfdisk

Time:2021-9-5

Command introduction

The cfdisk command can be used to display information about the disk partition table. Its function andfdiskThe same, but it has a text-based “graphical” interface, which is more intuitive, easy to use and convenient in operation and visualization.

Learn a Linux command every day (116): cfdisk

The above is the graphical interface of cfdisk

Syntax format

cfdisk [-agvz] [-c cylinders] [-h heads] [-s sectors-per-track]  [-P opt] [device]

Option description

-a  # Use the arrow cursor to highlight the current zone
-g  # Do not use the geometry given by the disk driver
-v  # Print version number and copyright
-z  # Start with the zero partition table
-s   sectors-per-track    # Covers the number of cylinders, heads, and sectors per track read from the BIOS.

Application examples

Directly enter cfdisk command to enter the graphical interfaceLearn a Linux command every day (116): cfdisk

Press the up and down arrow keys to select the disk nameLearn a Linux command every day (116): cfdisk

View help informationLearn a Linux command every day (116): cfdisk

The basic use is the same as fdisk. Create a new disk partitionLearn a Linux command every day (116): cfdisk

Select partition typeLearn a Linux command every day (116): cfdisk

Select partition sizeLearn a Linux command every day (116): cfdisk

Write operation to diskLearn a Linux command every day (116): cfdisk

The basic operation is like this, very simple.

Learn a Linux command every day (113): dnf

Learn a Linux command every day (114): LDD

Learn a Linux command every day (115): Accton

Learn a Linux command every day (116): cfdisk