Information about Whoami (unix)

whoami is a Unix-command found on most versions of Unix-based operating systems. It is a concatenation of the words "Who am I?" and prints the effective userid (username) of the current user when invoked. This is slightly different from $USER because whoami outputs the username that you are working under, whereas $USER outputs the username that you used to login. For example, if you login as John and su into root, whoami displays root and echo $USER displays John.

It was written by Richard Mlynarik and is part of the GNU Core Utilities (coreutils).

Example

  1. whoami
root

See also

External links

  • [ whoami]
Unix (officially trademarked as UNIX®) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy.
..... Click the link for more information.
SU may refer to:
  • Su (Basque), the Basque spirit of fire
  • su (Unix), the substitute user command
  • Su (surname), a Chinese surname
  • su-, the Sanskrit cognate of Greek ε?
Abbreviations:
  • Aeroflot, Russian airline (IATA code SU)

..... Click the link for more information.
GNU Core Utilities or coreutils is a package of GNU software containing many of the basic tools such as cat, ls, and rm needed for Unix-like operating systems. It is a combination of a number of earlier packages, including textutils, shellutils, and
..... Click the link for more information.
In computer software, logname (stands for Logon Name) is a program in Unix operating systems that prints the name of the user executing the command. It corresponds to the LOGNAME variable in the system-state environment.
..... Click the link for more information.
In computer software, id is a program in Unix-like operating systems that prints the UID of the account of which the program is executed by.

Example: foobar@darkstar:~$ id uid=1016(foobar) gid=100(users) groups=100(users)

The root account has a UID of 0.
..... Click the link for more information.
The standard Unix command who displays a list of users who are currently logged into a computer.

The who command is related to the command w, which provides the same information but also displays additional data and statistics.
..... Click the link for more information.
Printing: lp Communications: inetd netstat ping rlogin nc traceroute Searching: find grep strings Miscellaneous: banner bc cal dd man size yes
..... Click the link for more information.
Unix (officially trademarked as UNIX®) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy.
..... Click the link for more information.
command line interface or CLI is a method of interacting with an operating system or software using a command line interpreter. This command line interpreter may be a text terminal, terminal emulator, or remote shell client such as PuTTY.
..... Click the link for more information.
Printing: lp Communications: inetd netstat ping rlogin nc traceroute Searching: find grep strings Miscellaneous: banner bc cal dd man size yes
..... Click the link for more information.
The cat command is a standard Unix program used to concatenate and display files. The name is from , a synonym of concatenate.

Specification

The Single Unix Specification specifies the behavior that each of the files given in sequence as arguments will write their
..... Click the link for more information.
chattr is a UNIX program that allows a user to set certain attributes to a file. Mostly chattr is used to make files immutable so that password files and certain system files cannot be erased during software upgrades.
..... Click the link for more information.
cd, sometimes also available as chdir (change directory), is a command line command to change the current working directory in operating systems such as Unix, Windows and DOS.
..... Click the link for more information.
The chmod command (abbreviated from change mode) is a shell command in Unix and Unix-like environments.

When executed, the command can change file system modes of files and directories. The modes include permissions and special modes.
..... Click the link for more information.
The chown command is used on Unix-like systems to change the owner of a file. In most implementations, it can only be executed by the Superuser. Unprivileged (regular) users who wish to change the group of a file that they own may use chgrp.
..... Click the link for more information.
The chgrp command is used by unprivileged users on Unix-like systems to change the group associated with a file. Unlike the chown command, chgrp allows regular users to change groups, but only to one of which they are a member.
..... Click the link for more information.
cksum is a POSIX command that reads the files specified by the File parameter and calculates a checksum, cyclic redundancy check (CRC) and the byte count for a file or files. If no files are specified, the cksum command reads standard input.
..... Click the link for more information.
cmp is a command line utility for computer systems that use a Unix operating system. It compares two files of any type and writes the results to the standard output. By default, cmp is silent if the files are the same; if they differ, the byte and line number at which the first
..... Click the link for more information.

..... Click the link for more information.
du (abbreviated from disk usage) is a standard Unix program used to estimate the file space usage; space used under a particular directory or files on a file system.

History

The du utility first appeared in version 1 of AT&T UNIX.
..... Click the link for more information.
df (abbreviated from disk free) is a standard Unix computer program used to display the amount of available disk space for filesystems on which the invoking user has appropriate read access, df
..... Click the link for more information.
file is a standard Unix program for determining the type of data contained in a file.

History

The original version of file originated in Unix Research Version 4 in 1973.
..... Click the link for more information.
fuser is a UNIX command showing which processes are using a specified file.


..... Click the link for more information.
ln is a standard Unix program used to create links (link) to files.

Link files

Links allow more than one file to refer to the same file, elsewhere.
..... Click the link for more information.
LS may refer to:
  • Lightspeed Media Corporation, a collection of nude teen websites
  • .ls, the Internet top-level domain for Lesotho
  • ls is a command specified by POSIX and the Single UNIX Specification. It lists files.
  • Jet2.

..... Click the link for more information.
lsof is a command meaning "list open files", which is used in many Unix-like systems to report a list of all open files and the processes that opened them. This open source utility was developed and supported by Vic Abell, the retired Associate Director of the Purdue University
..... Click the link for more information.
The mkdir command in the Unix operating system is used to make a new directory. Normal usage is as straightforward as follows: mkdir name_of_directory Where name_of_directory is the name of the directory one wants to create. When typed as above (ie.
..... Click the link for more information.
The mount Unix command line utility instructs the operating system a file system is ready for usage. The counterpart umount (note spelling) instructs the operating system that the file system will be (temporarily) removed and should no longer be used.
..... Click the link for more information.
MV can stand for:
  • MV Mercury-vapor lamp
  • Maldives (ISO 3166-1 alpha-2 top level domain country code)
  • MV is the IATA code for Armenian International Airways
  • Martha's Vineyard
  • Maroon 5, where 'V' would refer to the roman numeral for five.

..... Click the link for more information.
PWD could refer to either of the following:
  • Parkway Drive, a metalcore band from Byron Bay in Australia
  • Person/People with (a) disability/ies
  • Print working directory, a file transfer protocol command.

..... Click the link for more information.


This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus


page counter