how to knw if gdm is active code example Example: how to knw if gdm is active systemctl status gdm.service