Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

whoami(1) [minix man page]

WHOAMI(1)						      General Commands Manual							 WHOAMI(1)

NAME
whoami - print current user name SYNOPSIS
whoami EXAMPLES
whoami # Print user name DESCRIPTION
In case you forget who you are logged in as, whoami will tell you. If you use su to become somebody else, whoami will give the current effective user. SEE ALSO
id(1), who(1). WHOAMI(1)

Check Out this Related Man Page

hostconfig(1M)						  System Administration Commands					    hostconfig(1M)

NAME
hostconfig - configure a system's host parameters SYNOPSIS
/usr/sbin/hostconfig -p protocol [-d] [ -h] [-n] [-v] [-i interface] [-f hostname] DESCRIPTION
The hostconfig program uses a network protocol to acquire a machine's host parameters and set these parameters on the system. The program selects which protocol to use based on the argument to the required -p flag. Different protocols may set different host param- eters. Currently, only one protocol (bootparams) is defined. OPTIONS
The following options are supported: -d Enable debug output. -f hostname Run the protocol as if this machine were named hostname. -h Echo the received hostname to stdout, rather than setting hostname using the system name directly. -i interface Use only the named network interface to run the protocol. -n Run the network protocol, but do not set the acquired parameters into the system. -p protocol Run hostconfig using protocol. Currently, only one protocol (bootparams) is available. This option is required. Specifying the -p bootparams option uses the whoami call of the RPC bootparams protocol. This sets the system's hostname, domainname, and default IP router parameters. -v Enable verbose output. EXAMPLES
Example 1: Configuring Host Parameters with Verbose Output The following command configures a machine's host parameters using the whoami call of the RPC bootparams protocol with a verbose output. example# hostconfig -p bootparams -v Example 2: Displaying Host Parameters The following command displays the parameters that would be set using the whoami call of the RPC bootparams protocol. example# hostconfig -p bootparams -n -v Example 3: Configuring Host Parameters Less the System Name The following command configures a machine's host parameters, less the system name, using the whoami call of the RPC bootparams protocol. example# hostconfig='hostconfig -p bootparams -h' ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
hostname(1), domainname(1M), route(1M), attributes(5) SunOS 5.10 6 Nov 2000 hostconfig(1M)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

The "Whoami" command

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)
Discussion started by: John Dobson
1 Replies

2. Shell Programming and Scripting

Finding whoami

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)
Discussion started by: chun02160
1 Replies

3. Shell Programming and Scripting

whoami export

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)
Discussion started by: lhareigh890
1 Replies

4. OS X (Apple)

sudo chown -R `whoami` /usr/local

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)
Discussion started by: chancho
7 Replies

5. UNIX for Dummies Questions & Answers

Whoami error

when I type whoami i get an error saying ksh not found.. how do I exit from ksh script and make it work .. (2 Replies)
Discussion started by: lakers646
2 Replies

6. AIX

Capture whoami log on a specific command

// 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)
Discussion started by: Daniel Gate
3 Replies