Set A Screenshot’s Default File Name In Mac OS Terminal

Input/Output #7 Terminal Hacks: Set Screenshot's Default File Name artwork.

The macOS Screenshot application saves screenshots using a predefined naming convention [Screenshot YYYY-MM-DD at HH.MM.SS]. This hack will show you how you can customise this with your own text.

Change The Default File Name In Mac OS Terminal

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste the following whereby the name that a screenshot will be allocated is enclosed in the double quotes “”…

defaults write com.apple.screencapture name "Capture"

(return)

New screenshots will now adopt this new naming scheme. It will still include the date and time at the end to help distinguish between captures.


Revert Back to the Default File Name In Mac OS Terminal

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste the following…

defaults delete com.apple.screencapture name; killall SystemUIServer

(return)

Dates posted and updated.

Originally posted 27 April, 2025.

Other Posts