How to Get Current Screen Resolution via Command Line?

2019-07-15 OS X

Open Terminal and type:

system_profiler SPDisplaysDataType | grep Resolution