How to Take ScreenShot On Mac Using Terminal

We wrote before the method to take the screenshot on Mac through keyboard shortcut keys and today we are sharing an other method to take screenshot on Mac through terminal command.

Terminal allows to capture screenshot after a specific time interval and you can also save screenshot in some other file formats as JPG, TIFF etc otherwise by default Mac saves screenshot in PNG format.

Follow the method written below to take screenshot on Mac by using command on terminal.

See also:
How to capture screen shots on Mac with keyboard shortcut keys
How to Set a Folder to Save Screen Shots on Mac

How to Take Screen Shot Via Terminal On Mac

Step 1

Click on Finder

Step 2

Go to Applications > Utilities and then launch Terminal

Step 3

Type following command in Terminal

screencapture -T 6 ~/Desktop/screenshot.jpg

where: T 6  = time interval in seconds, Desktop = location to save screenshot and screenshot.jpg = filename with extension

By default time interval is set to 5 seconds

Step 4

To know further details about screencapture command type the following command in terminal and hit Enter

screencapture --help

5 comments… add one
Julia January 5, 2010, 5:30 am

It works great on mac i try that after reading your article

Mathew January 5, 2010, 11:37 am

This is quite easy to take screenshot through command line on mac

Leave a Reply