In macOS, you can use the defaults
command to change the location where screenshots are saved. By default, screenshots are saved to the Desktop
folder, but you can change this location to any other folder on your Mac.
To change the screenshot save location, open a terminal window and enter the following command:
ot refer:lautturi.comdefaults write com.apple.screencapture location /path/to/folder
Replace /path/to/folder
with the desired path to the folder where you want to save the screenshots. For example, to save screenshots to the Screenshots
folder in your home directory, you can use the following command:
defaults write com.apple.screencapture location ~/"Screenshots"
It's worth noting that you will need to include the quotes around the folder name if the folder name contains spaces.
After running the defaults
command, you will need to restart the SystemUIServer process to apply the changes. You can do this by running the following command:
killall SystemUIServer
This will terminate the SystemUIServer process and restart it, applying the changes you made to the screenshot save location.
You can verify that the changes have been applied by taking a screenshot and checking the location where it was saved. The screenshot should now be saved to the folder you specified in the defaults
command.
It's worth noting that you can also use the defaults
command to change other settings related to screenshots, such as the file format and the naming scheme. For example, to change the file format to PNG, you can use the following command:
defaults write com.apple.screencapture type png
To change the naming scheme for screenshots, you can use the name
option. For example, to name screenshots using the current date and time, you can use the following command:
defaults write com.apple.screencapture name "Screenshot-%Y-%m-%d-%H%M%S"
This will name screenshots using the current year, month, day, hour, minute, and second, resulting in names like Screenshot-2020-10-19-20:12:34
.