dir(1)
π dir(1) β the glow-up edition π
okay bestie, welcome to the General Commands Manual entry for dir β yeah, the whole page, and yes we're doing it with β¨personalityβ¨. buckle up. π
πΈ NAME πΈ
dir β List directory contents. Ignore files and directories starting with a . by default
π¦ SYNOPSIS π¦
dir [--help] [--format] [-C ] [-l|--long] [-x ] [-T|--tabsize] [-m ]
[--zero] [-D|--dired] [--hyperlink] [-1 ] [-o ] [-g ]
[-n|--numeric-uid-gid] [--quoting-style] [-N|--literal] [-b|--escape]
[-Q|--quote-name] [-q|--hide-control-chars] [--show-control-chars]
[--time] [-c ] [-u ] [--hide] [-I|--ignore] [-B|--ignore-backups]
[--sort] [-S ] [-t ] [-v ] [-X ] [-U ] [-L|--dereference]
[--dereference-command-line-symlink-to-dir]
[-H|--dereference-command-line] [-G|--no-group] [--author] [-a|--all]
[-A|--almost-all] [-f ] [-d|--directory] [-h|--human-readable]
[-k|--kibibytes] [--si] [--block-size] [-i|--inode] [-r|--reverse]
[-R|--recursive] [-w|--width] [-s|--size] [--color] [--indicator-style]
[-F|--classify] [--file-type] [-p ] [--time-style] [--full-time]
[-Z|--context] [--group-directories-first] [-V|--version] [paths]
like. that's a lot of brackets, i know. it's giving options menu at a restaurant with 60 pages and honestly? we're ordering everything. π
π DESCRIPTION π
List directory contents. Ignore files and directories starting with a . by default
that's it. that's the vibe. it lists stuff, and by default it's lowkey pretending your dotfiles don't exist (no cap, hidden files are just shy β¨).
π OPTIONS π
here we go bestie, every single one, no skipping, i would never π«Ά
--helpβ Print help information.--formatβ Set the display format.-Cβ Display the files in columns.-l,--longβ Display detailed information.-xβ List entries in rows instead of in columns.-T,--tabsize <COLS>β Assume tab stops at each COLS instead of 8. May also be specified with theTABSIZEenvironment variable.-mβ List entries separated by commas.--zeroβ List entries separated by ASCII NUL characters.-D,--diredβ generate output designed for Emacs' dired (Directory Editor) mode--hyperlink[=<WHEN>]β hyperlink file names WHEN. [default: never]- Possible values:
alwaysautonever
- Possible values:
-1β List one file per line.-oβ Long format without group information. Identical to--format=longwith--no-group.-gβ Long format without owner information.-n,--numeric-uid-gidβ-lwith numeric UIDs and GIDs.--quoting-styleβ Set quoting style.- Possible values:
literallocaleshellshell-escapeshell-alwaysshell-escape-alwaysclocalecescape
- Possible values:
-N,--literalβ Use literal quoting style. Equivalent to--quoting-style=literal-b,--escapeβ Use escape quoting style. Equivalent to--quoting-style=escape-Q,--quote-nameβ Use C quoting style. Equivalent to--quoting-style=c-q,--hide-control-charsβ Replace control characters with'?'if they are not escaped.--show-control-charsβ Show control characters 'as is' if they are not escaped.--time=<field>β Show time in<field>: access time (-u):atime,access,use; change time (-t):ctime,status. modification time:mtime,modification. birth time:birth,creation;-cβ If the long listing format (e.g.,-l,-o) is being used, print the status change time (the'ctime'in the inode) instead of the modification time. When explicitly sorting by time (--sort=timeor-t) or when not using a long listing format, sort according to the status change time.-uβ If the long listing format (e.g.,-l,-o) is being used, print the status access time instead of the modification time. When explicitly sorting by time (--sort=timeor-t) or when not using a long listing format, sort according to the access time.--hide <PATTERN>β do not list implied entries matching shell PATTERN (overridden by-aor-A)-I,--ignore <PATTERN>β do not list implied entries matching shell PATTERN-B,--ignore-backupsβ Ignore entries which end with~.--sort=<field>β Sort by<field>:name,none(-U),time(-t),size(-S),extension(-X) orwidth- Possible values:
namenonetimesizeversionextensionwidth
- Possible values:
-Sβ Sort by file size, largest first.-tβ Sort by modification time (the'mtime'in the inode), newest first.-vβ Natural sort of (version) numbers in the filenames.-Xβ Sort alphabetically by entry extension.-Uβ Do not sort; list the files in whatever order they are stored in the directory. This is especially useful when listing very large directories, since not doing any sorting can be noticeably faster.-L,--dereferenceβ When showing file information for a symbolic link, show information for the file the link references rather than the link itself.--dereference-command-line-symlink-to-dirβ Do not follow symlinks except when they link to directories and are given as command line arguments.-H,--dereference-command-lineβ Do not follow symlinks except when given as command line arguments.-G,--no-groupβ Do not show group in long format.--authorβ Show author in long format. On the supported platforms, the author always matches the file owner.-a,--allβ Do not ignore hidden files (files with names that start with.).-A,--almost-allβ In a directory, do not ignore all file names that start with., only ignore.and...-fβ List all files in directory order, unsorted. Equivalent to-aU. Disables--colorunless explicitly specified.-d,--directoryβ Only list the names of directories, rather than listing directory contents. This will not follow symbolic links unless one of--dereference-command-line (-H),--dereference (-L), or--dereference-command-line-symlink-to-diris specified.-h,--human-readableβ Print human readable file sizes (e.g.1K234M56G).-k,--kibibytesβ default to 1024-byte blocks for file system usage; used only with-sand per directory totals--siβ Print human readable file sizes using powers of 1000 instead of 1024.--block-size=<BLOCK_SIZE>β scale sizes by BLOCK_SIZE when printing them-i,--inodeβ print the index number of each file-r,--reverseβ Reverse whatever the sorting method is e.g., list files in reverse alphabetical order, youngest first, smallest first, or whatever.-R,--recursiveβ List the contents of all directories recursively.-w,--width <COLS>β Assume that the terminal is COLS columns wide.-s,--sizeβ print the allocated size of each file, in blocks--colorβ Color output based on file type.- Possible values:
alwaysautonever
- Possible values:
--indicator-styleβ Append indicator with style WORD to entry names:none(default),slash(-p),file-type(--file-type),classify(-F)- Possible values:
noneslashfile-typeclassify
- Possible values:
-F,--classify[=<when>]β Append a character to each file name indicating the file type. Also, for regular files that are executable, append'*'. The file type indicators are'/'for directories,'@'for symbolic links,'|'for FIFOs,'='for sockets,'>'for doors, and nothing for regular files.whenmay be omitted, or one of:noneβ Do not classify. This is the default.autoβ Only classify if standard output is a terminal.alwaysβ Always classify. Specifying--classifyand nowhenis equivalent to--classify=always. This will not follow symbolic links listed on the command line unless the--dereference-command-line (-H),--dereference (-L), or--dereference-command-line-symlink-to-diroptions are specified.
- Possible values:
alwaysautonever
--file-typeβ Same as--classify, but do not append'*'-pβ Append/indicator to directories.--time-style <TIME_STYLE>β time/date format with-l; see TIME_STYLE below. May also be specified with theTIME_STYLEenvironment variable.--full-timeβ like-l --time-style=full-iso-Z,--contextβ print any security context of each file--group-directories-firstβ group directories before files; can be augmented with a--sortoption, but any use of--sort=none (-U)disables grouping-V,--versionβ Print version[paths]β the paths you want listed, bestie π«Ά
β¨ EXTRA β¨
The TIME_STYLE argument can be full-iso, long-iso, iso, locale or +FORMAT. FORMAT is interpreted like in date. Also the TIME_STYLE environment variable sets the default style to use.
π VERSION π
v(uutils coreutils) 0.7.0
ok that's literally the whole page, every flag, every default, every environment variable, nothing skipped, we ate and left no crumbs π
so yeah β this was dir(1) from the General Commands Manual, and the version tag on it is dir (uutils coreutils) 0.7.0. slay, go list some directories, ily, bye bestie πβ¨π¦π
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms