|
|
1.1 root 1:
2:
3: ls Command ls
4:
5:
6:
7:
8: List directory's contents
9:
10: llss [-aaccddffggiillrrssttuu] [_f_i_l_e ... ]
11:
12: The command ls prints information about each file. Normally, ls
13: sorts its output by file name and prints only the name of each
14: file. If a directory name is given as an argument, ls sorts and
15: lists its contents, not including `.' and `..'. If no file is
16: named, ls lists the contents of the current directory.
17:
18: The following options control how ls sorts and displays its out-
19: put.
20:
21: -aa Print all directory entries, including `.', `..', any hidden
22: files, and volume ID's.
23:
24: -cc Sort by the time the files' attributes were last changed.
25:
26: -dd Treat directories as if they were files.
27:
28: -ff Force each argument to be treated as a directory. This dis-
29: ables the -lrst options and sorting, and enables the -a
30: option.
31:
32: -gg Display group list rather than user ls of owner; only ap-
33: plicable with -l.
34:
35: -ii Print the i-number of each file.
36:
37: -ll Print information in long format. The fields give mode
38: bits, link count, owner uid, owner gid, size in bytes, date,
39: and file name. For special files, major and minor device
40: numbers replace the size field.
41:
42: -rr Reverse the sense of the sort.
43:
44: -RR Recursively print directories.
45:
46: -ss Print the size in blocks of each file.
47:
48: -tt Sort by time, newest first.
49:
50: -uu Sort by the access time.
51:
52: The date ls prints with the -l and -t options is the modification
53: time, unless the -c or -u option is used as well.
54:
55: The mode field in the long list format consists of ten charac-
56: ters. The first character will be one of the following:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
67:
68:
69: ls Command ls
70:
71:
72:
73: - Regular file
74:
75:
76:
77: bb Block special file
78: cc Character special file
79:
80:
81:
82: dd Directory
83:
84:
85:
86: pp Pipe
87: xx Bad entry (remove it immediately!)
88:
89:
90: The remaining nine characters are permission bits, in three sets
91: of three characters each. The first set pertains to the owner of
92: the file, the second to users from the owner's group, and the
93: third to users from other groups. Each set may contain 3 charac-
94: ters from the following.
95:
96:
97: rr The file can be read
98: ss Set effective user ID or group ID on execution
99: tt Shared text is sticky
100: ww The file can be read
101: xx The file is executable
102: - No permission is given
103:
104:
105: ***** See Also *****
106:
107: chmod, commands, lc, stat
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130: COHERENT Lexicon Page 2
131:
132:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.