How do I get the current user''s username in Bash?
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: