summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.1
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of major/minor number distinction.ed2011-09-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
* Update sticky(7) cross references.pluknet2011-05-131-4/+4
| | | | | PR: docs/124468 X-MFC with: r218998
* Add reference to strmode(3).trasz2009-04-131-0/+1
|
* - Add -D to usage().ru2008-04-041-2/+3
| | | | | - Bump document date for the addition of the -D option. - Reformat a sentence to look like a real sentence.
* Add -D option to specify exact format of date and time output with ls -l.grog2008-04-041-6/+28
|
* - Improve description of the -A option.ru2006-10-121-7/+12
| | | | | | | | - Document how whiteouts look in the long output. [1] - Sort entry types. - Fix description of the socket type. PR: docs/51921 [1]
* Markup fixes.ru2006-09-171-1/+1
|
* Change the -S and -t options to override each other so that the last onejhb2006-03-241-0/+7
| | | | specified wins to make their interaction less confusing.
* Add a few more references to -U.jhb2006-03-241-4/+4
|
* Add a new -U flag to instruct ls to use the birthtime for printing orjhb2006-03-241-0/+2
| | | | | | | sorting. Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl MFC after: 1 week
* -mdoc sweep.ru2005-11-171-3/+1
|
* Having three options (-a, -A, -I) controlling the output of dottedru2005-11-161-7/+5
| | | | | | | | | | | files is too much and hard to follow. Instead, make the -I option just mean "do not automatically set -A for root". That is, if -A is explicitly set, -I is ignored. Also, document -I in usage(). (The ls.c diff is better viewed relative to rev. 1.80.) No objection: mux Silence from: mnag MFC after: 3 days
* Mention the non-standardness of the -I option in ls(1).mux2005-11-101-1/+2
| | | | | Spotted by: ru MFC after: 3 days
* Add a -I option to disable the automatic -A flag for the super-user.mux2005-11-101-1/+9
| | | | | | PR: bin/86710 Submitted by: Marcus Alves Grando MFC after: 3 days
* fix typos: decribed -> described, preceeded -> precededrse2005-09-061-3/+3
|
* Improved descriptions of block size handling.garys2005-08-311-37/+48
| | | | | | | PR: docs/84765 Submitted by: garys Approved by: keramida MFC after: 3 days
* Remove the EXAMPLES section that describes how to sort by size usingdd2005-06-031-15/+0
| | | | | | | | | | sort(1). This functionality is provided by the -S option now, and it is useful even though a similar effect is achievable with sort(1), since the latter doesn't work in combination with -h. This option is also present in NetBSD, OpenBSD, and GNU fileutils, so there's clearly a demand for it. Noticed by: asmodai
* Improve wording: A sort is "in" a particular order, not "by" add2005-06-031-2/+2
| | | | particular order.
* Add the -S option to sort files by size. NetBSD and OpenBSD alreadydd2005-06-031-4/+6
| | | | | | | | 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
* Expand *n't contractions.ru2005-02-131-2/+2
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-17/+17
| | | | Sort standard sections in the (documented) preferred order.
* The total sum of blocks for the -l and -s option is printed always,joerg2005-01-111-3/+5
| | | | | | | | | | | regardless whether the output is to a terminal or not. As this is consistent with the SUSPv2 specification (even though we do not otherwise fully implement SUSPv2's ls(1) options), document this as it is now, rather than trying to change the behaviour itself. PR: docs/76072 Submitted by: Sebastian Rey <Sebastian.rey@gmx.net> MFC after: 1 week
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-0/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* Punctuation.ru2004-05-161-1/+1
|
* Treat filenames as multibyte character strings (according to the currenttjr2004-05-021-5/+1
| | | | | | | | | | | | | LC_CTYPE setting) when determining which characters are printable. This is an often-requested feature. Use wcwidth() to determine the number of column positions a character takes up, although there are still a few places left where we assume 1 byte = 1 column position, e.g. line-wrapping when handling the -m option. The error handling here is somewhat more complicated than usual: we do our best to show what we can of a filename in the presence of conversion errors, instead of simply aborting.
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Document incorrect handling of multibyte characters in filenames.tjr2004-03-211-1/+5
|
* Do something sensible if both -h and -k are given.obrien2003-12-011-0/+8
| | | | Approved by: re(scottl)
* Note in STANDARDS that -gno are not (yet?) POSIX conformant.schweikh2003-08-081-1/+6
| | | | | Spotted by: harti MFC after: 3 days
* -l prints all permissions, not just owner and groupbrueffer2003-07-101-1/+1
| | | | | | PR: 54294 Submitted by: Per Hedeland <per@hedeland.org> MFC after: 3 days
* df(1) and ls(1) print units in 'four or fewer' not 'three or less'.trhodes2003-05-061-1/+1
| | | | | PR: 35523 Submitted by: Tomas Svensson <tsn@gbdev.net>
* Reference maclabel(7).chris2003-01-201-1/+3
| | | | Sponsored by: DARPA, Network Associates Laboratories
* mdoc(7) police: markup fixes.ru2002-11-251-6/+9
| | | | Approved by: re
* Print a `+' character after the standard UNIX permission fields in longtjr2002-11-031-2/+20
| | | | | | | | listings if the file has an extended ACL (more than the required 3 entries). This is what Solaris and IRIX do, and what the withdrawn POSIX.2c standard required. Reviewed by: rwatson (an earlier version of the patch)
* Teach "ls -Z" to use the policy-agnostic MAC label interfaces ratherrwatson2002-10-241-8/+2
| | | | | | | | | | | than the LOMAC-specific interfaces for listing MAC labels. This permits ls to view MAC labels in a manner similar to getfmac, when ls is used with the -l argument. Next generation LOMAC will use the MAC Framework so should "just" work with this and other policies. Not the prettiest code in the world, but then, neither is ls(1). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* s/filesystem/file system/ as discussed on -developerstrhodes2002-08-211-1/+1
|
* mdoc(7) police: fixed the document date.ru2002-08-191-1/+1
| | | | Submitted by: iedowse
* mdoc(7) police: markup nits.ru2002-05-291-2/+3
|
* Add missing options required by SUSv3:tjr2002-05-191-10/+23
| | | | | | | | -m List files across the page, separated by commas. -p Print a slash after directory names -x Same as -C but sort across the columns rather than down Submitted by: Kyle Martin <mkm@ieee.org>
* Consistancy check s/file system/filesystem/trhodes2002-05-161-1/+1
| | | | Reviewed by: brian
* ls(1) is utility not functioncharnier2002-04-161-1/+1
|
* Document option to option dependancy. Fix typo.jwd2002-04-151-3/+7
| | | | MFC after: 1 week
* mdoc(7) police: tidy up.ru2002-01-091-54/+87
|
* Remove part of a diff committed at the end of the file.ben2001-12-291-20/+0
|
* Force raw printing of non-printable characters via the -w option.joe2001-12-291-2/+6
| | | | PR: bin/28007
* Add a new flag, -h which when combined with the -l option causesjoe2001-12-281-1/+27
| | | | | | | | file sizes to be displayed with unit suffixes; Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less. Submitted by: nik
* Revamp the colour support to allow for bold characters. Coloursjoe2001-12-281-9/+25
| | | | | | | | are now defined using the characters a-h and A-H for the bold variants. The old way using 0-7 for the colours still works, but prints a message asking the user to switch. PR: bin/27374
* Make a bit more clear the types of characters that -B option willkeramida2001-12-061-1/+3
| | | | | | print in octal. Reviewed by: roam, silence on -doc
* mdoc(7) police: s/LKM/KLD/, sort xrefs.ru2001-12-041-3/+5
|
OpenPOWER on IntegriCloud