On this page you find all important commands for the CLI tool fdisk. If the
command you are looking for is missing please ask our AI.
fdisk
Fdisk is a popular command line tool used for disk partitioning in Linux and Unix systems. It allows users to create, delete, and manipulate disk partitions on their hard drives.
- Fdisk provides a straightforward interface for managing disk partitions through simple command line instructions.
- It can be used to view the existing partitions on a drive, their sizes, and the type of file system used.
- Creating a new partition is possible with fdisk by specifying the desired size, starting point, and partition type.
- Fdisk is also capable of deleting existing partitions, either individually or all at once.
- Users can modify partition settings like changing the size, partition type, or starting point using fdisk.
- A disk can be marked as bootable or set as active using fdisk, enabling it to be used for booting the operating system.
- Fdisk supports various types of partition tables, including MBR (Master Boot Record) and GPT (GUID Partition Table).
- It allows users to toggle the bootable flag of a partition, which determines the partition that is used for booting the system.
- Fdisk is a powerful tool for managing disk partitions, but requires administrative privileges (root access) to make any changes.
- It is important to use fdisk with caution, as improper use or manipulation of partitions can result in data loss or system instability.
List of commands for fdisk:
-
fdisk:tldr:42169 fdisk: Start the partition manipulator.$ sudo fdisk ${-dev-sdX}try on your machineexplain this command