//Tips tagged OSX
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
.DS_Store files are a hidden file created by OS X to store custom attributes of a folder such as the position of icons or the choice of a background image. By default, they are created in every folder accessed, even folders on remote systems (for example, folders shared over an SMB or AFP connection). This can soon leave your shared folders littered with these files.

The command below will remove all DS_Store files from the current directory and any sub directories.

find -type f -name .DS_Store -exec rm {} \;


View Comments »



If you need to change your wireless MAC address (I had to do this when I used another computer to try to fix mine on a network with MAC filtering) this command comes in handy.

Pre 10.5(I know this works in Tiger but it should work 10.3 up):
sudo ifconfig en0 ether 00:00:00:00:00:0


10.5:
sudo ifconfig en0 lladdr 00:00:00:00:00:00


just switch 00:00:00:00:00 with whatever mac address you want to pretend to be.


View Comments »

/usr/sbin/scutil --set ComputerName "COMPUTER NAME HERE"
-or-
/usr/sbin/scutil --set LocalHostName "LOCALHOST NAME HERE"

Alternatively use the --get switch to return them.


View Comments »

/usr/sbin/systemsetup -settimezone "TIMEZONE HERE"


Values can be found in /usr/share/zoneinfo


View Comments »




Home Latest Browse Top 25 Random Hall Of Fame Contact Submit