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!
