1.\" Copyright (c) 1980, 1990, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)ls.1 8.7 (Berkeley) 7/29/94 |
36.\" $Id: ls.1,v 1.17 1998/04/21 22:01:58 des Exp $ |
37.\" 38.Dd July 29, 1994 39.Dt LS 1 40.Os 41.Sh NAME 42.Nm ls 43.Nd list directory contents 44.Sh SYNOPSIS 45.Nm ls |
46.Op Fl ?ABCFLRTWabcdfgikloqrstu1 |
47.Op Ar file ... 48.Sh DESCRIPTION 49For each operand that names a 50.Ar file 51of a type other than 52directory, 53.Nm ls 54displays its name as well as any requested, --- 10 unchanged lines hidden (view full) --- 65directory are displayed. 66If more than one operand is given, 67non-directory operands are displayed first; directory 68and non-directory operands are sorted separately and in 69lexicographical order. 70.Pp 71The following options are available: 72.Bl -tag -width indent |
73.It Fl ? 74Displays a short list of valid options. |
75.It Fl A 76List all entries except for 77.Ql \&. 78and 79.Ql \&.. . 80Always set for the super-user. |
81.It Fl B 82Force printing of non-graphic characters in file names as \\xxx, 83where xxx is the numeric value of the character in octal. |
84.It Fl C 85Force multi-column output; this is the default when output is to a terminal. 86.It Fl F 87Display a slash (/) immediately after each pathname 88that is a directory, an asterisk (*) after each that is 89executable, 90an at sign (@) after each symbolic link, 91an equals sign (=) after each socket, --- 9 unchanged lines hidden (view full) --- 101Display complete time information for the file, including 102month, day, hour, minute, second, and year. 103.It Fl W 104Display whiteouts when scanning directories. 105.It Fl a 106Include directory entries whose names begin with a 107dot (.). 108.It Fl b |
109As 110.Fl B , 111but use C escape codes whenever possible. |
112.It Fl c 113Use time when file status was last changed for sorting or printing. 114.It Fl d 115Directories are listed as plain files (not searched recursively) and 116symbolic links in the argument list are not indirected through. 117.It Fl f 118Output is not sorted. 119.It Fl g --- 246 unchanged lines hidden --- |