How to Get Current Screen Resolution via Command Line?

2019-07-15 macOS

Open Terminal and type:

system_profiler SPDisplaysDataType | grep Resolution