fdisk is a Linux program that only works with MBR partitions. parted is another partitioning program that works on MBR and GPT partitions.
Type man fdisk in a command window to see all the options for fdisk.
Open a command window as an administrator in order to run fdisk.
fdisk can only be used interactively.
The following can be issued in interactive mode, after typing fdisk device in a command window, where device is the device name for a hard disk, like /dev/sdb.