{
    "mode": "man",
    "parameter": "pwd",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pwd/1/json",
    "generated": "2026-06-15T13:45:58Z",
    "synopsis": "pwd [OPTION]...",
    "sections": {
        "NAME": {
            "content": "pwd - print name of current/working directory\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pwd [OPTION]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print the full filename of the current working directory.\n",
            "subsections": [
                {
                    "name": "-L --logical",
                    "content": "use PWD from environment, even if it contains symlinks\n",
                    "flag": "-L",
                    "long": "--logical"
                },
                {
                    "name": "-P --physical",
                    "content": "avoid all symlinks\n\n--help display this help and exit\n",
                    "flag": "-P",
                    "long": "--physical"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n\nIf no option is specified, -P is assumed.\n\nNOTE:  your  shell  may have its own version of pwd, which usually supersedes the version de‐\nscribed here.  Please refer to your shell's documentation for details about  the  options  it\nsupports.\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Jim Meyering.\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": "getcwd(3)\n\nFull documentation <https://www.gnu.org/software/coreutils/pwd>\nor available locally via: info '(coreutils) pwd invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                      PWD(1)",
            "subsections": []
        }
    },
    "summary": "pwd - print name of current/working directory",
    "flags": [
        {
            "flag": "-L",
            "long": "--logical",
            "arg": null,
            "description": "use PWD from environment, even if it contains symlinks"
        },
        {
            "flag": "-P",
            "long": "--physical",
            "arg": null,
            "description": "avoid all symlinks --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit If no option is specified, -P is assumed. NOTE: your shell may have its own version of pwd, which usually supersedes the version de‐ scribed here. Please refer to your shell's documentation for details about the options it supports."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "getcwd",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/getcwd/3/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Print the name of current/working directory.",
        "examples": [
            {
                "description": "Print the current directory",
                "command": "pwd"
            },
            {
                "description": "Print the current directory, and resolve all symlinks (i.e. show the \"physical\" path)",
                "command": "pwd {{-P|--physical}}"
            },
            {
                "description": "Display help",
                "command": "pwd --help"
            }
        ]
    }
}