Use the logname command of linux to display the user name
Editor to share with you the use of linux logname command to display the user name, I hope you will learn a lot after reading this article, let's discuss it together!
Executes the logname instruction, which displays the name of the current user.
Syntax format: logname [parameters]
Common parameters:
-- help online help-- vesion displays version information
Reference example
Display the information of the login account:
[root@linuxcool ~] # logname has finished reading this article, I believe you have a certain understanding of using linux's logname command to display user names, want to know more about it, welcome to follow the industry information channel, thank you for reading!