By default, macOS saves all screenshots to the ~/Desktop.

If you'd like screen shots to be saved somewhere else, you have to configure it manually from the terminal.

For instance, if you'd like your screenshots to be saved in the ~/screenshots directory, then enter the following commands:

1
2
3
$ mkdir ~/screenshots
$ defaults write com.apple.screencapture location ~/screenshots
$ killall SystemUIServer

source