{
    "mode": "man",
    "parameter": "logname",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/logname/1/json",
    "generated": "2026-06-17T13:20:41Z",
    "synopsis": "logname [OPTION]",
    "sections": {
        "NAME": {
            "content": "logname - print user´s login name\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "logname [OPTION]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print the name of the current user.\n\n--help display this help and exit\n",
            "subsections": [
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by FIXME: unknown.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later\n<https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Full documentation <https://www.gnu.org/software/coreutils/logname>\nor available locally via: info '(coreutils) logname invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                  LOGNAME(1)",
            "subsections": []
        }
    },
    "summary": "logname - print user´s login name",
    "flags": [
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Show the user's login name.",
        "examples": [
            {
                "description": "Display the currently logged in user's name",
                "command": "logname"
            }
        ]
    }
}