sbase/ls.1

65 lines
1.7 KiB
Groff
Raw Normal View History

.Dd February 21, 2015
.Dt LS 1
.Os sbase
.Sh NAME
.Nm ls
.Nd list directory contents
.Sh SYNOPSIS
.Nm
2015-02-22 06:55:38 -05:00
.Op Fl 1AacdFHhiLlnqrtUu
.Op Ar file ...
.Sh DESCRIPTION
.Nm
lists each given file, and the contents of each given directory. If no files
2011-05-25 23:01:20 -04:00
are given the current directory is listed.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl A
List all entries except for '.' and '..'.
.It Fl a
Show hidden files (those beginning with '.').
.It Fl c
Use time file's status was last changed instead of last
modification time for sorting or printing.
.It Fl d
List directories themselves, not their contents.
.It Fl F
2015-02-19 13:48:15 -05:00
Append a file type indicator to all special files.
.It Fl H
List information about the targets of symbolic links specified on the command
line instead of the links themselves.
.It Fl h
Show filesizes in human\-readable format.
.It Fl i
Print the index number of each file.
.It Fl L
List information about the targets of symbolic links instead of the links
themselves.
.It Fl l
List detailed information about each file, including their type, permissions,
links, owner, group, size, and last file status/modification time.
2015-02-22 06:55:38 -05:00
.It Fl n
List detailed information about each file, including their type, permissions,
links, owner, group, size, and last file status/modification time, but with
numeric IDs.
2015-02-19 13:48:15 -05:00
.It Fl p
Append a file type indicator to directories.
.It Fl q
Replace non-printable characters in filenames with '?'.
2015-02-21 05:45:15 -05:00
.It Fl R
List directory content recursively. The
.Fl 1
flag is set implicitly.
.It Fl r
Reverse the sort order.
.It Fl t
Sort files by last file status/modification time instead of by name.
.It Fl U
Keep the list unsorted.
2015-02-18 11:29:46 -05:00
.It Fl u
Use file's last access time instead of last modification time for
sorting or printing.
.El
.Sh SEE ALSO
.Xr stat 2