{
    "content": [
        {
            "type": "text",
            "text": "# pwd (pydoc)\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\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (9 lines)\n- **CLASSES** (3 lines) — 1 subsections\n  - class struct_passwd (126 lines)\n- **FUNCTIONS** (1 lines) — 3 subsections\n  - getpwall (4 lines)\n  - getpwnam (4 lines)\n  - getpwuid (4 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\npwd\n\n### DESCRIPTION\n\nThis module provides access to the Unix password database.\nIt is available on all Unix versions.\n\nPassword database entries are reported as 7-tuples containing the following\nitems from the password database (see `<pwd.h>'), in order:\npwname, pwpasswd, pwuid, pwgid, pwgecos, pwdir, pwshell.\nThe uid and gid items are integers, all others are strings. An\nexception is raised if the entry asked for cannot be found.\n\n### CLASSES\n\nbuiltins.tuple(builtins.object)\nstructpasswd\n\n#### class struct_passwd\n\n|  structpasswd(iterable=(), /)\n|\n|  pwd.structpasswd: Results from getpw*() routines.\n|\n|  This object may be accessed either as a tuple of\n|    (pwname,pwpasswd,pwuid,pwgid,pwgecos,pwdir,pwshell)\n|  or via the object attributes as named in the above tuple.\n|\n|  Method resolution order:\n|      structpasswd\n|      builtins.tuple\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  pwdir\n|      home directory\n|\n|  pwgecos\n|      real name\n|\n|  pwgid\n|      group id\n|\n|  pwname\n|      user name\n|\n|  pwpasswd\n|      password\n|\n|  pwshell\n|      shell program\n|\n|  pwuid\n|      user id\n|\n|  ----------------------------------------------------------------------\n|  Data and other attributes defined here:\n|\n|  matchargs = ('pwname', 'pwpasswd', 'pwuid', 'pwgid', 'pwgeco...\n|\n|  nfields = 7\n|\n|  nsequencefields = 7\n|\n|  nunnamedfields = 0\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.tuple:\n|\n|  add(self, value, /)\n|      Return self+value.\n|\n|  contains(self, key, /)\n|      Return key in self.\n|\n|  eq(self, value, /)\n|      Return self==value.\n|\n|  ge(self, value, /)\n|      Return self>=value.\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  getitem(self, key, /)\n|      Return self[key].\n|\n|  getnewargs(self, /)\n|\n|  gt(self, value, /)\n|      Return self>value.\n|\n|  hash(self, /)\n|      Return hash(self).\n|\n|  iter(self, /)\n|      Implement iter(self).\n|\n|  le(self, value, /)\n|      Return self<=value.\n|\n|  len(self, /)\n|      Return len(self).\n|\n|  lt(self, value, /)\n|      Return self<value.\n|\n|  mul(self, value, /)\n|      Return self*value.\n|\n|  ne(self, value, /)\n|      Return self!=value.\n|\n|  rmul(self, value, /)\n|      Return value*self.\n|\n|  count(self, value, /)\n|      Return number of occurrences of value.\n|\n|  index(self, value, start=0, stop=9223372036854775807, /)\n|      Return first index of value.\n|\n|      Raises ValueError if the value is not present.\n|\n|  ----------------------------------------------------------------------\n|  Class methods inherited from builtins.tuple:\n|\n|  classgetitem(...) from builtins.type\n|      See PEP 585\n\n### FUNCTIONS\n\n#### getpwall\n\nReturn a list of all available password database entries, in arbitrary order.\n\nSee help(pwd) for more on password database entries.\n\n#### getpwnam\n\nReturn the password database entry for the given user name.\n\nSee `help(pwd)` for more on password database entries.\n\n#### getpwuid\n\nReturn the password database entry for the given numeric user ID.\n\nSee `help(pwd)` for more on password database entries.\n\n### FILE\n\n(built-in)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pwd",
        "section": "",
        "mode": "pydoc",
        "summary": "pwd",
        "synopsis": null,
        "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": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 3,
                "subsections": [
                    {
                        "name": "class struct_passwd",
                        "lines": 126
                    }
                ]
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "getpwall",
                        "lines": 4
                    },
                    {
                        "name": "getpwnam",
                        "lines": 4
                    },
                    {
                        "name": "getpwuid",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}