DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Forums
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS

OSXFAQ Mac OS X UNIX Tip-of-the-Day   back to index

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


Discuss this trick in the Learning Center forum


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

Copyright © 2000-2008 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.