How to change the screenshots save file location in MacOS X
I know how to capture my whole screen or just part of it. The screenshot is automatically saved to my desktop, and it is cluttering the entire desktop with .png screenshot files. How can I change where screenshots are saved on my MacOS X system instead of the default desktop location?
You can easily take a screenshot of your whole screen by pressing Shift-Command–3 keys. By default, the screenshot saved as a .png file on your desktop. You can press Shift-Command–4 to take a screenshot of a window. Then Space, and then clicking the window you want to capture. Again, the screenshot saved as a .png file on your desktop.
How to change screenshot save location
The steps are as follows:
Step 1: Open the terminal Application
Press Command–Space to open Spotlight and type terminal
Step 2: Use defaults command to change screenshot file location
Now take screenshot as described above and you should see the screenshots saved in $HOME/screenshots/ location: $ ls $HOME/screenshots/ -rw-r--r--@ 1 veryv staff 82674 Jan 3 22:23 Screen Shot 2017-01-03 at 10.23.27 PM.png
How do I revert back to original settings?
Type the following two commands to save back the screenshots in ~/Desktop/, enter:
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.