This tutorial explains Linux “whoami” command, options and its usage with examples.
whoami
Description:
whoami is used to print effective userid.
Synopsis:
whoami [OPTION]…
advertisement
advertisement
It prints the user name associated with the current effective user ID. Same as id -un command.
Example :
$ whoami
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.
If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.
Related Posts:
- Check Information Technology Books
- Check Linux Books
- Apply for Programming Internship
- Practice Programming MCQs