OS X screenshot default file format

In this post you will find who to change the OS X screenshot default file format using the terminal.

to JPG

defaults write com.apple.screencapture type jpg;killall SystemUIServer

to GIF

defaults write com.apple.screencapture type gif;killall SystemUIServer

to PDF

defaults write com.apple.screencapture type PDF;killall SystemUIServer

to PNG

defaults write com.apple.screencapture type png;killall SystemUIServer

to TIFF

defaults write com.apple.screencapture type tiff;killall SystemUIServer