The fdisk command

manipulate disk partition table 2 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-l, --list
List the partition tables for the specified devices and then exit.

Examples

sudo fdisk -l /dev/sdb
sudo fdisk /dev/sdb

Lessons that use fdisk