Question: How to see what monitors are connected to my Linux system?
Answer: If you want to see the displays connected to your system, one of the best way is to use the xrandr command.
You may need to install xrandr first. On a Debian or Ubuntu based system, use the command below to install xrandr:
sudo apt install xrandr
You can use the default package manager of your Linux distribution for installing xrandr as it is available in the main repository of almost every major distribution.
Once installed, use the xrandr command to list all the connected monitors:
This will show an output like this:
Monitors: 2 0: +*eDP-1 1920/294x1080/165+0+0 eDP-1 1: +DP-1 1920/480x1080/270+1920+0 DP-1
This means, right now it sees two monitors connected to my system. eDP-1 is the default laptop display while DP-1 is the external monitor.
You can also use just the xrandr command to get a look at all connected and disconnected ports.
I hope you find this quick Linux tips for finding connected monitors in terminal useful.