summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.1
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-08-02 14:55:58 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-08-02 14:55:58 +0000
commit744826805a8fa11029b3e80c02543c9c0bd5f348 (patch)
tree5ed8b544293dda4ec868c125ea69f1f05e2c6122 /bin/ls/ls.1
parent5b5828498ce7d177092ce4cab703281dbce9c563 (diff)
downloadFreeBSD-src-744826805a8fa11029b3e80c02543c9c0bd5f348.zip
FreeBSD-src-744826805a8fa11029b3e80c02543c9c0bd5f348.tar.gz
Add -n option to print numeric user and group IDs instead of names
in a long (-l) listing. MFC-jockies should make sure that bde's concerns regarding the number of digits required to represent a uid_t and the use of snprintf on the associated PR have been addressed before going wild. PR: 12866 Reported by: Philip Kizer <pckizer@nostrum.com> Obtained from: NetBSD
Diffstat (limited to 'bin/ls/ls.1')
-rw-r--r--bin/ls/ls.112
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index 2975f98..d5611f7 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
-.\" $Id: ls.1,v 1.27 1999/04/27 23:33:52 hoek Exp $
+.\" $Id: ls.1,v 1.28 1999/05/08 10:20:27 kris Exp $
.\"
.Dd July 29, 1994
.Dt LS 1
@@ -148,6 +148,11 @@ not blocks. This option overrides the environment variable BLOCKSIZE.
(The lowercase letter ``ell.'') List in long format. (See below.)
If the output is to a terminal, a total sum for all the file
sizes is output on a line before the long listing.
+.It Fl n
+Display user and group IDs numerically rather than converting to a user
+or group name in a long
+.Pq Fl l
+output.
.It Fl o
Include the file flags in a long
.Pq Fl l
@@ -247,7 +252,10 @@ If the modification time of the file is more than 6 months
in the past or future, then the year of the last modification
is displayed in place of the hour and minute fields.
.Pp
-If the owner or group names are not a known user or group name
+If the owner or group names are not a known user or group name,
+or the
+.Fl n
+option is given,
the numeric ID's are displayed.
.Pp
If the file is a character special or block special file,
OpenPOWER on IntegriCloud