> ## Content Index
> Fetch the complete content index at: https://macfixly.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Change Screenshot Location Using Defaults Write in Mac Terminal
- URL: https://macfixly.com/change-screenshot-location-mac-terminal/
- Published: 2026-10-15T18:01:00.000Z
- Updated: 2026-10-15T18:01:00.000Z
- Description: This guide shows how to change screenshot location with defaults write in Mac Terminal, including verifying, updating, and troubleshooting save paths.
- Author: Macuser
- Tags: Mac, Terminal, Screenshots, MacOS, Productivity

You often take screenshots on your Mac but find the default save location inconvenient or cluttered. Navigating to the Pictures folder or Desktop each time to organize your screenshots can disrupt your workflow.

This article explains how to change screenshot location with defaults write in Mac Terminal, guiding you through checking the current save path, updating it safely, verifying your changes, and reversing them if needed. You will also learn how to troubleshoot common permission issues that might arise and discover ways to automate screenshot organization effectively.

## Key takeaways

- Use the Terminal command **defaults write com.apple.screencapture location \[path\]** to set a new screenshot save folder.
- Verify the current save location with **defaults read com.apple.screencapture location**.
- Restart the SystemUIServer process after changes for them to take effect.
- Revert to the default location by deleting the custom path and restarting SystemUIServer.
- Address permission errors by ensuring the target folder exists and has proper read/write access.

## Before you start: What you need to change screenshot location via Terminal

To change where your Mac saves screenshots using Terminal, you need a few essentials. First, your Mac must be running macOS, and you should have access to the Terminal application. Familiarity with basic Terminal commands is necessary, along with administrator privileges to execute system-level changes.

Before proceeding, decide on a valid folder path where you want your screenshots saved. This must be a folder that exists and is writable by your user account. For example, a valid path could be */Users/yourusername/Pictures/Screenshots*. By default, macOS saves screenshots to the Desktop, located at *\~/Desktop*.

Using the `defaults write` command in Terminal is preferred over GUI methods because it provides precise control and persists across system updates. It allows customization beyond available preferences and can be scripted or reverted easily.

1. Open Terminal from Applications > Utilities.
2. Confirm you have administrator access by running a simple command like `whoami` to check your username.
3. Create or identify the folder where you want to save screenshots, ensuring it exists and has the correct permissions.
4. Verify the current screenshot location if desired, before making changes.

## How to find the current screenshot save location with Terminal

Before changing your [screenshot save location](https://macfixly.com/change-screenshot-save-location-mac/), you can check where screenshots are currently stored using the Terminal. This helps confirm whether your Mac is using the default folder or a custom path.

1. Open the Terminal app on your Mac.
2. Type the following command and press Enter:  
**defaults read com.apple.screencapture location**
3. The Terminal will output the current screenshot save path. For example:  
*/Users/username/Desktop*
4. If the command returns an error or no output, it means your Mac is using the default location, which is the Desktop folder.
5. To verify this, you can check your Desktop folder for recent screenshots after taking one.

The output path is typically a full directory path. If it matches a location you previously set, you know the current setting is customized. Otherwise, your screenshots save to the default Desktop folder.

## Step-by-step: Change the screenshot save location using defaults write

![Step-by-step: Change the screenshot save location using defaults write – how to change screenshot location with defaults writ](https://macfixly.com/content/images/2026/10/change-screenshot-location-mac-terminal-2.webp)

1. Open Terminal and prepare the absolute path of your desired folder. For example, to save screenshots to a folder named *Screenshots* inside your Pictures directory, the path is `~/Pictures/Screenshots`. If the folder contains spaces, escape them with backslashes (e.g., `/Users/username/Desktop/My\ Screenshots`).
2. Enter the command: `defaults write com.apple.screencapture location ~/Pictures/Screenshots`. This sets the new save location in the system preferences.
3. Apply the change by running `killall SystemUIServer`. This restarts the user interface server, making the new location active immediately.
4. Take a screenshot using the usual shortcut (e.g., **Command + Shift + 3** or **Command + Shift + 4**), then check the specified folder. Screenshots should now save there instead of the desktop.
5. If the folder does not exist, screenshots will continue saving to the default location, so ensure the target folder exists before running the command.

## How to revert to the default screenshot location

If you want to undo any custom screenshot save location and return to macOS's original default, use the `defaults delete` command. This removes the custom path setting, allowing screenshots to save to the default Desktop folder.

1. Open Terminal and enter:  
`defaults delete com.apple.screencapture location`  
You should see no output, indicating the key was removed successfully.
2. Restart the SystemUIServer service to apply the change:  
`killall SystemUIServer`  
This command silently restarts the system interface and applies your changes immediately.
3. Verify the default path is restored by running:  
`defaults read com.apple.screencapture location`  
If the output is *does not exist* or empty, your screenshot location has reverted to the default Desktop folder.
4. Optionally, take a test screenshot (Shift + Command + 3) and check that it appears on your Desktop, confirming the revert worked as expected.

If the command `defaults delete` returns an error that the domain or key does not exist, it means no custom location was set, so you are already using the default.

## Troubleshooting common issues when changing screenshot location

If you encounter a **permission denied** error, such as *"defaults: Permission denied"* or *"Operation not permitted"*, it usually means the Terminal lacks access to the target folder. To fix this, first check folder permissions:

1. Run `ls -ld /path/to/folder`. You should see permissions like *drwxr-xr-x* and your username as owner.
2. If permissions are restricted, adjust them by running `chmod u+rwx /path/to/folder` to grant yourself read, write, and execute rights.
3. Additionally, ensure the folder is accessible in **System Preferences > Security & Privacy > Privacy > Full Disk Access** by adding Terminal.app if needed.

If changes don't take effect after `killall SystemUIServer` and screenshots still save to the Desktop, confirm that the folder path was correctly set. Typing errors or missing the absolute path can cause this issue.

Verify the current location again with `defaults read com.apple.screencapture location`. If it shows the Desktop path or another unexpected folder, repeat the `defaults write` command with the correct absolute path.

Also, check that the folder exists and is not a symbolic link that might confuse the system.

Finally, restart your Mac if changes persistently fail to apply, as some permission or caching issues may require a full reboot.

## Additional tips: Organizing screenshots automatically with Terminal and Automator

Beyond changing the screenshot save location, you can automate organization using Automator or Folder Actions. This helps sort screenshots by date, project, or other criteria immediately after capture, reducing manual file management.

![Additional tips: Organizing screenshots automatically with Terminal and Automator – how to change screenshot location with de](https://macfixly.com/content/images/2026/10/change-screenshot-location-mac-terminal-3.webp)

For example, create an Automator Folder Action that moves new screenshots from your chosen folder into subfolders named by date. This involves setting the folder as the target, adding a “Filter Finder Items” action to select files with “png” extension, then a “Move Finder Items” action to a destination folder structured by date.

1. Open Automator and select “Folder Action”.
2. Assign the screenshot save folder as the target folder.
3. Add “Filter Finder Items” action, set to filter files where “Name ends with.png”.
4. Add “Move Finder Items” action, and choose or create a destination folder that organizes by date (e.g., \~/Pictures/Screenshots/YYYY-MM-DD).
5. Save the Folder Action and test by taking a new screenshot; it should move automatically to the dated folder.

This automation complements the `defaults write` method by keeping your screenshots orderly without manual sorting. Alternatively, third-party apps like Hazel provide more advanced file organization options but require additional setup and sometimes a purchase.

## More on this topic

- [How to Show Hidden Files Using Mac Terminal: A Clear Step-by-Step Guide](https://macfixly.com/show-hidden-files-mac-terminal/)
- [How to Disable Gatekeeper in Mac Terminal: Step-by-Step Guide](https://macfixly.com/disable-gatekeeper-mac-terminal/)

## Frequently asked questions

### Can I change the screenshot format and location at the same time using defaults write?

Yes, you can change both the screenshot format and location using separate defaults write commands. For example, to [change the format](https://macfixly.com/change-screenshot-format-jpg-mac/), use *defaults write com.apple.screencapture type jpg*, and to change the location, use the appropriate path command. However, these changes require running *killall SystemUIServer* to apply both simultaneously.

### What folder paths are safe and recommended for saving screenshots?

Safe and recommended paths include existing folders where you have full read and write permissions, such as *\~/Pictures/Screenshots* or a dedicated folder within your user directory. Avoid system folders or directories requiring elevated permissions, as this can cause errors or prevent screenshots from saving properly.

### Do I need to restart my Mac after changing the screenshot location via Terminal?

You do not need to restart your Mac, but you must restart the SystemUIServer process by running *killall SystemUIServer* in Terminal. This refreshes system settings and applies your changes immediately without a full reboot.

### What if the Terminal commands don’t work on my Mac?

If commands fail, check that you typed the file path correctly and that the target folder exists with proper permissions. Ensure you run *killall SystemUIServer* after the command. If problems persist, macOS security settings or third-party software may block changes, so verify permissions or try creating a new folder to use as the screenshot location.

## What this method does not cover and who should avoid it

This method only changes the save location for screenshots taken with macOS's built-in shortcuts, such as Command-Shift-3 or Command-Shift-4\. It does not affect third-party screenshot applications, which may have their own settings for storage location.

If you are unfamiliar with using Terminal or the macOS file system permissions, proceed with caution. Mistakes when entering commands or setting folder permissions can lead to screenshots not saving correctly or permission errors. In such cases, consider using the Screenshot app's graphical interface or third-party apps that offer easier customization.

Also, this method does not provide options for advanced screenshot management, such as automatic naming conventions or cloud syncing; those require additional tools or scripts.

To get started safely, the single most useful next step is to verify the current screenshot save location using the Terminal command **defaults read com.apple.screencapture location**. This will confirm the path macOS currently uses and help you decide if you want to change it.