CNET también está disponible en español.

Ir a español

Don't show this again

TikTok barred from US starting Sunday Apple's best iOS 14 features Second stimulus check payment schedule iPhone 12 release prediction Super Mario 3D All-Stars review The best VPN service of 2020 Apple Watch Series 6

How to change the location and format of Mac screenshots

Two simple Terminal commands let you change the location and format of screenshots taken with your Mac's built-in screen-capture tool.

As a tech blogger, I take a lot of screenshots on my Mac and iOS devices to illustrate my posts. I use the built-in screen-capture tool on my MacBook Pro to snap a portion of my screen (Command-Shift-4) or the full screen (Command-Shift-3). These screenshots by default get saved to the desktop. Thus, after a busy day or three of blogging, my desktop begins to get a bit cluttered.

Thanks to a helpful tip on AddictiveTips, I am now saving these screenshots to a designated folder. All it takes is entering a bit of code to Terminal. And, if you have a preferred file format for your screenshots, there's another line of code that will allow you to change that.

Screenshot by Matt Elliott/CNET

First, to change the location for your screenshots, you'll need to open Terminal and enter a command similar to this:

defaults write location **folder path**

In my case, I have a folder titled "screenshots" on my desktop, so the code I entered was:

defaults write location Users/mtelliott/Desktop/screenshots

(To find the path for a folder, right-click on it and choose Get Info.)

One important note: you will need to log out and back in again for the change to take effect.

Screenshot by Matt Elliott/CNET

Second, to change the file type from the default PNG format, enter this command:

defaults write type jpg

You can also select BMP, GIF, PDF, or TIFF instead of JPEG. Again, you will need to log out and back in for the change to take effect.