79387648

Date: 2025-01-25 22:42:18
Score: 1
Natty:
Report link

If you want to get the fullname and not the user id, you can get from /etc/passwd and get your line with grep; or simpler with id -P which get the line for the current user; and, in all case, something like that:

id -P|cut -d":" -f5,5|cut -d"," -f1,1

(first cut to get the GECOS part, then 2nd cut to get the fullname, in case other info is present)

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: nam_nam