Navigation

Mac OS X

How do I change hostname in Mac OS X?

Mac OS X set the hostname to xyzabc101.local. To change the hostname to imacster, run this from the terminal:

sudo scutil --set HostName imacster

After changing the hostname, check it once by running:

hostname

It will show the new hostname imacster.

How do I uninstall the current iphone SDK?

Go to the Terminal and type this command

sudo /Developer/Library/uninstall-devtools --mode=all

How do I change my MAC address?

To change your MAC address to 00:12:34:56:78:90, run this from the terminal:

ifconfig IFace down
ifconfig IFace ether 00:12:34:56:78:90

Substitute IFace with your ethernet interface (it could be eth0, en1, etc)

How do I find the free disk space?

Run this:

df -h

It displays total size, used, and available disk space in terms of gigabyte and megabytes instead of the number of 512K blocks.