LS(1)

๐Ÿ“ฆ version 0.12.0, in arch rolling

๐Ÿ’… LS(1) โ€” like, the listing era ๐Ÿ’…

okay bestie so this is a page from the General Commands Manual and we're talking about ls, the absolute icon of "what's in this folder" โœจ


๐ŸŒธ NAME ๐ŸŒธ

ls โ€” lists directory contents. And by default it's a little shy: it ignores files and directories starting with a . ๐Ÿ™ˆ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

ls [OPTION]... [FILE]...

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

Lists directory contents. Again for the people in the back: it ignores files and directories starting with a . by default. That's the whole vibe, no cap ๐Ÿ’…


โœจ OPTIONS โœจ

okay this is the long part, hydrate first ๐Ÿ“

  • --help โ€” prints help information. your little "what do" button ๐Ÿซถ
  • --format โ€” sets the display format.
  • -C โ€” shows the files in columns. classic, iconic, columns-coded ๐ŸŒˆ
  • -l, --long โ€” shows the detailed info. the receipt version of a directory ๐Ÿ˜Œ
  • -x โ€” lists entries in rows instead of in columns. same info, rotated vibe ๐ŸŒ€
  • -T, --tabsize <COLS> โ€” assumes tab stops at every COLS instead of 8.
  • -m โ€” lists entries separated by commas. cute little list energy ๐ŸŽ€
  • --zero โ€” lists entries separated by ASCII NUL characters. for the machine besties ๐Ÿ’€
  • -D, --dired โ€” generates output designed for Emacs' dired (Directory Editor) mode. yes it's giving editor loyalty ๐Ÿงš
  • --hyperlink[=<WHEN>] โ€” hyperlink file names WHEN. default: never. possible values, slay:
    • always
    • auto
    • never
  • -1 โ€” lists one file per line. minimalist queen ๐Ÿ‘‘
  • -o โ€” long format without group information. literally identical to --format=long with --no-group.
  • -g โ€” long format without owner information.
  • -n, --numeric-uid-gid โ€” -l but with numeric UIDs and GIDs. numbers only, no names ๐Ÿงฎ
  • --quoting-style โ€” sets the quoting style. possible values, prepare yourself:
    • literal
    • locale
    • shell
    • shell-escape
    • shell-always
    • shell-escape-always
    • clocale
    • c
    • escape
  • -N, --literal โ€” uses literal quoting style. equivalent to --quoting-style=literal.
  • -b, --escape โ€” uses escape quoting style. equivalent to --quoting-style=escape.
  • -Q, --quote-name โ€” uses C quoting style. equivalent to --quoting-style=c.
  • -q, --hide-control-chars โ€” replaces control characters with '?' if they are not escaped.
  • --show-control-chars โ€” shows control characters 'as is' if they are not escaped.
  • --time <field> โ€” shows time in <field>: access time (-u): atime, access, use; change time (-t): ctime, status; modification time: mtime, modification; birth time: birth, creation. pick your fighter โฐ
  • -c โ€” if the long listing format (e.g., -l, -o) is being used, prints the status change time (the 'ctime' in the inode) instead of the modification time. when explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sorts according to the status change time. she contains multitudes ๐Ÿฆ‹
  • -u โ€” if the long listing format (e.g., -l, -o) is being used, prints the status access time instead of the modification time. when explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sorts according to the access time. same energy, different timestamp โญ
  • --hide <PATTERN> โ€” do not list implied entries matching shell PATTERN (this gets overridden by -a or -A). ๐Ÿ™ˆ
  • -I, --ignore <PATTERN> โ€” do not list implied entries matching shell PATTERN.
  • -B, --ignore-backups โ€” ignores entries which end with ~. bye backup files ๐Ÿ‘‹
  • --sort <field> โ€” sorts by <field>: name, none (-U), time (-t), size (-S), extension (-X) or width. possible values:
    • name
    • none
    • time
    • size
    • version
    • extension
    • width
  • -S โ€” sorts by file size, largest first. big chonk energy ๐Ÿ”ฅ
  • -t โ€” sorts by modification time (the 'mtime' in the inode), newest first.
  • -v โ€” natural sort of (version) numbers in the filenames. so file2 comes before file10, as it should ๐Ÿ’…
  • -X โ€” sorts alphabetically by entry extension.
  • -U โ€” does not sort; lists 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. chaos mode but make it efficient โšก
  • -L, --dereference โ€” when showing file information for a symbolic link, shows information for the file the link references rather than the link itself. following the link into the void ๐ŸŒ€
  • --dereference-command-line-symlink-to-dir โ€” do not follow symlinks except when they link to directories and are given as command line arguments. extremely specific, we respect it ๐ŸŽ€
  • -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 โ€” shows author in long format. on the supported platforms, the author always matches the file owner. they're the same person bestie ๐Ÿ˜ญ
  • -a, --all โ€” do not ignore hidden files (files with names that start with .). the dotfiles are FREE ๐ŸŒธ
  • -A, --almost-all โ€” in a directory, do not ignore all file names that start with ., only ignore . and ... like -a but with boundaries ๐Ÿ’…
  • -f โ€” lists all files in directory order, unsorted. equivalent to -aU. disables --color unless explicitly specified. โš ๏ธ careful, that's a side effect
  • -d, --directory โ€” only lists 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-dir is specified.
  • -h, --human-readable โ€” prints human readable file sizes (e.g. 1K 234M 56G). for brains that don't do raw bytes ๐Ÿง โœจ
  • -k, --kibibytes โ€” defaults to 1024-byte blocks for file system usage; used only with -s and per directory totals.
  • --si โ€” prints human readable file sizes using powers of 1000 instead of 1024. metric bestie ๐Ÿงš
  • --block-size <BLOCK_SIZE> โ€” scales sizes by BLOCK_SIZE when printing them.
  • -i, --inode โ€” prints the index number of each file. inode reveal ๐Ÿ‘€
  • -r, --reverse โ€” reverses whatever the sorting method is, e.g., lists files in reverse alphabetical order, youngest first, smallest first, or whatever. mirror mode ๐Ÿชž
  • -R, --recursive โ€” lists the contents of all directories recursively. going deeper ๐ŸŒ€
  • -w, --width <COLS> โ€” assumes that the terminal is COLS columns wide.
  • -s, --size โ€” prints the allocated size of each file, in blocks.
  • --color โ€” color output based on file type. possible values:
    • always
    • auto
    • never
  • --indicator-style โ€” appends an indicator with style WORD to entry names: none (default), slash (-p), file-type (--file-type), classify (-F). possible values:
    • none
    • slash
    • file-type
    • classify
  • -F, --classify[=<when>] โ€” appends a character to each file name indicating the file type. also, for regular files that are executable, appends '*'. the file type indicators are '/' for directories, '@' for symbolic links, '|' for FIFOs, '=' for sockets, '>' for doors, and nothing for regular files. when may 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 --classify and no when is 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-dir options are specified. โš ๏ธ noted, bestie

possible values:

  • always
  • auto
  • never
  • --file-type โ€” same as --classify, but does not append '*'.
  • -p โ€” appends / indicator to directories. lil slash for the folders ๐Ÿ’…
  • --time-style <TIME_STYLE> โ€” time/date format with -l; see TIME_STYLE below.
  • --full-time โ€” like -l --time-style=full-iso. the whole timestamp, nothing withheld โฐ
  • -Z, --context โ€” prints any security context of each file. security girlie ๐Ÿ”’
  • --group-directories-first โ€” groups directories before files; can be augmented with a --sort option, but any use of --sort=none (-U) disables grouping. โš ๏ธ pick a lane
  • -V, --version โ€” prints version.

๐ŸŒŸ 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. env var icon behavior, honestly ๐Ÿซถ


๐Ÿ‘‘ VERSION ๐Ÿ‘‘

this whole page is serving v(uutils coreutils) 0.12.0 realness โ€” dated 2026-09-17, and it was in the General Commands Manual section all along ๐Ÿ’–

that's the page bestie, go list some directories, and remember: dotfiles stay hidden unless you say -a โœจ๐ŸŽ€๐Ÿ’…

๐Ÿ“ฆ where this page comes from