]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - bin/ls/ls.1
Merge branch 'releng/11.3' into releng-CDN/11.3
[FreeBSD/FreeBSD.git] / bin / ls / ls.1
1 .\"-
2 .\" Copyright (c) 1980, 1990, 1991, 1993, 1994
3 .\"     The Regents of the University of California.  All rights reserved.
4 .\"
5 .\" This code is derived from software contributed to Berkeley by
6 .\" the Institute of Electrical and Electronics Engineers, Inc.
7 .\"
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
10 .\" are met:
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\"    notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\"    notice, this list of conditions and the following disclaimer in the
15 .\"    documentation and/or other materials provided with the distribution.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)ls.1        8.7 (Berkeley) 7/29/94
33 .\" $FreeBSD$
34 .\"
35 .Dd December 1, 2015
36 .Dt LS 1
37 .Os
38 .Sh NAME
39 .Nm ls
40 .Nd list directory contents
41 .Sh SYNOPSIS
42 .Nm
43 .Op Fl -libxo
44 .Op Fl ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,
45 .Op Fl D Ar format
46 .Op Ar
47 .Sh DESCRIPTION
48 For each operand that names a
49 .Ar file
50 of a type other than
51 directory,
52 .Nm
53 displays its name as well as any requested,
54 associated information.
55 For each operand that names a
56 .Ar file
57 of type directory,
58 .Nm
59 displays the names of files contained
60 within that directory, as well as any requested, associated
61 information.
62 .Pp
63 If no operands are given, the contents of the current
64 directory are displayed.
65 If more than one operand is given,
66 non-directory operands are displayed first; directory
67 and non-directory operands are sorted separately and in
68 lexicographical order.
69 .Pp
70 The following options are available:
71 .Bl -tag -width indent
72 .It Fl -libxo
73 Generate output via
74 .Xr libxo 3
75 in a selection of different human and machine readable formats.
76 See
77 .Xr xo_parse_args 3
78 for details on command line arguments.
79 .It Fl A
80 Include directory entries whose names begin with a
81 dot
82 .Pq Sq Pa \&.
83 except for
84 .Pa \&.
85 and
86 .Pa .. .
87 Automatically set for the super-user unless
88 .Fl I
89 is specified.
90 .It Fl B
91 Force printing of non-printable characters (as defined by
92 .Xr ctype 3
93 and current locale settings) in file names as
94 .Li \e Ns Va xxx ,
95 where
96 .Va xxx
97 is the numeric value of the character in octal.
98 This option is not defined in
99 .St -p1003.1-2001 .
100 .It Fl C
101 Force multi-column output; this is the default when output is to a terminal.
102 .It Fl D Ar format
103 When printing in the long
104 .Pq Fl l
105 format, use
106 .Ar format
107 to format the date and time output.
108 The argument
109 .Ar format
110 is a string used by
111 .Xr strftime 3 .
112 Depending on the choice of format string, this may result in a
113 different number of columns in the output.
114 This option overrides the
115 .Fl T
116 option.
117 This option is not defined in
118 .St -p1003.1-2001 .
119 .It Fl F
120 Display a slash
121 .Pq Ql /
122 immediately after each pathname that is a directory,
123 an asterisk
124 .Pq Ql *
125 after each that is executable,
126 an at sign
127 .Pq Ql @
128 after each symbolic link,
129 an equals sign
130 .Pq Ql =
131 after each socket,
132 a percent sign
133 .Pq Ql %
134 after each whiteout,
135 and a vertical bar
136 .Pq Ql \&|
137 after each that is a
138 .Tn FIFO .
139 .It Fl G
140 Enable colorized output.
141 This option is equivalent to defining
142 .Ev CLICOLOR
143 in the environment.
144 (See below.)
145 This functionality can be compiled out by removing the definition of
146 .Ev COLORLS .
147 This option is not defined in
148 .St -p1003.1-2001 .
149 .It Fl H
150 Symbolic links on the command line are followed.
151 This option is assumed if
152 none of the
153 .Fl F , d ,
154 or
155 .Fl l
156 options are specified.
157 .It Fl I
158 Prevent
159 .Fl A
160 from being automatically set for the super-user.
161 This option is not defined in
162 .St -p1003.1-2001 .
163 .It Fl L
164 If argument is a symbolic link, list the file or directory the link references
165 rather than the link itself.
166 This option cancels the
167 .Fl P
168 option.
169 .It Fl P
170 If argument is a symbolic link, list the link itself rather than the
171 object the link references.
172 This option cancels the
173 .Fl H
174 and
175 .Fl L
176 options.
177 .It Fl R
178 Recursively list subdirectories encountered.
179 .It Fl S
180 Sort by size (largest file first) before sorting the operands in
181 lexicographical order.
182 .It Fl T
183 When printing in the long
184 .Pq Fl l
185 format, display complete time information for the file, including
186 month, day, hour, minute, second, and year.
187 The
188 .Fl D
189 option gives even more control over the output format.
190 This option is not defined in
191 .St -p1003.1-2001 .
192 .It Fl U
193 Use time when file was created for sorting or printing.
194 This option is not defined in
195 .St -p1003.1-2001 .
196 .It Fl W
197 Display whiteouts when scanning directories.
198 This option is not defined in
199 .St -p1003.1-2001 .
200 .It Fl Z
201 Display each file's MAC label; see
202 .Xr maclabel 7 .
203 This option is not defined in
204 .St -p1003.1-2001 .
205 .It Fl a
206 Include directory entries whose names begin with a
207 dot
208 .Pq Sq Pa \&. .
209 .It Fl b
210 As
211 .Fl B ,
212 but use
213 .Tn C
214 escape codes whenever possible.
215 This option is not defined in
216 .St -p1003.1-2001 .
217 .It Fl c
218 Use time when file status was last changed for sorting or printing.
219 .It Fl d
220 Directories are listed as plain files (not searched recursively).
221 .It Fl f
222 Output is not sorted.
223 This option turns on
224 .Fl a .
225 It also negates the effect of the
226 .Fl r ,
227 .Fl S
228 and
229 .Fl t
230 options.
231 As allowed by
232 .St -p1003.1-2001 ,
233 this option has no effect on the
234 .Fl d ,
235 .Fl l ,
236 .Fl R
237 and
238 .Fl s
239 options.
240 .It Fl g
241 This option has no effect.
242 It is only available for compatibility with
243 .Bx 4.3 ,
244 where it was used to display the group name in the long
245 .Pq Fl l
246 format output.
247 This option is incompatible with
248 .St -p1003.1-2001 .
249 .It Fl h
250 When used with the
251 .Fl l
252 option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte
253 and Petabyte in order to reduce the number of digits to four or fewer
254 using base 2 for sizes.
255 This option is not defined in
256 .St -p1003.1-2001 .
257 .It Fl i
258 For each file, print the file's file serial number (inode number).
259 .It Fl k
260 This has the same effect as setting environment variable
261 .Ev BLOCKSIZE
262 to 1024, except that it also nullifies any
263 .Fl h
264 options to its left.
265 .It Fl l
266 (The lowercase letter
267 .Dq ell . )
268 List files in the long format, as described in the
269 .Sx The Long Format
270 subsection below.
271 .It Fl m
272 Stream output format; list files across the page, separated by commas.
273 .It Fl n
274 Display user and group IDs numerically rather than converting to a user
275 or group name in a long
276 .Pq Fl l
277 output.
278 .It Fl o
279 Include the file flags in a long
280 .Pq Fl l
281 output.
282 This option is incompatible with
283 .St -p1003.1-2001 .
284 See
285 .Xr chflags 1
286 for a list of file flags and their meanings.
287 .It Fl p
288 Write a slash
289 .Pq Ql /
290 after each filename if that file is a directory.
291 .It Fl q
292 Force printing of non-graphic characters in file names as
293 the character
294 .Ql \&? ;
295 this is the default when output is to a terminal.
296 .It Fl r
297 Reverse the order of the sort.
298 .It Fl s
299 Display the number of blocks used in the file system by each file.
300 Block sizes and directory totals are handled as described in
301 .Sx The Long Format
302 subsection below, except (if the long format is not also requested)
303 the directory totals are not output when the output is in a
304 single column, even if multi-column output is requested.
305 .It Fl t
306 Sort by descending time modified (most recently modified first).
307 If two files have the same modification timestamp, sort their names
308 in ascending lexicographical order.
309 The
310 .Fl r
311 option reverses both of these sort orders.
312 .Pp
313 Note that these sort orders are contradictory: the time sequence is in
314 descending order, the lexicographical sort is in ascending order.
315 This behavior is mandated by
316 .St -p1003.2 .
317 This feature can cause problems listing files stored with sequential names on
318 FAT file systems, such as from digital cameras, where it is possible to have
319 more than one image with the same timestamp.
320 In such a case, the photos cannot be listed in the sequence in which
321 they were taken.
322 To ensure the same sort order for time and for lexicographical sorting, set the
323 environment variable
324 .Ev LS_SAMESORT
325 or use the
326 .Fl y
327 option.
328 This causes
329 .Nm
330 to reverse the lexicographical sort order when sorting files with the
331 same modification timestamp.
332 .It Fl u
333 Use time of last access,
334 instead of time of last modification
335 of the file for sorting
336 .Pq Fl t
337 or printing
338 .Pq Fl l .
339 .It Fl w
340 Force raw printing of non-printable characters.
341 This is the default
342 when output is not to a terminal.
343 This option is not defined in
344 .St -p1003.1-2001 .
345 .It Fl x
346 The same as
347 .Fl C ,
348 except that the multi-column output is produced with entries sorted
349 across, rather than down, the columns.
350 .It Fl y
351 When the
352 .Fl t
353 option is set, sort the alphabetical output in the same order as the time output.
354 This has the same effect as setting
355 .Ev LS_SAMESORT .
356 See the description of the
357 .Fl t
358 option for more details.
359 This option is not defined in
360 .St -p1003.1-2001 .
361 .It Fl 1
362 (The numeric digit
363 .Dq one . )
364 Force output to be
365 one entry per line.
366 This is the default when
367 output is not to a terminal.
368 .It Fl ,
369 (Comma) When the
370 .Fl l
371 option is set, print file sizes grouped and separated by thousands using the
372 non-monetary separator returned by
373 .Xr localeconv 3 ,
374 typically a comma or period.
375 If no locale is set, or the locale does not have a non-monetary separator, this
376 option has no effect.
377 This option is not defined in
378 .St -p1003.1-2001 .
379 .El
380 .Pp
381 The
382 .Fl 1 , C , x ,
383 and
384 .Fl l
385 options all override each other; the last one specified determines
386 the format used.
387 .Pp
388 The
389 .Fl c , u ,
390 and
391 .Fl U
392 options all override each other; the last one specified determines
393 the file time used.
394 .Pp
395 The
396 .Fl S
397 and
398 .Fl t
399 options override each other; the last one specified determines
400 the sort order used.
401 .Pp
402 The
403 .Fl B , b , w ,
404 and
405 .Fl q
406 options all override each other; the last one specified determines
407 the format used for non-printable characters.
408 .Pp
409 The
410 .Fl H , L
411 and
412 .Fl P
413 options all override each other (either partially or fully); they
414 are applied in the order specified.
415 .Pp
416 By default,
417 .Nm
418 lists one entry per line to standard
419 output; the exceptions are to terminals or when the
420 .Fl C
421 or
422 .Fl x
423 options are specified.
424 .Pp
425 File information is displayed with one or more
426 .Ao blank Ac Ns s
427 separating the information associated with the
428 .Fl i , s ,
429 and
430 .Fl l
431 options.
432 .Ss The Long Format
433 If the
434 .Fl l
435 option is given, the following information
436 is displayed for each file:
437 file mode,
438 number of links, owner name, group name,
439 MAC label,
440 number of bytes in the file, abbreviated
441 month, day-of-month file was last modified,
442 hour file last modified, minute file last
443 modified, and the pathname.
444 .Pp
445 If the modification time of the file is more than 6 months
446 in the past or future, and the
447 .Fl D
448 or
449 .Fl T
450 are not specified,
451 then the year of the last modification
452 is displayed in place of the hour and minute fields.
453 .Pp
454 If the owner or group names are not a known user or group name,
455 or the
456 .Fl n
457 option is given,
458 the numeric ID's are displayed.
459 .Pp
460 If the file is a character special or block special file,
461 the device number for the file is displayed in the size field.
462 If the file is a symbolic link the pathname of the
463 linked-to file is preceded by
464 .Dq Li -> .
465 .Pp
466 The listing of a directory's contents is preceded
467 by a labeled total number of blocks used in the file system by the files
468 which are listed as the directory's contents
469 (which may or may not include
470 .Pa \&.
471 and
472 .Pa ..
473 and other files which start with a dot, depending on other options).
474 .Pp
475 The default block size is 512 bytes.
476 The block size may be set with option
477 .Fl k
478 or environment variable
479 .Ev BLOCKSIZE .
480 Numbers of blocks in the output will have been rounded up so the
481 numbers of bytes is at least as many as used by the corresponding
482 file system blocks (which might have a different size).
483 .Pp
484 The file mode printed under the
485 .Fl l
486 option consists of the
487 entry type and the permissions.
488 The entry type character describes the type of file, as
489 follows:
490 .Pp
491 .Bl -tag -width 4n -offset indent -compact
492 .It Sy \-
493 Regular file.
494 .It Sy b
495 Block special file.
496 .It Sy c
497 Character special file.
498 .It Sy d
499 Directory.
500 .It Sy l
501 Symbolic link.
502 .It Sy p
503 .Tn FIFO .
504 .It Sy s
505 Socket.
506 .It Sy w
507 Whiteout.
508 .El
509 .Pp
510 The next three fields
511 are three characters each:
512 owner permissions,
513 group permissions, and
514 other permissions.
515 Each field has three character positions:
516 .Bl -enum -offset indent
517 .It
518 If
519 .Sy r ,
520 the file is readable; if
521 .Sy \- ,
522 it is not readable.
523 .It
524 If
525 .Sy w ,
526 the file is writable; if
527 .Sy \- ,
528 it is not writable.
529 .It
530 The first of the following that applies:
531 .Bl -tag -width 4n -offset indent
532 .It Sy S
533 If in the owner permissions, the file is not executable and
534 set-user-ID mode is set.
535 If in the group permissions, the file is not executable
536 and set-group-ID mode is set.
537 .It Sy s
538 If in the owner permissions, the file is executable
539 and set-user-ID mode is set.
540 If in the group permissions, the file is executable
541 and setgroup-ID mode is set.
542 .It Sy x
543 The file is executable or the directory is
544 searchable.
545 .It Sy \-
546 The file is neither readable, writable, executable,
547 nor set-user-ID nor set-group-ID mode, nor sticky.
548 (See below.)
549 .El
550 .Pp
551 These next two apply only to the third character in the last group
552 (other permissions).
553 .Bl -tag -width 4n -offset indent
554 .It Sy T
555 The sticky bit is set
556 (mode
557 .Li 1000 ) ,
558 but not execute or search permission.
559 (See
560 .Xr chmod 1
561 or
562 .Xr sticky 7 . )
563 .It Sy t
564 The sticky bit is set (mode
565 .Li 1000 ) ,
566 and is searchable or executable.
567 (See
568 .Xr chmod 1
569 or
570 .Xr sticky 7 . )
571 .El
572 .El
573 .Pp
574 The next field contains a
575 plus
576 .Pq Ql +
577 character if the file has an ACL, or a
578 space
579 .Pq Ql " "
580 if it does not.
581 The
582 .Nm
583 utility does not show the actual ACL;
584 use
585 .Xr getfacl 1
586 to do this.
587 .Sh ENVIRONMENT
588 The following environment variables affect the execution of
589 .Nm :
590 .Bl -tag -width ".Ev CLICOLOR_FORCE"
591 .It Ev BLOCKSIZE
592 If this is set, its value, rounded up to 512 or down to a
593 multiple of 512, will be used as the block size in bytes by the
594 .Fl l
595 and
596 .Fl s
597 options.
598 See
599 .Sx The Long Format
600 subsection for more information.
601 .It Ev CLICOLOR
602 Use
603 .Tn ANSI
604 color sequences to distinguish file types.
605 See
606 .Ev LSCOLORS
607 below.
608 In addition to the file types mentioned in the
609 .Fl F
610 option some extra attributes (setuid bit set, etc.) are also displayed.
611 The colorization is dependent on a terminal type with the proper
612 .Xr termcap 5
613 capabilities.
614 The default
615 .Dq Li cons25
616 console has the proper capabilities,
617 but to display the colors in an
618 .Xr xterm 1 ,
619 for example,
620 the
621 .Ev TERM
622 variable must be set to
623 .Dq Li xterm-color .
624 Other terminal types may require similar adjustments.
625 Colorization
626 is silently disabled if the output is not directed to a terminal
627 unless the
628 .Ev CLICOLOR_FORCE
629 variable is defined.
630 .It Ev CLICOLOR_FORCE
631 Color sequences are normally disabled if the output is not directed to
632 a terminal.
633 This can be overridden by setting this variable.
634 The
635 .Ev TERM
636 variable still needs to reference a color capable terminal however
637 otherwise it is not possible to determine which color sequences to
638 use.
639 .It Ev COLUMNS
640 If this variable contains a string representing a
641 decimal integer, it is used as the
642 column position width for displaying
643 multiple-text-column output.
644 The
645 .Nm
646 utility calculates how
647 many pathname text columns to display
648 based on the width provided.
649 (See
650 .Fl C
651 and
652 .Fl x . )
653 .It Ev LANG
654 The locale to use when determining the order of day and month in the long
655 .Fl l
656 format output.
657 See
658 .Xr environ 7
659 for more information.
660 .It Ev LSCOLORS
661 The value of this variable describes what color to use for which
662 attribute when colors are enabled with
663 .Ev CLICOLOR .
664 This string is a concatenation of pairs of the format
665 .Ar f Ns Ar b ,
666 where
667 .Ar f
668 is the foreground color and
669 .Ar b
670 is the background color.
671 .Pp
672 The color designators are as follows:
673 .Pp
674 .Bl -tag -width 4n -offset indent -compact
675 .It Sy a
676 black
677 .It Sy b
678 red
679 .It Sy c
680 green
681 .It Sy d
682 brown
683 .It Sy e
684 blue
685 .It Sy f
686 magenta
687 .It Sy g
688 cyan
689 .It Sy h
690 light grey
691 .It Sy A
692 bold black, usually shows up as dark grey
693 .It Sy B
694 bold red
695 .It Sy C
696 bold green
697 .It Sy D
698 bold brown, usually shows up as yellow
699 .It Sy E
700 bold blue
701 .It Sy F
702 bold magenta
703 .It Sy G
704 bold cyan
705 .It Sy H
706 bold light grey; looks like bright white
707 .It Sy x
708 default foreground or background
709 .El
710 .Pp
711 Note that the above are standard
712 .Tn ANSI
713 colors.
714 The actual display may differ
715 depending on the color capabilities of the terminal in use.
716 .Pp
717 The order of the attributes are as follows:
718 .Pp
719 .Bl -enum -offset indent -compact
720 .It
721 directory
722 .It
723 symbolic link
724 .It
725 socket
726 .It
727 pipe
728 .It
729 executable
730 .It
731 block special
732 .It
733 character special
734 .It
735 executable with setuid bit set
736 .It
737 executable with setgid bit set
738 .It
739 directory writable to others, with sticky bit
740 .It
741 directory writable to others, without sticky bit
742 .El
743 .Pp
744 The default is
745 .Qq "exfxcxdxbxegedabagacad" ,
746 i.e., blue foreground and
747 default background for regular directories, black foreground and red
748 background for setuid executables, etc.
749 .It Ev LS_COLWIDTHS
750 If this variable is set, it is considered to be a
751 colon-delimited list of minimum column widths.
752 Unreasonable
753 and insufficient widths are ignored (thus zero signifies
754 a dynamically sized column).
755 Not all columns have changeable widths.
756 The fields are,
757 in order: inode, block count, number of links, user name,
758 group name, flags, file size, file name.
759 .It Ev LS_SAMESORT
760 If this variable is set, the
761 .Fl t
762 option sorts the names of files with the same modification timestamp in the same
763 sense as the time sort.
764 See the description of the
765 .Fl t
766 option for more details.
767 .It Ev TERM
768 The
769 .Ev CLICOLOR
770 functionality depends on a terminal type with color capabilities.
771 .It Ev TZ
772 The timezone to use when displaying dates.
773 See
774 .Xr environ 7
775 for more information.
776 .El
777 .Sh EXIT STATUS
778 .Ex -std
779 .Sh EXAMPLES
780 List the contents of the current working directory in long format:
781 .Pp
782 .Dl $ ls -l
783 .Pp
784 In addition to listing the contents of the current working directory in
785 long format, show inode numbers, file flags (see
786 .Xr chflags 1 ) ,
787 and suffix each filename with a symbol representing its file type:
788 .Pp
789 .Dl $ ls -lioF
790 .Pp
791 List the files in
792 .Pa /var/log ,
793 sorting the output such that the mostly recently modified entries are
794 printed first:
795 .Pp
796 .Dl $ ls -lt /var/log
797 .Sh COMPATIBILITY
798 The group field is now automatically included in the long listing for
799 files in order to be compatible with the
800 .St -p1003.2
801 specification.
802 .Sh SEE ALSO
803 .Xr chflags 1 ,
804 .Xr chmod 1 ,
805 .Xr getfacl 1 ,
806 .Xr sort 1 ,
807 .Xr xterm 1 ,
808 .Xr libxo 3 ,
809 .Xr localeconv 3 ,
810 .Xr strftime 3 ,
811 .Xr strmode 3 ,
812 .Xr xo_parse_args 3 ,
813 .Xr termcap 5 ,
814 .Xr maclabel 7 ,
815 .Xr sticky 7 ,
816 .Xr symlink 7 ,
817 .Xr getfmac 8
818 .Sh STANDARDS
819 With the exception of options
820 .Fl g , n
821 and
822 .Fl o ,
823 the
824 .Nm
825 utility conforms to
826 .St -p1003.1-2001 .
827 The options
828 .Fl B , D , G , I , T , U , W , Z , b , h , w , y
829 and
830 .Fl ,
831 are compatible extensions not defined in
832 .St -p1003.1-2001 .
833 .Pp
834 The ACL support is compatible with
835 .Tn IEEE
836 Std\~1003.2c
837 .Pq Dq Tn POSIX Ns .2c
838 Draft\~17
839 (withdrawn).
840 .Sh HISTORY
841 An
842 .Nm
843 command appeared in
844 .At v1 .
845 .Sh BUGS
846 To maintain backward compatibility, the relationships between the many
847 options are quite complex.
848 .Pp
849 The exception mentioned in the
850 .Fl s
851 option description might be a feature that was
852 based on the fact that single-column output
853 usually goes to something other than a terminal.
854 It is debatable whether this is a design bug.
855 .Pp
856 .St -p1003.2
857 mandates opposite sort orders for files with the same timestamp when
858 sorting with the
859 .Fl t
860 option.