Arguments
The action specifies what diskutil is to do. Table VI-15 lists common actions along with the argument each takes.
Table VI-15 diskutil actions
Action | Argument | Description |
eraseVolume |
type name device |
Reformats device using the format type and the label name. The name specifies the name of the volume; alphanumeric names are the easiest to work with. |
|
|
The filesystem type is typically HFS+ but can also be UFS or MS-DOS. You can specify additional options as part of the type. For example, a FAT32 filesystem (as used in Windows 98 and above) would have a type of MS-DOS FAT32. A journaled, case-sensitive, HFS+ filesystem would have a type of Case-sensitive Journaled HFS+. |
info |
device |
Displays information about device. Does not ... |
Get A Practical Guide to Linux Commands, Editors, and Shell Programming, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.