how to check screen resolution in linux code example
Example 1: how to know screen resolution linux
$ xrandr | fgrep '*'
Example 2: linux cli see screen resolution
// On X.org (Tested on Debian Buster)
xrandr | grep current | cut -d" " -f8-10 | cut -d"," -f1