Invoking Parted (Parted User’s Manual)

### 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:

Options:

‘`-h`’
‘`--help`’

  display a help message

‘`-l`’
‘`--list`’

  lists partition layout on all block devices

‘`-m`’
‘`--machine`’

  display output in machine parseable format

‘`-j`’
‘`--json`’

  display output in JSON format

‘`-s`’
‘`--script`’

  never prompt the user

‘`-f`’
‘`--fix`’

  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.

‘`-v`’
‘`--version`’

  display the version