{
    "mode": "man",
    "parameter": "UCFQ",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/UCFQ/1/json",
    "generated": "2026-08-07T18:41:48Z",
    "synopsis": "usage: ucfq [options] (/path/to/file|package)[/path/to/file|package  ...]",
    "sections": {
        "NAME": {
            "content": "ucfq - query the ucf database\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "usage: ucfq [options] (/path/to/file|package)[/path/to/file|package  ...]\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "--help h Print out a usage message.\n--debug -d Turn on debugging mode.\n--verbose -v Make the script more verbose..",
            "subsections": [
                {
                    "name": "--with-colons -w",
                    "content": "Normally,  the  script  presents the information in a human readable tabular format, but\nthat may be harder for a machine to parse. With this option, the output  is  a  compact,\ncolon separated line, with no dividers, headers, or footer.\n\n--state-dr dir\nSet  the  state directory to \"/path/to/dir\" instead of the default \"/var/lib/ucf\".  Used\nmostly for testing.\n",
                    "flag": "-w",
                    "long": "--with-colons"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This script takes a set of arguments, each of which is a package name (and thus does not con‐\ntain a /) or a full path to a configuration file, and outputs the associated package, if any,\nif the file exists on disk, and whether it has been modified by the user.  The output is  ei‐\nther a human readable tabular form, or a compact colon-separated machine friendly format.\n\nThis  script  can  potentially  be used in package \"postrm\" scripts during purge to query the\nsystem for configuration files that may still exist on the system, and  whether  these  files\nhave  been  locally modified by the user -- assuming that the package registered all the con‐\nfiguration files with ucf using \"ucfr\".\n",
            "subsections": []
        },
        "CAVEATS": {
            "content": "This is very inchoate, at the moment, and needs testing.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "None Known so far.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Manoj Srivastava <srivasta\\@debian.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This script is a part of the Ucf package, and is\n\nCopyright (c) 2006 Manoj Srivastava <srivasta\\@debian.org>\n\nThis program is free software; you can redistribute it and / or modify it under the terms  of\nthe GNU General Public License as published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis  program  is  distributed  in the hope that it will be useful, but WITHOUT ANY WARRANTY;\nwithout even the implied warranty of MERCHANTABILITY or FITNESS  FOR  A  PARTICULAR  PURPOSE.\nSee the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program; if\nnot,  write  to  the  Free  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA\n02111-1307  USA\n\nperl v5.8.8                                  2006-04-16                                      UCFQ(1)",
            "subsections": []
        }
    },
    "summary": "ucfq - query the ucf database",
    "flags": [
        {
            "flag": "-w",
            "long": "--with-colons",
            "arg": null,
            "description": "Normally, the script presents the information in a human readable tabular format, but that may be harder for a machine to parse. With this option, the output is a compact, colon separated line, with no dividers, headers, or footer. --state-dr dir Set the state directory to \"/path/to/dir\" instead of the default \"/var/lib/ucf\". Used mostly for testing."
        }
    ],
    "examples": [],
    "see_also": []
}