Title here
Summary here
November 3, 20202 minutes
whoami
command in Linux. whoami
is a command which the user name associated with the current effective user ID. This command similar to running id
command with -un
option. ## whoami Syntax {#h-whoami-syntax} whoami [OPTION]...
## Getting help for whoami {#h-getting-help-for-whoami} To get help for whoami command we can run the command below. whoami --help
man whoami
info whoami
whoami
with no option, it will print our username. For example: $ whoami howtodojo
## Linux whoami Command Source Code {#h-linux-whoami-command-source-code} You can find whoami command source code from the following repositories: _ [whoami source code on GitHub][1] _ [whoami source code on GNU Savannah cgit][2] _ [whoami source code on GNU Savannah gitweb][3] ## Related Commands {#h-related-commands} _ [w command in Linux][4] _ [id command in Linux][5] _ [who command in Linux][6] ## Video Tutorial {#h-video-tutorial} {{ youtube 1jUUJbzxxEI }} ## Summary {#h-summary} In this tutorial we learn how to use whoami
command in Linux with practical examples. Visit our [Linux Commands][7] guide to learn more about using command line interface in Linux. [1]: https://github.com/coreutils/coreutils/blob/master/src/whoami.c [2]: https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/whoami.c [3]: https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/whoami.c;h=69c9ccc0e36be2eb6995a5739cfabb725c973a54;hb=refs/heads/master [4]: https://www.howtodojo.com/linux-w-command/ [5]: https://www.howtodojo.com/linux-id-command/ [6]: https://www.howtodojo.com/linux-who-command/ [7]: https://www.howtodojo.com/linux-commands/