{
    "mode": "man",
    "parameter": "x86_64-linux-gnu-ranlib",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/x86_64-linux-gnu-ranlib/1/json",
    "generated": "2026-06-03T00:25:41Z",
    "synopsis": "ranlib [--plugin name] [-DhHvVt] archive",
    "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-2022 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\n\n\nbinutils-2.38                                2025-12-03                                    RANLIB(1)",
            "subsections": []
        }
    },
    "summary": "ranlib - generate an index to an archive",
    "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"
        }
    ]
}