LS(1)
๐ 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 of8.-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:alwaysautonever
-1โ lists one file per line. minimalist queen ๐-oโ long format without group information. literally identical to--format=longwith--no-group.-gโ long format without owner information.-n,--numeric-uid-gidโ-lbut with numeric UIDs and GIDs. numbers only, no names ๐งฎ--quoting-styleโ sets the quoting style. possible values, prepare yourself:literallocaleshellshell-escapeshell-alwaysshell-escape-alwaysclocalecescape
-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=timeor-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=timeor-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-aor-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) orwidth. possible values:namenonetimesizeversionextensionwidth
-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. sofile2comes beforefile10, 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-abut with boundaries ๐-fโ lists all files in directory order, unsorted. equivalent to-aU. disables--colorunless 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-diris specified.-h,--human-readableโ prints human readable file sizes (e.g.1K234M56G). for brains that don't do raw bytes ๐ง โจ-k,--kibibytesโ defaults to 1024-byte blocks for file system usage; used only with-sand per directory totals.--siโ prints human readable file sizes using powers of1000instead of1024. 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:alwaysautonever
--indicator-styleโ appends an indicator with style WORD to entry names:none(default),slash(-p),file-type(--file-type),classify(-F). possible values:noneslashfile-typeclassify
-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--classifyand 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-diroptions are specified. โ ๏ธ noted, bestie
possible values:
alwaysautonever
--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--sortoption, 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
- arch rolling: uutils-coreutils 0.12.0-1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms