Change Screenshot Location in macOS Terminal

Yes, you can change the default screenshot save location via Terminal in macOS 13 Ventura. By default, macOS saves all screen captures directly to your Desktop, which can quickly lead to clutter. Using a simple command-line instruction, you can redirect all future captures to any dedicated folder of your choice, and easily revert the setting whenever necessary.

How to Change the Screenshot Location

  1. Create or choose a destination folder:
    Decide where you want your screenshots to be saved. For example, you can create a folder named Screenshots inside your Pictures folder.

  2. Open Terminal:
    Press Command + Space to launch Spotlight, type Terminal, and press Return.

  3. Set the new path:
    Type the following command, but do not press Return yet:

    defaults write com.apple.screencapture location 

    Add a space after location, then drag and drop your target folder from Finder into the Terminal window to automatically insert its full file path.

    For example, if your folder is ~/Pictures/Screenshots, the command will look like this:

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

    Press Return to execute the command.

  4. Apply the changes:
    To force macOS to load the new preference immediately, restart the SystemUIServer process by running:

    killall SystemUIServer

Any screenshot taken with shortcuts like Command + Shift + 3 or Command + Shift + 4 will now automatically save to the designated folder.

How to Revert to the Default Location

If you ever want to reset the save location back to the Desktop, run the following command in Terminal:

defaults delete com.apple.screencapture location

Follow it with the restart command:

killall SystemUIServer

Your screenshots will once again appear directly on your Desktop.