• Home
  • Ubuntu
  • Debian
  • Linux
  • Commands
No Result
View All Result
TECH DHEE
  • Home
  • Ubuntu
  • Debian
  • Linux
  • Commands
No Result
View All Result
TECH DHEE
No Result
View All Result
Home Commands

Whoami command in Linux

techdhee by techdhee
February 23, 2023
0 0
0

In this article, we will learn about how to find your username using the whoami command in Linux. As its name suggests, the whoami command prints the user name of the effective user ID. In other words, it displays the name of the currently logged-in user.

Contents hide
1 whoami Command in Linux
2 Conclusion

whoami Command in Linux

The syntax for the whoamicommand is this:

$ whoami [oprions]

To display the name of the currently logged user, if you are using the following command:

$ whoami

Whoami command in Linux

When you are switching to another user with the sucommand. You can verify using whoamicommand whether the user is logged in or not.

Whoami command in Linux

The whoamicommand can accept two arguments:

  • -h (–help) – Display this help and exit.
  • -V (–version) – Output version information and exit.

Conclusion

The whoami command is a compound of the words “Who am I?” and prints the name of the user associated with the current effective user ID.

If you have any questions, feel free to leave a comment.

Related Posts:

  • How to Create a File in Linux
  • Su Command in Linux
  • Nala – An Alternative To APT Package Manager
  • Install Nano Text Editor in Linux
  • Linux File Hierarchy Structure
ShareTweetSendShareSend
Previous Post

How to Install ZSH on Ubuntu 22.04 LTS

Next Post

How to Install Nano Text Editor in Linux

techdhee

techdhee

Related Posts

How to Install Arch Linux
Linux

How to Install Arch Linux [Step by Step Guide]

August 6, 2023
Terminal Emulators for Linux
Linux

Top 6 Terminal Emulators for Linux

August 5, 2023
add user to sudoers in Debian
Commands

How to Add User to Sudoers in Debian 11

February 27, 2023
Install Nano Text Editor in Linux
Commands

How to Install Nano Text Editor in Linux

February 24, 2023
Install ZSH on Ubuntu 22.04
Commands

How to Install ZSH on Ubuntu 22.04 LTS

February 22, 2023
Commands

How to Install Terminator on Ubuntu 22.04 LTS

February 20, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You might also like

How-to-Check-Windows-10-is-Genuine-or-Not-Genuine

How to Check Windows 10 is Genuine or Not Genuine

August 6, 2023
How to Install Arch Linux

How to Install Arch Linux [Step by Step Guide]

August 6, 2023
Terminal Emulators for Linux

Top 6 Terminal Emulators for Linux

August 5, 2023
How to Install Tor Browser in Kali Linux 2023.1

How to Install Tor Browser in Kali Linux 2023.1

April 2, 2023

How to install Tweak Tool on Ubuntu 22.04 LTS

March 3, 2023
Install Ngrok on Ubuntu 22.04 LTS

How to Install Ngrok on Ubuntu 22.04 LTS

March 2, 2023

© 2024 tecdhee.com - Tech Tips, Tricks and Tutorials.

  • Home
  • About Us
  • Contact
  • Disclaimer
  • Privacy Policy
No Result
View All Result
  • About Us
  • Contact
  • Disclaimer
  • Home
  • Privacy Policy

© 2024 tecdhee.com - Linux Tips, Tricks and Tutorials.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In