The OS uses SSSD to authenticate users via LDAP. It has no X server running. I can run id <username>
to get the uid of the user. And the users can login to the system and their full name is displayed.
Is there a way to get the full name or display name of a specified user via a shell command?
Best Answer
getent passwd <username>
should do the trick.