Can `whoami` show other users?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 02 2025
0182

No, the whoami command only displays the username of the currently logged-in user executing the command. It does not provide information about other users on the system.

If you want to see a list of all users currently logged in, you can use the who or w command instead.

If you have any more questions or need further assistance, feel free to ask!

0 Comments

no data
Be the first to share your comment!