How to Check Which Display Manager is Running via Command Line

command linedesktop-environmentsxorg

How can I determine the name of the display manager in use solely by using the command line?

Best Answer

Short answer:

As mentioned in this answer on Unix & Linux, you should be able to get that from:

cat /etc/X11/default-display-manager

I tried it on both Unity and XFCE, both worked.