Hot to reveal hidden files and folders in mac osx using terminal. Works for all versions of osx, both ppc and intel based.
To show hidden files:
defaults write com.apple.Finder AppleShowAllFiles YES
killall Finder
To hide hidden files:
defaults write com.apple.Finder AppleShowAllFiles NO
killall Finder