mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 04:55:42 +00:00
Update cheatsheets
This commit is contained in:
25
osx/diskutil
Normal file
25
osx/diskutil
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# diskutil
|
||||
|
||||
> Utility to manage local disks and volumes.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/diskutil.8.html>.
|
||||
|
||||
- List all currently available disks, partitions and mounted volumes:
|
||||
|
||||
`diskutil list`
|
||||
|
||||
- Repair the filesystem data structures of a volume:
|
||||
|
||||
`diskutil repairVolume {{/dev/disk_device}}`
|
||||
|
||||
- Unmount a volume:
|
||||
|
||||
`diskutil unmountDisk {{/dev/disk_device}}`
|
||||
|
||||
- Eject a CD/DVD (unmount first):
|
||||
|
||||
`diskutil eject {{/dev/disk_device1}}`
|
||||
Reference in New Issue
Block a user