Declutter Your Desktop: How to Change macOS Screenshot Save Location via Command Line
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
macOS RAM Disk Deep Dive: Is Memory Allocation Dynamic or Fixed?
Duration: 00:00 | DP | 2026-07-09 20:02:36How to Fix "Permission denied" Error When Running Shell Scripts in Mac/Linux
Duration: 00:00 | DP | 2026-07-06 08:54:30macOS Advanced Guide: How to Elegantly Set Programs to Run at Startup
Duration: 00:00 | DP | 2026-07-07 09:20:15How to Fix Mac mini Not Receiving SMS Messages and iCloud Sync Stuck
Duration: 00:00 | DP | 2026-07-06 22:07:00Guide to Sharing Skill Libraries Across Multiple AI Agents Using Symlinks
Duration: 00:00 | DP | 2026-07-08 09:46:00How to Add an Email Alias to Your Hotmail or Outlook Account
Duration: 00:00 | DP | 2026-06-28 19:41:10Master Sublime Text Code Folding: The Ultimate Shortcut Guide to Unfold/Fold Blocks Instantly
Duration: 00:00 | DP | 2026-01-07 08:06:27NVM/Node Command Not Found in New macOS Terminals? A Two-Step Permanent Fix!
Duration: 00:00 | DP | 2025-12-04 09:35:00One-Command Website Stability Check: The Ultimate Curl Latency Test Script for Zsh
Duration: 00:00 | DP | 2025-12-07 23:25:50How Can a Docker Container Access the Mac Host? The Ultimate Guide to Connecting to Nginx
Duration: 00:00 | DP | 2025-12-08 23:57:30Show Hidden Files on Mac: The Ultimate Guide (2 Easy Methods)
Duration: 00:00 | DP | 2025-12-12 01:32:30Boost Your VS Code Productivity: Select All Occurrences in a Single Keystroke!
Duration: 00:00 | DP | 2026-06-27 14:25:00Decoding `realpath: command not found` and Its Chained Errors on macOS
Duration: 00:00 | DP | 2025-11-19 12:45:02Unlock Your Mac: The Ultimate Guide to Showing and Hiding Hidden Files in Finder
Duration: 00:00 | DP | 2025-11-19 21:16:36macOS Hosts File Doesn't Support Wildcards? Here's the Ultimate Fix with Dnsmasq!
Duration: 00:00 | DP | 2025-11-20 05:48:10Why Are My Mac Files Duplicated on NFS Shares? The Mystery of '._' Files Solved with PHP
Duration: 00:00 | DP | 2025-12-18 16:58:20Say Goodbye to Clutter: Master Sublime Text Code Folding with These Essential Shortcuts
Duration: 00:00 | DP | 2025-11-24 03:35:20The Ultimate Docker & Xdebug Guide: Solving the 'Address Already in Use' Error for Port 9003 with PhpStorm
Duration: 00:00 | DP | 2026-02-18 14:50:37Recommended
The Art of MySQL Index Order: A Deep Dive from Composite Indexes to the Query Optimizer
00:00 | 128This article provides a deep dive into the philoso...
Frontend Development vs. JavaScript: How to Choose the Perfect Category for Your Tech Article
00:00 | 118Confused about whether to categorize your article ...
PHP PDO WHERE From Novice to Pro: Building a Powerful Dynamic Query Builder
00:00 | 131Dynamically building SQL WHERE clauses in PHP is a...
The Ultimate Guide to Robots.txt: From Beginner to Pro (with Full Examples)
00:00 | 112This article is a comprehensive guide to robots.tx...