common/: dig, gzip, rm, sort, zfs, zpool linux/: apt-get, shutdown osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler Edits to existing pages: curl: Added simple download example find: Added iname and size exmaples grep: Edited -c description ps: Added wide lines example ssh: edited -D description, added simple port forwarding example unzip: added list option
444 B
444 B
diskutil
Utility to manage local disks and volumes
- List all currently available disks, partitions and mounted volumes.
diskutil list
- Repair permissions on a volume
diskutil repairPermissions {{/Volumes/Name}}
- Repair the file system data structures of a volume
`diskutil repairVolume {{/dev/diskX}}
- Unmount a volume
diskutil unmountDisk {{/dev/diskX}}
- Eject a CD/DVD (unmount first)
`diskutil eject {{/dev/disk1}}