osxdaily.com
How to Get Current Screen Resolution from Command Line in Mac OS X
Typically Mac users will retrieve the screen resolution of connected displays through the Displays system preference panel in OS X. There’s certainly nothing wrong with that approach, it’s easy and…