Re: command to get my Full name from /etc/passwd
- From: jellybean stonerfish <stonerfish@xxxxxxxxxxxxx>
- Date: Wed, 21 Nov 2007 07:23:58 GMT
On Tue, 20 Nov 2007 18:05:09 +0000, Enrique Arredondo wrote:
Is there a command like "who am i" that will display my user full name when
I logged in ? If I do finger it brings up all instances so doesn't work for
me, I just want one line reported back to me.... ie john John Jones
Thanks
Do you want this to be a one time thing when you log in, or for it to be
your shell prompt, or do you want a command to do it when you request it?
grep $USER /etc/passwd | awk 'BEGIN { FS=":" } { print $5 } '
.
- Follow-Ups:
- Re: command to get my Full name from /etc/passwd
- From: Brian K. White
- Re: command to get my Full name from /etc/passwd
- References:
- command to get my Full name from /etc/passwd
- From: Enrique Arredondo
- command to get my Full name from /etc/passwd
- Prev by Date: Re: command to get my Full name from /etc/passwd
- Next by Date: Re: FoxBase license on SCO
- Previous by thread: Re: command to get my Full name from /etc/passwd
- Next by thread: Re: command to get my Full name from /etc/passwd
- Index(es):
Relevant Pages
|
|