diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-18 06:55:11 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-18 06:55:11 +0000 |
commit | 3e6f48209fb1159a6ceb04d1acc6f1add775fc45 (patch) | |
tree | 72ceb92bea0f90da3a9209d6929cec5ee0f1df08 /bin/ls | |
parent | a6174cd0b609f882475db2af94f6559e5a5e6ff8 (diff) |
Add some rudimentary EXAMPLES sections and standardize the way we display
existing EXAMPLES sections.
Diffstat (limited to 'bin/ls')
-rw-r--r-- | bin/ls/ls.1 | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index 7e7a5c4e472..f96217c0c2d 100644 --- a/bin/ls/ls.1 +++ b/bin/ls/ls.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ls.1,v 1.27 2000/07/23 06:16:42 ericj Exp $ +.\" $OpenBSD: ls.1,v 1.28 2000/10/18 06:55:08 aaron Exp $ .\" $NetBSD: ls.1,v 1.14 1995/12/05 02:44:01 jtc Exp $ .\" .\" Copyright (c) 1980, 1990, 1991, 1993, 1994 @@ -393,6 +393,24 @@ system immutable The .Nm utility exits 0 on success or >0 if an error occurred. +.Sh EXAMPLES +.Cm ls -l +.Pp +List the contents of the current working directory in long format. +.Pp +.Cm ls -lioF +.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 +.Cm ls -lt /var/log +.Pp +List the files in +.Pa /var/log , +sorting the output such that the mostly recently modified entries are +printed first. .Sh ENVIRONMENT The following environment variables affect the execution of .Nm ls : |