2015-02-18 11:29:46 -05:00
|
|
|
.Dd February 18, 2015
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt LS 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-20 11:50:37 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ls
|
|
|
|
.Nd list directory contents
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 15:17:58 -05:00
|
|
|
.Nm
|
2015-02-18 11:29:46 -05:00
|
|
|
.Op Fl 1acdFHhiLlqrtUu
|
2015-01-20 11:50:37 -05:00
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-01-31 08:43:27 -05:00
|
|
|
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.
|
2015-01-20 11:50:37 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.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.
|
2015-01-20 11:50:37 -05:00
|
|
|
.It Fl H
|
|
|
|
List information about the targets of symbolic links specified on the command
|
2014-12-07 20:33:52 -05:00
|
|
|
line instead of the links themselves.
|
2015-01-20 11:50:37 -05:00
|
|
|
.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
|
2014-12-07 20:33:52 -05:00
|
|
|
themselves.
|
2015-01-20 11:50:37 -05:00
|
|
|
.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-19 13:48:15 -05:00
|
|
|
.It Fl p
|
|
|
|
Append a file type indicator to directories.
|
2015-02-17 12:59:01 -05:00
|
|
|
.It Fl q
|
|
|
|
Replace non-printable characters in filenames with '?'.
|
2015-01-20 11:50:37 -05:00
|
|
|
.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.
|
2015-01-20 11:50:37 -05:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr stat 2
|