summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.1
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2005-06-03 11:05:58 +0000
committerdd <dd@FreeBSD.org>2005-06-03 11:05:58 +0000
commit99a2093aa5adcd2cfd2e9f9985142318d188b080 (patch)
tree9bcf1fb5bb7f5fa54b12f829708d0a6ab8840ca2 /bin/ls/ls.1
parent899df482c7480cb865309c0da379b01d4546521d (diff)
downloadFreeBSD-src-99a2093aa5adcd2cfd2e9f9985142318d188b080.zip
FreeBSD-src-99a2093aa5adcd2cfd2e9f9985142318d188b080.tar.gz
Add the -S option to sort files by size. NetBSD and OpenBSD already
have this option with identical semantics (sorting large files first). -r can be used to reverse the sort if that is desired. PR: 81625 Submitted by: Kostas Blekos <mplekos@physics.upatras.gr>, keramida
Diffstat (limited to 'bin/ls/ls.1')
-rw-r--r--bin/ls/ls.110
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index 314b5a2..9dff143 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 January 11, 2005
+.Dd June 2, 2005
.Dt LS 1
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.Nd list directory contents
.Sh SYNOPSIS
.Nm
-.Op Fl ABCFGHLPRTWZabcdfghiklmnopqrstuwx1
+.Op Fl ABCFGHLPRSTWZabcdfghiklmnopqrstuwx1
.Op Ar
.Sh DESCRIPTION
For each operand that names a
@@ -133,6 +133,9 @@ and
options.
.It Fl R
Recursively list subdirectories encountered.
+.It Fl S
+Sort by size (largest file first) before sorting the operands by
+lexicographical order.
.It Fl T
When used with the
.Fl l
@@ -221,8 +224,7 @@ the character
.Ql \&? ;
this is the default when output is to a terminal.
.It Fl r
-Reverse the order of the sort to get reverse
-lexicographical order or the oldest entries first.
+Reverse the order of the sort.
.It Fl s
Display the number of file system blocks actually used by each file, in units
of 512 bytes, where partial units are rounded up to the next integer value.
OpenPOWER on IntegriCloud