请输入您要查询的百科知识:

 

词条 Logname
释义

  1. History

  2. Usage

  3. See also

  4. References

  5. External links

{{lowercase|title=logname}}{{Infobox Software
| name = logname
| logo =
| screenshot =
| screenshot size =
| caption =
| developer =
| released = {{Start date and age|1982}}
| latest release version =
| latest release date =
| operating system = Unix and Unix-like
| genre = Command
| license = GNU GPL v3
| website =
}}

In computer software, logname (stands for Login Name) is a program in Unix and Unix-like operating systems that prints the name of the user who is currently logged in on the terminal. It usually corresponds to the LOGNAME variable in the system-state environment (but this variable could have been modified).

History

The logname system call and command appeared for the first time in UNIX System III. The author of the version of logname bundled in GNU coreutils is unknown.[1]

Usage

$ logname --help

Usage: logname [OPTION]

Print the name of the current user.

      --help     display this help and exit      --version  output version information and exit

See also

  • whoami

References

1. ^https://linux.die.net/man/1/logname

External links

  • {{man|cu|logname|SUS|return the user's login name}}
{{Unix commands}}{{Unix-stub}}

2 : Unix user management and support-related utilities|Unix SUS2008 utilities

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 3:20:27