Forrest logo
back to the diskutil tool

diskutil:tldr:c4f16

diskutil: List all currently available disks, partitions and mounted volumes.
$ diskutil list
try on your machine

The "diskutil list" command is used in macOS Terminal to display a list of all the available disks and their partitions on your computer.

When you execute this command, macOS will provide a detailed list of all the physical and virtual disks connected to your system. It includes internal hard drives, external drives, solid-state drives, USB devices, and disk images if any.

The list typically includes information such as the disk identifier (e.g., disk0, disk1), the type of disk (e.g., Apple_APFS, Apple_HFS, MS-DOS FAT32), the size of the disk, the number of partitions, and the details about each partition (such as partition type, size, and file system format).

This command is useful for identifying the available disks and their partitions, which can be helpful for various disk-related operations, such as formatting, partitioning, and mounting drives.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the diskutil tool