{
    "content": [
        {
            "type": "text",
            "text": "# RANLIB (man)\n\n## NAME\n\nranlib - generate an index to an archive\n\n## SYNOPSIS\n\nranlib [--plugin name] [-DhHvVt] archive\n\n## DESCRIPTION\n\nranlib generates an index to the contents of an archive and stores it in the archive.  The\nindex lists each symbol defined by a member of an archive that is a relocatable object file.\n\n## TLDR\n\n- This is useful for linking and in case the objects call each other:\n  `ranlib fruits.a`\n- is called:\n  `</pre>`\n\n*Source: cheat.sh*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (9 subsections)\n- **SEE ALSO**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "RANLIB",
        "section": "",
        "mode": "man",
        "summary": "ranlib - generate an index to an archive",
        "synopsis": "ranlib [--plugin name] [-DhHvVt] archive",
        "tldr_summary": "",
        "tldr_examples": [
            {
                "description": "This is useful for linking and in case the objects call each other",
                "command": "ranlib fruits.a"
            },
            {
                "description": "is called",
                "command": "</pre>"
            }
        ],
        "tldr_source": "cheatsh",
        "flags": [
            {
                "flag": "-h",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-H",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--help",
                "arg": null,
                "description": "Show usage information for ranlib."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-V",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Show the version number of ranlib."
            },
            {
                "flag": "-D",
                "long": null,
                "arg": null,
                "description": "the UID, GID, and timestamp. When this option is used, multiple runs will produce identical output files. If binutils was configured with --enable-deterministic-archives, then this mode is on by default. It can be disabled with the -U option, described below."
            },
            {
                "flag": "-t",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-D",
                "long": null,
                "arg": null,
                "description": "archive index will get actual UID, GID, timestamp, and file mode values. If binutils was configured without --enable-deterministic-archives, then this mode is on by default. @file Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed. Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "ar",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ar/1/json"
            },
            {
                "name": "nm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/nm/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-h",
                        "lines": 1,
                        "flag": "-h"
                    },
                    {
                        "name": "-H",
                        "lines": 1,
                        "flag": "-H"
                    },
                    {
                        "name": "--help",
                        "lines": 2,
                        "long": "--help"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-V",
                        "lines": 1,
                        "flag": "-V"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "-D",
                        "lines": 6,
                        "flag": "-D"
                    },
                    {
                        "name": "-t",
                        "lines": 1,
                        "flag": "-t"
                    },
                    {
                        "name": "-U   -D",
                        "lines": 16,
                        "flag": "-D"
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ranlib - generate an index to an archive\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ranlib [--plugin name] [-DhHvVt] archive\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "ranlib generates an index to the contents of an archive and stores it in the archive.  The\nindex lists each symbol defined by a member of an archive that is a relocatable object file.\n\nYou may use nm -s or nm --print-armap to list this index.\n\nAn archive with such an index speeds up linking to the library and allows routines in the\nlibrary to call each other without regard to their placement in the archive.\n\nThe GNU ranlib program is another form of GNU ar; running ranlib is completely equivalent to\nexecuting ar -s.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-h",
                        "content": "",
                        "flag": "-h"
                    },
                    {
                        "name": "-H",
                        "content": "",
                        "flag": "-H"
                    },
                    {
                        "name": "--help",
                        "content": "Show usage information for ranlib.\n",
                        "long": "--help"
                    },
                    {
                        "name": "-v",
                        "content": "",
                        "flag": "-v"
                    },
                    {
                        "name": "-V",
                        "content": "",
                        "flag": "-V"
                    },
                    {
                        "name": "--version",
                        "content": "Show the version number of ranlib.\n",
                        "long": "--version"
                    },
                    {
                        "name": "-D",
                        "content": "the  UID,  GID,  and  timestamp.   When  this  option is used, multiple runs will produce\nidentical output files.\n\nIf binutils was configured with --enable-deterministic-archives, then this mode is on  by\ndefault.  It can be disabled with the -U option, described below.\n",
                        "flag": "-D"
                    },
                    {
                        "name": "-t",
                        "content": "",
                        "flag": "-t"
                    },
                    {
                        "name": "-U   -D",
                        "content": "archive index will get actual UID, GID, timestamp, and file mode values.\n\nIf binutils was configured without --enable-deterministic-archives, then this mode is  on\nby default.\n\n@file\nRead  command-line  options  from  file.   The  options read are inserted in place of the\noriginal @file option.  If file does not exist, or cannot be read, then the  option  will\nbe treated literally, and not removed.\n\nOptions  in  file are separated by whitespace.  A whitespace character may be included in\nan option by surrounding the entire option  in  either  single  or  double  quotes.   Any\ncharacter  (including  a  backslash)  may  be  included  by prefixing the character to be\nincluded with a backslash.  The file may itself contain  additional  @file  options;  any\nsuch options will be processed recursively.\n",
                        "flag": "-D"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "ar(1), nm(1), and the Info entries for binutils.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 1991-2024 Free Software Foundation, Inc.\n\nPermission  is granted to copy, distribute and/or modify this document under the terms of the\nGNU Free Documentation License, Version 1.3 or  any  later  version  published  by  the  Free\nSoftware Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-\nCover  Texts.   A  copy  of  the  license  is  included  in  the  section  entitled \"GNU Free\nDocumentation License\".\n\nbinutils-2.42                                2026-02-09                                    RANLIB(1)",
                "subsections": []
            }
        }
    }
}