What is the terminal command for "Show all filename extensions"?

defaults write NSGlobalDomain AppleShowAllExtensions -bool true

False, of course, to reverse.