Changing default Mac OSX screenshot location in terminal

 

defaults write com.apple.screencapture location /path/;killall SystemUIServer

defaults write com.apple.screencapture location ~/Pictures/

killall SystemUIServer