Find your screen resolution in Linux shell

To find your current resolution in a Linux shell you can use:

xdpyinfo | grep dim

dimensions:    3840×3600 pixels (1015×951 millimeters)