Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the logname command of linux to display the user name

Shulou Source: shulou.com Published: 2022-06-02 18:40:33 09月22日 Update

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!

Tags: Name user command information parameter article online help done example commonly used instruction more format version knowledge industry grammar account information information channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Technology MySQL Redmi macOS