sbase/ls.1
Michael Forney 46ea55a258 ls: Handle symlinks to directories properly
Also, implement the -H and -L options.
2014-12-08 10:02:09 +00:00

50 lines
1.0 KiB
Groff

.TH LS 1 sbase\-VERSION
.SH NAME
ls \- list directory contents
.SH SYNOPSIS
.B ls
.RB [ \-adFHhiLlrtU ]
.RI [ file ...]
.SH DESCRIPTION
.B ls
lists each given file, and the contents of each given directory. If no files
are given the current directory is listed.
.SH OPTIONS
.TP
.B \-a
shows hidden files (those beginning with '.').
.TP
.B \-d
lists directories themselves, not their contents.
.TP
.B \-F
append a file type indicator to files.
.TP
.B \-H
list information about the targets of symbolic links specified on the command
line instead of the links themselves.
.TP
.B \-h
show filesizes in human\-readable format.
.TP
.B \-i
print the index number of each file.
.TP
.B \-L
list information about the targets of symbolic links instead of the links
themselves.
.B \-l
lists detailed information about each file, including their type, permissions,
links, owner, group, size, and modification time.
.TP
.B \-r
reverses the sort order.
.TP
.B \-t
sorts files by modification time instead of by name.
.TP
.B \-U
keeps the list unsorted.
.SH SEE ALSO
.IR stat (2)