diff options
author | Joel Dahl <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
---|---|---|
committer | Joel Dahl <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
commit | e9e3a1ab1fb5cad58704a28dc528be8c075d32d8 (patch) | |
tree | 33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/ls | |
parent | 302868d91418dc0688773d9c7293b72c0862ed7d (diff) | |
download | src-e9e3a1ab1fb5cad58704a28dc528be8c075d32d8.tar.gz src-e9e3a1ab1fb5cad58704a28dc528be8c075d32d8.zip |
Add a few examples.
Obtained from: OpenBSD
Notes
Notes:
svn path=/head/; revision=248342
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 aa4fc1860d1d..7c7265225e01 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 |