Taking screenshots from the command line is made easy, thanks to a utility included in Mac OS X called screencapture. Here’s how to use it: screencapture test.jpg The screen capture will then appear in the directory that the command was executed. There are more advanced features to the screencapture utility though, here’s a few examples. Open the screencapture in Preview immediately after being ta
![Take a screen capture from the command line](https://cdn-ak-scissors.b.st-hatena.com/image/square/8373f8cf69142bca5ce6190def7b8a8aec91a01b/height=288;version=1;width=512/https%3A%2F%2Fcdn.osxdaily.com%2Fwp-content%2Fuploads%2F2014%2F02%2Fterminal-icon.png)