The "other" finger (GECOS fields at /etc/passwd)
The best way i have found is to use getent
because that will work with LDAP/NIS or other methods of non local users
getent passwd $UID| awk -F ":" '{print $5}'
The best way i have found is to use getent
because that will work with LDAP/NIS or other methods of non local users
getent passwd $UID| awk -F ":" '{print $5}'