Scroll to navigation

LOGNAME(1) General Commands Manual LOGNAME(1)

NAME

logname - Print user's login name

SYNOPSIS

logname [-h|--help] [-V|--version]

DESCRIPTION

Print user's login name

OPTIONS

Print help
Print version

VERSION

v(uutils coreutils) 0.8.0

EXAMPLES

Display the currently logged in user's name:

logname

The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

2026-05-17