A colleague of mine started using Mac for the first time. She took a couple of screenshots in order to share the same with the team members; however, she wasn’t sure of the location where the screenshots gets saved.
defaults read com.apple.screencapture
This command might look Latin & Greek for those who aren’t familiar with coding, but it can be remembered easily by splitting it into three sections.
- com.apple.screencapture – type of activity
- read – type of operation (in this case, we gotta read/know which is the default storing location)
- defaults – a preselected location configured in Mac
location = “/Users/Prasanna/Downloads/Screenshots”;
After specifying the command in the terminal, response as shown above will be displayed. The response indicates that screenshots are stored in the folder ‘Screenshots’ under the parent folder ‘Downloads’.
Now that we have figured out the default location, is it possible to change the location? The answer is YES! It can be changed.
defaults write com.apple.screencapture location ~/Desktop/Screenshots
After specifying this command in the terminal, hit Enter on the keyboard.
After specifying this command in the terminal, hit Enter on the keyboard. This command is to terminate the currently running process and configure the system to save the screenshot in the new location.