Files

945 lines
23 KiB
JSON

{
"_format": "scaffold_schema",
"_coverage": "partial: [--help, --version skipped; many niche POSIX/GNU extensions omitted; -printf, -fprintf omitted (too complex for GUI)]",
"tool": "find",
"binary": "find",
"description": "Search for files in a directory hierarchy. Evaluates expressions for each file found.",
"elevated": "optional",
"subcommands": null,
"arguments": [
{
"name": "Name",
"flag": "-name",
"short_flag": null,
"type": "string",
"description": "Match filename against shell pattern (case-sensitive).",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"*.txt",
"*.log",
"*.py",
"Makefile",
"README*"
],
"display_group": "Name",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Iname",
"flag": "-iname",
"short_flag": null,
"type": "string",
"description": "Like -name, but case-insensitive.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"*.jpg",
"*.pdf",
"readme*"
],
"display_group": "Name",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Path",
"flag": "-path",
"short_flag": null,
"type": "string",
"description": "Match full path against shell pattern.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"*/src/*.py",
"*/test/*",
"*/.git/*"
],
"display_group": "Name",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ipath",
"flag": "-ipath",
"short_flag": null,
"type": "string",
"description": "Like -path, but case-insensitive.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Name",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Regex",
"flag": "-regex",
"short_flag": null,
"type": "string",
"description": "Match full path against regular expression.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
".*\\.py$",
".*\\.(jpg|png|gif)$"
],
"display_group": "Name",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Iregex",
"flag": "-iregex",
"short_flag": null,
"type": "string",
"description": "Like -regex, but case-insensitive.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Name",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Type",
"flag": "-type",
"short_flag": null,
"type": "enum",
"description": "File type to match.",
"required": false,
"default": null,
"choices": [
"f",
"d",
"l",
"b",
"c",
"p",
"s"
],
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Type",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Max Depth",
"flag": "-maxdepth",
"short_flag": null,
"type": "integer",
"description": "Descend at most N directory levels.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Depth",
"min": 0,
"max": 999,
"deprecated": null,
"dangerous": false
},
{
"name": "Min Depth",
"flag": "-mindepth",
"short_flag": null,
"type": "integer",
"description": "Do not apply tests or actions at levels less than N.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Depth",
"min": 0,
"max": 999,
"deprecated": null,
"dangerous": false
},
{
"name": "Size",
"flag": "-size",
"short_flag": null,
"type": "string",
"description": "Match files by size. Suffixes: c(bytes), k(KB), M(MB), G(GB). Prefix +/- for greater/less than.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"+100M",
"-1k",
"+1G",
"0",
"+10M"
],
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Empty",
"flag": "-empty",
"short_flag": null,
"type": "boolean",
"description": "Match empty files and directories.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Modification Time",
"flag": "-mtime",
"short_flag": null,
"type": "string",
"description": "Match by modification time in days. +N = more than N days ago, -N = less than N days ago.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"+30",
"-7",
"0",
"+365",
"-1"
],
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Access Time",
"flag": "-atime",
"short_flag": null,
"type": "string",
"description": "Match by access time in days.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"+30",
"-7"
],
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Change Time",
"flag": "-ctime",
"short_flag": null,
"type": "string",
"description": "Match by inode change time in days.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"+30",
"-7"
],
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Modification Minutes",
"flag": "-mmin",
"short_flag": null,
"type": "string",
"description": "Match by modification time in minutes.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"-60",
"+1440",
"-5"
],
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Access Minutes",
"flag": "-amin",
"short_flag": null,
"type": "string",
"description": "Match by access time in minutes.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"-60"
],
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Newer",
"flag": "-newer",
"short_flag": null,
"type": "file",
"description": "Match files newer than the reference FILE.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Size & Time",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "User",
"flag": "-user",
"short_flag": null,
"type": "string",
"description": "Match files owned by user (name or UID).",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"root",
"www-data",
"1000"
],
"display_group": "Ownership",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Group",
"flag": "-group",
"short_flag": null,
"type": "string",
"description": "Match files owned by group (name or GID).",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"root",
"staff",
"1000"
],
"display_group": "Ownership",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "No User",
"flag": "-nouser",
"short_flag": null,
"type": "boolean",
"description": "Match files not owned by any known user.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Ownership",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "No Group",
"flag": "-nogroup",
"short_flag": null,
"type": "boolean",
"description": "Match files not owned by any known group.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Ownership",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Permissions",
"flag": "-perm",
"short_flag": null,
"type": "string",
"description": "Match files by permission. Prefix - for 'at least', / for 'any of'.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"644",
"-644",
"/u+x",
"755",
"-o+w"
],
"display_group": "Permissions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Readable",
"flag": "-readable",
"short_flag": null,
"type": "boolean",
"description": "Match files readable by the current user.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Permissions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Writable",
"flag": "-writable",
"short_flag": null,
"type": "boolean",
"description": "Match files writable by the current user.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Permissions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Executable",
"flag": "-executable",
"short_flag": null,
"type": "boolean",
"description": "Match files executable by the current user.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Permissions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Print",
"flag": "-print",
"short_flag": null,
"type": "boolean",
"description": "Print the full file name followed by a newline (default action).",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Print0",
"flag": "-print0",
"short_flag": null,
"type": "boolean",
"description": "Print the full file name followed by a null character. Safe for filenames with spaces.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "List",
"flag": "-ls",
"short_flag": null,
"type": "boolean",
"description": "List current file in ls -dils format.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Delete",
"flag": "-delete",
"short_flag": null,
"type": "boolean",
"description": "Delete matched files and empty directories. Implies -depth. USE WITH CAUTION.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": true
},
{
"name": "Exec",
"flag": "-exec",
"short_flag": null,
"type": "string",
"description": "Execute command on each matched file. Use {} for filename, end with \\;",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"chmod 644 {} \\;",
"rm -f {} \\;",
"grep -l pattern {} \\;",
"mv {} /tmp/ \\;"
],
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Exec Dir",
"flag": "-execdir",
"short_flag": null,
"type": "string",
"description": "Like -exec but run command from the directory containing the matched file.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"rm {} \\;"
],
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "OK",
"flag": "-ok",
"short_flag": null,
"type": "string",
"description": "Like -exec but ask for confirmation before each command.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Actions",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Not",
"flag": "-not",
"short_flag": null,
"type": "boolean",
"description": "Negate the next expression. Can also use '!'.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Logic",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Follow Symlinks",
"flag": "-L",
"short_flag": null,
"type": "boolean",
"description": "Follow symbolic links. By default find does not follow symlinks.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Behavior",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "No Follow",
"flag": "-P",
"short_flag": null,
"type": "boolean",
"description": "Never follow symbolic links (default).",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Behavior",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Mount",
"flag": "-mount",
"short_flag": null,
"type": "boolean",
"description": "Don't descend into directories on other filesystems. Same as -xdev.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Behavior",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Depth",
"flag": "-depth",
"short_flag": null,
"type": "boolean",
"description": "Process directory contents before the directory itself.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Behavior",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Daystart",
"flag": "-daystart",
"short_flag": null,
"type": "boolean",
"description": "Measure times from the beginning of today rather than 24 hours ago.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Behavior",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Starting Point",
"flag": "PATH",
"short_flag": null,
"type": "directory",
"description": "Directory to start searching from. Defaults to current directory if omitted.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
".",
"/home",
"/var/log",
"/etc",
"~/Documents"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}