id = "df" name = "df" description = "Report free disk space on mounted file systems." executables = ["df"] platforms = ["macos", "linux"] [commands] format = 1 label = "Show disk usage" description = "Free space per file system or for the file containing each path. Options follow the BSD/macOS df; the type filter is left out because its meaning differs between systems." quality = "ai-draft" base = "fig:df" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/df.ts" license = "MIT" [[commands.field]] id = "paths" label = "Files or file systems" type = "path" path = { kind = "any", role = "input" } position = 0 multiple = true sources = ["fig"] [[commands.field]] id = "human" label = "Human-readable sizes (powers of 1024)" type = "boolean" option = ["-h"] sources = ["fig"] [[commands.field]] id = "inodes" label = "Include inode counts" type = "boolean" option = ["-i"] sources = ["fig"] [[commands.field]] id = "local" label = "Local file systems only" type = "boolean" option = ["-l"] sources = ["fig"] [[commands.field]] id = "all" label = "Show all mount points" type = "boolean" option = ["-a"] sources = ["fig"] [[commands.field]] id = "kilobytes" label = "1K blocks" type = "boolean" option = ["-k"] sources = ["fig"] [[commands.task]] id = "overview" label = "Human-readable overview" set = { human = [true] } fields = ["paths", "human", "local"] required = [] [[commands.task]] id = "inodes" label = "Inode usage" set = { inodes = [true], human = [true] } fields = ["paths", "inodes", "human"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["paths", "human", "local", "inodes"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["all", "kilobytes"]