summaryrefslogtreecommitdiffstats
path: root/bin/ls
diff options
context:
space:
mode:
authorjoel <joel@FreeBSD.org>2013-03-15 20:12:54 +0000
committerjoel <joel@FreeBSD.org>2013-03-15 20:12:54 +0000
commit2ba67e203aad1ffa4650449d05e44a2b61e99ad6 (patch)
tree33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/ls
parent90b1ba3bc42c541bb65e1492274cdbdeca8d1dea (diff)
downloadFreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.zip
FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.tar.gz
Add a few examples.
Obtained from: OpenBSD
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/ls.120
1 files changed, 19 insertions, 1 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index aa4fc18..7c72652 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -32,7 +32,7 @@
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\" $FreeBSD$
.\"
-.Dd November 8, 2012
+.Dd March 15, 2013
.Dt LS 1
.Os
.Sh NAME
@@ -718,6 +718,24 @@ for more information.
.El
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+List the contents of the current working directory in long format:
+.Pp
+.Dl $ ls -l
+.Pp
+In addition to listing the contents of the current working directory in
+long format, show inode numbers, file flags (see
+.Xr chflags 1 ) ,
+and suffix each filename with a symbol representing its file type:
+.Pp
+.Dl $ ls -lioF
+.Pp
+List the files in
+.Pa /var/log ,
+sorting the output such that the mostly recently modified entries are
+printed first:
+.Pp
+.Dl $ ls -lt /var/log
.Sh COMPATIBILITY
The group field is now automatically included in the long listing for
files in order to be compatible with the
OpenPOWER on IntegriCloud