To kill the dock in Mac OS X, in a Terminal, type:
killall Dock
The dock will shut down and re-start automatically. If do not want the dock to run at all—for example if you want to free up memory or free up pixels from the screen—remove the /System/Library/CoreServices/Dock.app directory with:
cd /System/Library/CoreServicessudo mv Dock.app Dock.app.origkillall Dock
