1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH DIR "1" "March 2012" "GNU coreutils 8.16" "User Commands"
4 dir \- list directory contents
7 [\fIOPTION\fR]... [\fIFILE\fR]...
9 .\" Add any additional description here
11 List information about the FILEs (the current directory by default).
12 Sort entries alphabetically if none of \fB\-cftuvSUX\fR nor \fB\-\-sort\fR is specified.
14 Mandatory arguments to long options are mandatory for short options too.
16 \fB\-a\fR, \fB\-\-all\fR
17 do not ignore entries starting with .
19 \fB\-A\fR, \fB\-\-almost\-all\fR
20 do not list implied . and ..
23 with \fB\-l\fR, print the author of each file
25 \fB\-b\fR, \fB\-\-escape\fR
26 print C\-style escapes for nongraphic characters
28 \fB\-\-block\-size\fR=\fISIZE\fR
29 scale sizes by SIZE before printing them. E.g.,
30 \&'\-\-block\-size=M' prints sizes in units of
31 1,048,576 bytes. See SIZE format below.
33 \fB\-B\fR, \fB\-\-ignore\-backups\fR
34 do not list implied entries ending with ~
37 with \fB\-lt\fR: sort by, and show, ctime (time of last
38 modification of file status information)
39 with \fB\-l\fR: show ctime and sort by name
40 otherwise: sort by ctime, newest first
43 list entries by columns
45 \fB\-\-color\fR[=\fIWHEN\fR]
46 colorize the output. WHEN defaults to 'always'
47 or can be 'never' or 'auto'. More info below
49 \fB\-d\fR, \fB\-\-directory\fR
50 list directory entries instead of contents,
51 and do not dereference symbolic links
53 \fB\-D\fR, \fB\-\-dired\fR
54 generate output designed for Emacs' dired mode
57 do not sort, enable \fB\-aU\fR, disable \fB\-ls\fR \fB\-\-color\fR
59 \fB\-F\fR, \fB\-\-classify\fR
60 append indicator (one of */=>@|) to entries
63 likewise, except do not append '*'
65 \fB\-\-format\fR=\fIWORD\fR
66 across \fB\-x\fR, commas \fB\-m\fR, horizontal \fB\-x\fR, long \fB\-l\fR,
67 single\-column \fB\-1\fR, verbose \fB\-l\fR, vertical \fB\-C\fR
70 like \fB\-l\fR \fB\-\-time\-style\fR=\fIfull\-iso\fR
73 like \fB\-l\fR, but do not list owner
75 \fB\-\-group\-directories\-first\fR
76 group directories before files.
78 augment with a \fB\-\-sort\fR option, but any
79 use of \fB\-\-sort\fR=\fInone\fR (\fB\-U\fR) disables grouping
81 \fB\-G\fR, \fB\-\-no\-group\fR
82 in a long listing, don't print group names
84 \fB\-h\fR, \fB\-\-human\-readable\fR
85 with \fB\-l\fR, print sizes in human readable format
89 likewise, but use powers of 1000 not 1024
91 \fB\-H\fR, \fB\-\-dereference\-command\-line\fR
92 follow symbolic links listed on the command line
94 \fB\-\-dereference\-command\-line\-symlink\-to\-dir\fR
95 follow each command line symbolic link
96 that points to a directory
98 \fB\-\-hide\fR=\fIPATTERN\fR
99 do not list implied entries matching shell PATTERN
100 (overridden by \fB\-a\fR or \fB\-A\fR)
102 \fB\-\-indicator\-style\fR=\fIWORD\fR
103 append indicator with style WORD to entry names:
104 none (default), slash (\fB\-p\fR),
105 file\-type (\fB\-\-file\-type\fR), classify (\fB\-F\fR)
107 \fB\-i\fR, \fB\-\-inode\fR
108 print the index number of each file
110 \fB\-I\fR, \fB\-\-ignore\fR=\fIPATTERN\fR
111 do not list implied entries matching shell PATTERN
113 \fB\-k\fR, \fB\-\-kibibytes\fR
114 use 1024\-byte blocks
117 use a long listing format
119 \fB\-L\fR, \fB\-\-dereference\fR
120 when showing file information for a symbolic
121 link, show information for the file the link
122 references rather than for the link itself
125 fill width with a comma separated list of entries
127 \fB\-n\fR, \fB\-\-numeric\-uid\-gid\fR
128 like \fB\-l\fR, but list numeric user and group IDs
130 \fB\-N\fR, \fB\-\-literal\fR
131 print raw entry names (don't treat e.g. control
132 characters specially)
135 like \fB\-l\fR, but do not list group information
137 \fB\-p\fR, \fB\-\-indicator\-style\fR=\fIslash\fR
138 append / indicator to directories
140 \fB\-q\fR, \fB\-\-hide\-control\-chars\fR
141 print ? instead of non graphic characters
143 \fB\-\-show\-control\-chars\fR
144 show non graphic characters as\-is (default
145 unless program is 'ls' and output is a terminal)
147 \fB\-Q\fR, \fB\-\-quote\-name\fR
148 enclose entry names in double quotes
150 \fB\-\-quoting\-style\fR=\fIWORD\fR
151 use quoting style WORD for entry names:
152 literal, locale, shell, shell\-always, c, escape
154 \fB\-r\fR, \fB\-\-reverse\fR
155 reverse order while sorting
157 \fB\-R\fR, \fB\-\-recursive\fR
158 list subdirectories recursively
160 \fB\-s\fR, \fB\-\-size\fR
161 print the allocated size of each file, in blocks
166 \fB\-\-sort\fR=\fIWORD\fR
167 sort by WORD instead of name: none \fB\-U\fR,
168 extension \fB\-X\fR, size \fB\-S\fR, time \fB\-t\fR, version \fB\-v\fR
170 \fB\-\-time\fR=\fIWORD\fR
171 with \fB\-l\fR, show time as WORD instead of modification
172 time: atime \fB\-u\fR, access \fB\-u\fR, use \fB\-u\fR, ctime \fB\-c\fR,
173 or status \fB\-c\fR; use specified time as sort key
174 if \fB\-\-sort\fR=\fItime\fR
176 \fB\-\-time\-style\fR=\fISTYLE\fR
177 with \fB\-l\fR, show times using style STYLE:
178 full\-iso, long\-iso, iso, locale, +FORMAT.
179 FORMAT is interpreted like 'date'; if FORMAT is
180 FORMAT1<newline>FORMAT2, FORMAT1 applies to
181 non\-recent files and FORMAT2 to recent files;
182 if STYLE is prefixed with 'posix\-', STYLE
183 takes effect only outside the POSIX locale
186 sort by modification time, newest first
188 \fB\-T\fR, \fB\-\-tabsize\fR=\fICOLS\fR
189 assume tab stops at each COLS instead of 8
192 with \fB\-lt\fR: sort by, and show, access time
193 with \fB\-l\fR: show access time and sort by name
194 otherwise: sort by access time
197 do not sort; list entries in directory order
200 natural sort of (version) numbers within text
202 \fB\-w\fR, \fB\-\-width\fR=\fICOLS\fR
203 assume screen width instead of current value
206 list entries by lines instead of by columns
209 sort alphabetically by entry extension
211 \fB\-Z\fR, \fB\-\-context\fR
212 print any SELinux security context of each file
215 list one file per line
218 display this help and exit
221 output version information and exit
223 SIZE is an integer and optional unit (example: 10M is 10*1024*1024). Units
224 are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (powers of 1000).
226 Using color to distinguish file types is disabled both by default and
227 with \fB\-\-color\fR=\fInever\fR. With \fB\-\-color\fR=\fIauto\fR, ls emits color codes only when
228 standard output is connected to a terminal. The LS_COLORS environment
229 variable can change the settings. Use the dircolors command to set it.
236 if minor problems (e.g., cannot access subdirectory),
239 if serious trouble (e.g., cannot access command\-line argument).
241 Written by Richard M. Stallman and David MacKenzie.
243 Report dir bugs to bug\-coreutils@gnu.org
245 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
247 General help using GNU software: <http://www.gnu.org/gethelp/>
249 Report dir translation bugs to <http://translationproject.org/team/>
251 Copyright \(co 2012 Free Software Foundation, Inc.
252 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
254 This is free software: you are free to change and redistribute it.
255 There is NO WARRANTY, to the extent permitted by law.
257 The full documentation for
259 is maintained as a Texinfo manual. If the
263 programs are properly installed at your site, the command
265 .B info coreutils \(aqdir invocation\(aq
267 should give you access to the complete manual.