Screenshot folder change command
To change the screenshot folder, you can use the following two commands in the terminal.
$ defaults write com.apple.screencapture location 저장폴더
$ killall SystemUIServer
In the command, you can specify the path of the folder where the screenshot will be saved in the "Save folder" location.
Entering the following command changes the screenshot storage folder to "/Users/imdev/Dropbox/mac_screenshot".
$ defaults write com.apple.screencapture location /Users/imdev/Dropbox/mac_screenshot
$ killall SystemUIServer
If it is difficult to type the folder path, enter only "defaults write com.apple.screencapture location", find the storage folder in Finder, and drag & drop it to the terminal.
Let's check the changed screenshot.
$ defaults read com.apple.screencapture location
/Users/imdev/Dropbox/mac_screenshot
The default command used in the terminal is a command to read or change the configuration of an application.
Read after defaults reads the application configuration and write writes the configuration.
And com.apple.screencapture location means the location setting of the com.apple.screencapture application.
For reference, you can read all the settings of the com.apple.screencapture application with the command below.
$defaults read com.apple.screencapture
{
location = "/Users/imdev/Documents/screencapture";
}
https://www.maketecheasier.com/change-screenshot-save-folder-mac/
https://discussions.apple.com/docs/DOC-9081