Useful commands for OS X

  • ioreg shows I/O Kit registry. I usually use this to check the capacity of a battery in my powerbook
ioreg -p IODeviceTree -n "battery" -w 0 | grep IOBatteryInfo
  • hdiutil manipulates disk images: I usually use this to merge several dmg files to one iso file.
hdiutil makehybrid -iso -o /path/to/make/your/iso/file.iso /directory/of/the/source/dmg/files/
  • chflags change file flags: I usually use this to unlock files with uchg, nodump, some other flags.
sudo find . -flags uchg -exec chflags nouchg {} \;
  or
sudo chflags -R nouchg .
  • fsaclctl controls the ACL on the specific path.
usage:  fsaclctl -p path | -a  [-e enable] [-d disable] [-v]
                -p              path to filesystem mount point
                -a              operate on all relevant volumes
                -e              enable access control lists on this filesystem
                -d              disable access control lists on this filesystem
                -v              print version
blog/apple/useful_commands_for_os_x.txt · Last modified: 2008/02/22 09:06 by donginn
Back to top
Open Systems Lab
Indiana University Computer Science Department
Lindley Hall 215
150 S. Woodlawn Ave.
Bloomington, IN 47405-7104

chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0