{
    "content": [
        {
            "type": "text",
            "text": "# pwd (man)\n\n## TLDR\n\n> Print the name of current/working directory.\n\n- Print the current directory:\n  `pwd`\n- Print the current directory, and resolve all symlinks (i.e. show the \"physical\" path):\n  `pwd {{-P|--physical}}`\n- Display help:\n  `pwd --help`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** pwd - print name of current/working directory\n\n**Synopsis:** pwd [OPTION]...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -L | --logical | — | use PWD from environment, even if it contains symlinks |\n| -P | --physical | — | avoid all symlinks --help display this help and exit |\n| — | --version | — | output version information and exit If no option is specified, -P is assumed. NOTE: your shell may have its own version  |\n\n## See Also\n\n- getcwd(3)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (2 lines) — 3 subsections\n  - -L --logical (2 lines)\n  - -P --physical (4 lines)\n  - --version (8 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (8 lines)\n\n## Full Content\n\n### NAME\n\npwd - print name of current/working directory\n\n### SYNOPSIS\n\npwd [OPTION]...\n\n### DESCRIPTION\n\nPrint the full filename of the current working directory.\n\n#### -L --logical\n\nuse PWD from environment, even if it contains symlinks\n\n#### -P --physical\n\navoid all symlinks\n\n--help display this help and exit\n\n#### --version\n\noutput 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\n### AUTHOR\n\nWritten by Jim Meyering.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright  ©  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\n### SEE ALSO\n\ngetcwd(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)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pwd",
        "section": "",
        "mode": "man",
        "summary": "pwd - print name of current/working directory",
        "synopsis": "pwd [OPTION]...",
        "tldr_summary": "Print the name of current/working directory.",
        "tldr_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"
            }
        ],
        "tldr_source": "official",
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-L --logical",
                        "lines": 2,
                        "flag": "-L",
                        "long": "--logical"
                    },
                    {
                        "name": "-P --physical",
                        "lines": 4,
                        "flag": "-P",
                        "long": "--physical"
                    },
                    {
                        "name": "--version",
                        "lines": 8,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 8,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}