OSXFAQ Mac OS X UNIX Tip-of-the-Day

Week 104 - Unix Commands Reference IV (11 April 2005)
by
Adrian Mayo - Editor, OSXFAQ
Tuesday - OSX Special - Commands for Disc and File
These commands are OS X specific and are not found in other Unix flavours.
(See tips weeks 16 and 18)
Disc manipulation and maintenance.
disktool ... refresh, eject, mount or unmount
(See tips week 22)
diskutil ... repair, journal discs
(See tips week 88)
drutil ... interact with CD and DVD burners
hdiutil ... manipulate disc images
(See example usage in Friday's tip)
cd9660.util ... mount ISO 9660 volumes
udf.util ... mount DVD volumes
ufs.util ... mount UFS (Unix File System) volumes
hfs.util ... mount HFS (Standard Apple) volumes
pdisk ... partition table editor
List all partitions of mounted discs with:
sudo pdisk
Top level command (? for help): L
vsdbutil ... read/write enable permissions on HFS+ volumes
ditto ... copy files/sync folders with resource forks
Option -rsrc to copy preserving resource forks
cpMac ... copy with resource forks
Copies resource forks like ditto. This is part of the Developers Tool and not included in a standard install.
GetFileInfo ... get attributes of HFS+ files
SetFile ... sets attributes of HFS+ files
Sets HFS+ attributes such as Alias, Locked, Invisible
If you want to learn more about Mac OS X Unix visit the Learning Center
click.
- For beginners: Mac OS X Unix Tutorials
- For detailed information on specific topics: Advanced Unix
- For OS X in gereral: Mac OS X Tutorials
|