parted [options] device [command]Arguments explained
- device is the target disk.
- print shows partition information.
- mklabel creates a partition table.
- mkpart creates a partition.
Common examples
sudo parted /dev/sda printShows the partition table for /dev/sda.
sudo parted /dev/sdbStarts an interactive partitioning session.
| Field | Details |
|---|---|
| Command | parted |
| Category | Disk and Storage |
| Primary use | Creates and edits partition tables, including GPT. |
| Syntax | parted [options] device [command] |