How to reset the Finder to its default settings?

To restore the Finder to its original state, you should enter this command.

rm ~/Library/Preferences/com.apple.finder.plist; killall Finder