Sunday, October 25, 2015

Get screen resolution using command line

To get screen resolution using command line, for Ubuntu Linux:
$ xdpyinfo  | grep dimensions

or

$ xrandr -q