OS X: Screenshots Not Appearing On Desktop?

Sometimes screen shots will no longer appear as files on the Desktop.  The screenshot sound will play, but nothing will appear.  There is an easy fix for this:

Run this one-line command from Terminal.  You can change ~/Desktop  to any directory you want, too.

defaults write com.apple.screencapture location ~/Desktop/;killall SystemUIServer