2.3 Command Line Options

When invoked from the command line, Parted supports the following syntax:

# parted [option] device [command [argument]]

Available options and commands follow. For detailed explanations of the use of Parted commands, see Parted Session Commands. Options begin with a hyphen, commands do not:



display a help message


lists partition layout on all block devices


display output in machine parseable format


display output in JSON format


never prompt the user


automatically answer exceptions with "fix" in script mode, which is useful for: GPT header not including full disk size; moving the backup GPT table to the end of the disk; MAC fix missing partition map entry; etc.

-a alignment-type
--align alignment-type

Set alignment for newly created partitions, valid alignment types are: none, cylinder, minimal and optimal.


display the version