How to Get Current Screen Resolution via Command Line?

2019-07-15 OS X

Open Terminal and type:

system_profiler SPDisplaysDataType | grep Resolution
Do NOT follow this link or you will be banned from the site!