Yes, you can. Use the command "xrandr | grep '*' | awk '{ print $1 }'" for "xrandr," and "xdpyinfo | grep dimensions | awk '{print $2}'" for "xdpyinfo." These commands will display only the screen resolution.