WHOAMI(1) User Commands WHOAMI(1)NAME
whoami - print effective userid
SYNOPSIS
whoami [OPTION]...
DESCRIPTION
Print the user name associated with the current effective user ID. Same as id -un.
--help display this help and exit
--version
output version information and exit
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report whoami translation bugs to <http://translationproject.org/team/>
AUTHOR
Written by Richard Mlynarik.
COPYRIGHT
Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for whoami is maintained as a Texinfo manual. If the info and whoami programs are properly installed at your site,
the command
info coreutils 'whoami invocation'
should give you access to the complete manual.
GNU coreutils 8.22 June 2014 WHOAMI(1)
Check Out this Related Man Page
GROUPS(1) User Commands GROUPS(1)NAME
groups - print the groups a user is in
SYNOPSIS
groups [OPTION]... [USERNAME]...
DESCRIPTION
Print group memberships for each USERNAME or, if no USERNAME is specified, for the current process (which may differ if the groups database
has changed).
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by David MacKenzie and James Youngman.
REPORTING BUGS
Report groups bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report groups translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for groups is maintained as a Texinfo manual. If the info and groups programs are properly installed at your site,
the command
info coreutils 'groups invocation'
should give you access to the complete manual.
GNU coreutils 8.5 February 2011 GROUPS(1)
Ladies, Gents,
I am fairly new to this game but I am having trouble making the above command work.
If I login as root and go to terminal session "whoami" works.
If I login as admin open a terminal session and "su root" the "whoami" command comes up with " Not recognised".
Any ideas?
... (1 Reply)
Hello
I have a question about shell programming
So I recently found out that someone is secretly accessing my files due to my mistake. Of course, now, I changed all the permission so people cannot access my file(s) anymore.
However, I am a little bit mad about the fact and I'd like to find that... (1 Reply)
how can I use whoami on a script for ordinary user? it always says command not found. pls help
#!/bin/ksh
W='whoami'
DATE=`date "+%Y-%m-%d %H:%M:%S"`
echo " $DATE- by $W"
result
2011-03-29 09:46:16 - by
you wil noticed the by is blank...pls help..but in root, it works (1 Reply)
I was following a tutorial on installing Homebrew and I changed the ownership of /usr/local/ to me. Now McAfee Security won't start This is the exact line I typed:
sudo chown -R `whoami` /usr/local
Then I tried to fix it with:
sudo chown -R root /usr/local
I still can't start mcafee. It say... (7 Replies)
// AIX 6.1 TL8
Please advise on how to capture whoami log or the user and time info into a log file (i.e. /tmp/cmdcapture.log) whenever users are executing a certain command(s) so that I can keep the single log history (for all users) of who did what. The command(s) I need to monitor are a... (3 Replies)