How to know if a remote machine has a display attached to it?

How to know if a remote machine has a display attached to it?

I have remote access to a Linux machine. How would I know if the machine is headless or it has a display attached to it? If I ssh into it and run echo $DISPLAY I don't get any output. Does it mean there is no display?

相关内容