HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

logname — Show the user's login name. See also: `id`. More information: <https://www.gnu.org/software/coreutil

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandloginshownamecliuserlogname

Problem

How to use the logname command: Show the user's login name. See also: id. More information: <https://www.gnu.org/software/coreutils/manual/html_node/logname-invocation.html>.

Solution

logname — Show the user's login name. See also: id. More information: <https://www.gnu.org/software/coreutils/manual/html_node/logname-invocation.html>.

Display the currently logged in user's name:
logname

Code Snippets

Display the currently logged in user's name

logname

Context

tldr-pages: common/logname

Revisions (0)

No revisions yet.