Re: who am i logged in as

2013-01-27 Thread ill...@gmail.com
On 27 January 2013 11:31,   wrote:
>> I know there is a command that will give me the name
>> of the account I am logged in on.
>>
>> But I can not recall the name of this command.
>>
>> What is the name of this command?
>>
>> Thanks
>>
> name@hactar:/home/name % who
> namepts/0Jan 27 16:31 (xxx.xxx.xxx.xxx)
> name@hactar:/home/name % whoami
> name
> name@hactar:/home/name %
>
> also id
>
> man who
> man whoami
> man id
>

~> ls -li `which whoami id`
1201423 -r-xr-xr-x  3 root  wheel  12008 Nov 30 20:26 /usr/bin/id
1201423 -r-xr-xr-x  3 root  wheel  12008 Nov 30 20:26 /usr/bin/whoami

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: who am i logged in as

2013-01-27 Thread cpet
> I know there is a command that will give me the name
> of the account I am logged in on.
>
> But I can not recall the name of this command.
>
> What is the name of this command?
>
> Thanks
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"
>
name@hactar:/home/name % who
namepts/0Jan 27 16:31 (xxx.xxx.xxx.xxx)
name@hactar:/home/name % whoami
name
name@hactar:/home/name %

also id

man who
man whoami
man id

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: who am i logged in as

2013-01-27 Thread Rajarajan Rajamani
On Jan 27, 2013 11:19 AM, "Chris Hill"  wrote:
>
> On Sun, 27 Jan 2013, Fbsd8 wrote:
>
>> I know there is a command that will give me the name
>> of the account I am logged in on.
>>
>> But I can not recall the name of this command.
>>
>> What is the name of this command?
>
>
> whoami
>
>
>>
>> Thanks
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
freebsd-questions-unsubscr...@freebsd.org"
>>
>
> --
> Chris Hill   ch...@monochrome.org
> ** [ Busy Expunging  ]
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
freebsd-questions-unsubscr...@freebsd.org"

id
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: who am i logged in as

2013-01-27 Thread Chris Hill

On Sun, 27 Jan 2013, Fbsd8 wrote:


I know there is a command that will give me the name
of the account I am logged in on.

But I can not recall the name of this command.

What is the name of this command?


whoami



Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: who am i logged in as

2013-01-27 Thread Joe Altman
On Sun, Jan 27, 2013 at 11:01:46AM -0500, Fbsd8 wrote:
>
> I know there is a command that will give me the name
> of the account I am logged in on.
> 
> But I can not recall the name of this command.
> 
> What is the name of this command?

whoami
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: who am i logged in as

2013-01-27 Thread Ralf Mardorf

On Sun, 27 Jan 2013 17:01:46 +0100, Fbsd8  wrote:


I know there is a command that will give me the name
of the account I am logged in on.

But I can not recall the name of this command.

What is the name of this command?


As user run

$ id
uid=1000(rocketmouse) gid=1000(rocketmouse)  
groups=1000(rocketmouse),0(wheel)

$ groups
rocketmouse wheel
$ whoami
rocketmouse
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"