To determine the video resolution from a command line, such as a Terminal shell prompt, on an OS X system, you can use the command
system_profiler SPDisplaysDataType
.
$ system_profiler SPDisplaysDataType Graphics/Displays: NVIDIA GeForce 9400M: Chipset Model: NVIDIA GeForce 9400M Type: GPU Bus: PCI VRAM (Total): 256 MB Vendor: NVIDIA (0x10de) Device ID: 0x0863 Revision ID: 0x00b1 ROM Revision: 3448 gMux Version: 1.8.8 Displays: Color LCD: Display Type: LCD Resolution: 1440 x 900 Pixel Depth: 32-Bit Color (ARGB8888) Main Display: Yes Mirror: Off Online: Yes Built-In: Yes NVIDIA GeForce 9600M GT: Chipset Model: NVIDIA GeForce 9600M GT Type: GPU Bus: PCIe PCIe Lane Width: x16 VRAM (Total): 512 MB Vendor: NVIDIA (0x10de) Device ID: 0x0647 Revision ID: 0x00a1 ROM Revision: 3448 gMux Version: 1.8.8
In the example above, the video resolution for the MacBook Pro on which I ran the command is 1440 x 900. The Screen Information page at BrowserSpy.dk will also report a system's screen resolution, if you visit that page using a browser on the system. In this case it reports a width of 1440 and a height of 900 pixels for the MacBook Pro.