![Forrest logo](/images/logo.png)
diskutil:tldr:c4f16
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.