What Is Difference Between The Whoami And Logname Commands?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The ‘whoami’ command displays the username of the user currently logged in, while the ‘logname’ command displays the name of the user logged in as. The ‘whoami’ command is a more general command that works across multiple operating systems and is more widely used, while the ‘logname’ command is typically only available on Unix-based systems.