On this page you find all important commands for the CLI tool diskutil. If the
command you are looking for is missing please ask our AI.
diskutil
Diskutil is a command line tool available on macOS systems that allows managing disks, volumes, and partitions. It provides a wide range of functionalities for disk management tasks in the terminal. With diskutil, users can list all disks, volumes, and partitions connected to the system, view detailed information about them, and perform various operations. These operations include formatting, partitioning, mounting, unmounting, verifying, repairing, and even securely erasing disks. Diskutil can also be used to manage disk images, create RAID arrays, and handle logical volume management. It provides a powerful and efficient way to manage storage devices from the command line in macOS.
List of commands for diskutil:
-
diskutil:tldr:0f91e diskutil: Repair the filesystem data structures of a volume.$ diskutil repairVolume ${-dev-disk_device}try on your machineexplain this command
-
diskutil:tldr:c4f16 diskutil: List all currently available disks, partitions and mounted volumes.$ diskutil listtry on your machineexplain this command
-
diskutil:tldr:e9a27 diskutil: Unmount a volume.$ diskutil unmountDisk ${-dev-disk_device}try on your machineexplain this command
-
diskutil:tldr:fc138 diskutil: Eject a CD/DVD (unmount first).$ diskutil eject ${-dev-disk_device1}try on your machineexplain this command