Some terminal commands you might (or not...) enjoy. These are all case sensitive.
Configure Dock with no glass reflections
defaults write com.apple.dock no-glass -boolean 'TRUE'; killall Dock
To put it back:
defaults write com.apple.dock no-glass -boolean 'FALSE'; killall Dock
Show/unshow hidden folders in Mac
Show hidden folders:
defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
Hide hidden folders:
defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder
View settings related to sleep
You can also change these settings. For more detailed info, search MacRumors
Names of all Mac Apps using an open network socket with IPaddress/DNS name where they are connected
Please note that the IP addresses given are REVERSED (i.e. 10.16.1.2 would be expressed as 2.1.16.10)
List of tcp sockets that your Mac is using (destination address on right)
netstat -an | grep -i tcp
Precise amount of time since the system last booted (including sleep):
To see the free disk space for all mounted Volumes (including Time Capsule) attached to your system:
To open Itunes (or anything else) from the command line
In similar fashion, to open iPhoto:
For non-Apple programs, it's a bit more complicated. You need to give the App's full path as an argument:
open /Applications/Microsoft\ Office\ 2011/Microsoft\ Word.app/
For the above command with Word, you're probably wondering how to guess where to put the spaces and backslashes. There's a trick:
Type "open /App" (without quotes) and then hit <tab>. You will be presented with:
"open /Applications/"
Append the letters "Mic" and hit <tab>. You will be presented with:
"open /Applications/Microsoft\ Office\ 2011/"
Append the letters "Mic" and hit <tab>. You will be presented with:
"open /Applications/Microsoft\ Office\ 2011/Microsoft\ "
Append the letters "Wo" and hit <tab>. You will be presented with:
"open /Applications/Microsoft\ Office\ 2011/Microsoft\ Word.app"
Now hit enter. Word will start.
To kill Word from the command line
To see all the commands you typed