snippetbashTip
logname — Show the user's login name. See also: `id`. More information: <https://www.gnu.org/software/coreutil
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:
lognameCode Snippets
Display the currently logged in user's name
lognameContext
tldr-pages: common/logname
Revisions (0)
No revisions yet.