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:15Boost Mac Productivity: How to Set F1-F12 as Standard Function Keys on macOS
Duration: 00:00 | DP | 2026-07-12 08:15:37Bypassing macOS Restrictions: How to Set a 1-Digit Login Password
Duration: 00:00 | DP | 2026-07-13 08:20:49How 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:10Never Lose Output Again: How to Show Unlimited Scrollback History in macOS iTerm2
Duration: 00:00 | DP | 2026-07-21 21:05:04Ultimate Guide: How to Export Markdown Preview to PDF in VS Code
Duration: 00:00 | DP | 2026-07-23 09:12:53PhpStorm Shortcut Tips: How to Use Cmd+D to Select Next Occurrence Like Sublime Text
Duration: 00:00 | DP | 2026-07-28 09:38:55Cron Job Failing? The Ultimate Guide to Fixing 'docker: command not found'
Duration: 00:00 | DP | 2026-08-01 09:59:44Master 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:00Recommended
The Ultimate PHP PDO Pitfall: Why Did Your SQL Optimization Cause an Error? Unmasking ATTR_EMULATE_PREPARES
00:00 | 97When optimizing a PHP PDO SQL update statement wit...
The Art of MySQL Index Order: A Deep Dive from Composite Indexes to the Query Optimizer
00:00 | 152This article provides a deep dive into the philoso...
Are Your PHP Prefixes Truly Unique? A Deep Dive into Collision Probability from `mt_rand` to `random_bytes`
00:00 | 117Generating unique identifiers in PHP is a common t...
Mastering Bootstrap 5 Rounded Corners: The Ultimate Guide to Border-Radius
00:00 | 157Struggling with border-radius in Bootstrap 5? This...