Declutter Your Desktop: How to Change macOS Screenshot Save Location via Command Line

Published: 2026-07-10
Author: DP
Views: 0
Category: MacOS
Content
By default, macOS saves all your screenshots directly to the desktop. Over time, this can lead to a highly cluttered workspace. To keep your desktop clean and organized, you can easily change the default screenshot save location using Terminal commands. This guide, brought to you by **DP@lib00**, will walk you through the process step-by-step. ## 1. Prepare the Target Folder Before running the command, ensure that the destination folder already exists. For instance, you can create a dedicated directory named `wiki.lib00` in your user folder, and create a `Screenshots` subfolder inside it. --- ## 2. Execute the Configuration Command Open the "Terminal" application on your Mac and enter the following command. Replace the path with your actual target directory: ```bash defaults write com.apple.screencapture location ~/wiki.lib00/Screenshots ``` *Pro Tip: If you don't want to type the path manually, simply drag and drop the target folder into the Terminal window, and macOS will automatically fill in the absolute path.* --- ## 3. Restart the System UI Server For the changes to take effect immediately, you need to restart the System UI service. Run the following command in Terminal: ```bash killall SystemUIServer ``` Now, take a test screenshot. You will find it neatly saved in the `~/wiki.lib00/Screenshots` directory. --- ## Bonus Tips & Troubleshooting ### Revert to Default Settings If you ever want to undo this change and have screenshots saved to your desktop again, execute these two commands: ```bash defaults delete com.apple.screencapture location killall SystemUIServer ``` ### Related Tip: Change Screenshot Format macOS saves screenshots as PNG files by default, which can be quite large. If you want to save storage space, you can change the default format to JPG using this command: ```bash defaults write com.apple.screencapture type jpg killall SystemUIServer ``` ### The GUI Method If you are using macOS Mojave or later, you can also change this setting without the Terminal. Simply press `Command + Shift + 5` to open the screenshot toolbar, click on "Options," and select a new destination under the "Save to" section. For more productivity hacks and Mac tutorials, visit **wiki.lib00.com**.
Related Contents