1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
|
.TH NAMESPACE 4
.SH NAME
namespace \- structure of conventional file name space
.SH SYNOPSIS
none
.SH DESCRIPTION
After a user's profile has run, the file name space should adhere
to a number of conventions if the system is to behave normally.
This manual page documents those conventions by traversing the
file hierarchy and describing the points of interest.
It also serves as a guide to where things reside in the file system proper.
The traversal is far from exhaustive.
.PP
First, here is the appearance of the file server as it appears before
any mounts or bindings.
.TF /sys/src/cmd
.TP
.B /
The root directory.
.TP
.B /adm
The administration directory for the file server.
.TP
.B /adm/users
List of users known to the file server; see
.IR users (6).
.TP
.B /adm/keys
Authentication keys for users.
.TP
.B /adm/netkeys
SecureNet keys for users; see
.IR securenet (8).
.TP
.B /adm/timezone
Directory of timezone files; see
.IR ctime (2).
.TP
.B /adm/timezone/EST.EDT
Time zone description for Eastern Time. Other such files are in this directory too.
.TP
.B /adm/timezone/timezone
Time zone description for the local time zone; a copy of one of the other files in this directory.
.TP
.B /bin
.TP
.B /dev
.TP
.B /env
.TP
.B /fd
.TP
.B /net
.TP
.B /proc
.TP
.B /srv
.TP
.B /shr
.TP
.B /tmp
All empty unwritable directories, place holders for mounted services and directories.
.TP
.B /mnt
A directory containing mount points for applications.
.TP
.B /n
A directory containing mount points for file trees imported from
remote systems.
.TP
.B /386
.TP
.B /68000
.TP
.B /68020
.TP
.B /alpha
.TP
.B /arm
.TP
.B /mips
.TP
.B /power
.TP
.B /sparc
Each CPU architecture supported by Plan 9 has a directory in the root containing
architecture-specific files, to be selected according to
.B $objtype
or
.B $cputype
(see
.IR 2c (1)
and
.IR init (8)).
Here we list only those for
.BR /386 .
.TP
.B /386/init
The initialization program used during bootstrapping; see
.IR init (8).
.TP
.B /386/bin
Directory containing binaries for the Intel x86 architecture.
.TP
.B "/386/bin/aux
.TP
.B /386/bin/ip
.TP
etc.
Subdirectories of
.B /386/bin
containing auxiliary tools and collecting related programs.
.TP
.B /386/lib
Directory of object code libraries as used by
.B 8l
(see
.IR 2l (1)).
.TP
.B /386/include
Directory of x86-specific C include files.
.TP
.B /386/9*
The files in
.B /386
beginning with a
.B 9
are binaries of the operating system or its bootstrap loader.
.TP
.B /386/mkfile
Selected by
.IR mk (1)
when
.B $objtype
is
.BR 386 ,
this file configures
.B mk
to compile for the Intel x86 architecture.
.TP
.B /rc
Isomorphic to the architecture-dependent directories, this holds executables
and libraries for the shell,
.IR rc (1).
.TP
.B /rc/bin
Directory of shell executable files.
.TP
.B /rc/lib
Directory of shell libraries.
.TP
.B /rc/lib/rcmain
Startup code for
.IR rc (1).
.TP
.B /rc/lib/rcmain.local
Site local startup code for
.IR rc (1).
.TP
.B /lib
Collections of data, generally not parts of programs.
.TP
.B /lib/mammals
.TP
.B /lib/sky
.TP
etc.
Databases.
.TP
.B /lib/ndb
The network database used by the networking software; see
.IR ndb (6)
and
.IR ndb (8).
.TP
.B /lib/namespace
The file used by
.B newns
(see
.IR auth (2))
to establish the default name space; see
.IR namespace (6).
.TP
.B /lib/font/bit
Bitmap font files.
.TP
.B /lib/font/ttf
TrueType font files.
.TP
.B /lib/rfc
Directory of Internet `Requests For Comments',
ranging from trivia to specifications.
.TP
.B /lib/rfc/grabrfc
Maintains RFC collection; usually run from
.IR cron
(see
.IR auth (8)).
.TP
.B /sys
System software.
.TP
.B /sys/include
Directory of machine-independent C include files.
.TP
.B /sys/lib
Pieces of programs not easily held in the various
.BR bins .
.TP
.B /sys/lib/acid
Directory of
.IR acid (1)
load modules.
.TP
.B /sys/lib/dist
Software used to assemble the distribution's installation floppy.
.TP
.B /sys/lib/troff
Directory of
.IR troff (1)
font tables and macros.
.TP
.B /sys/lib/yaccpar
The
.IR yacc (1)
parser.
.TP
.B /sys/man
The manual.
.TP
.B /sys/doc
Other system documentation.
.TP
.B /sys/log
Log files created by various system services.
.TP
.B /sys/src
Top-level directory of system sources.
.TP
.B /sys/src/cmd
Source to the commands in the
.B bin
directories.
.TP
.B /sys/src/9
Source to the operating system for terminals and CPU servers.
.TP
.B /sys/src/fs
Source to the operating system for file servers.
.TP
.B /sys/src/lib*
Source to the libraries.
.TP
.B /usr
A directory containing home directories of users.
.TP
.B /mail
Directory of electronic mail; see
.IR mail (1).
.TP
.B /mail/box
Directory of users' mail box files.
.TP
.B /mail/lib
Directory of alias files, etc.
.TP
.B /acme
Directory of tools for
.IR acme (1).
.TP
.B /cron
Directory of files for
.IR cron (8).
.TP
.BI /cfg/ system
.IR System -specific
files, often addenda to their namesakes,
notably
.BR cpurc ,
.BR termrc ,
.BR namespace ,
and
.BR consoledb .
.PD
.PP
The following files and directories are modified in the standard
name space, as defined by
.B /lib/namespace
(see
.IR namespace (6)).
.TF /sys/src/cmd
.TP
.B /
The root of the name space. It is a kernel device,
.IR root (3),
serving a number of local mount points such as
.B /bin
and
.B /dev
as well as the bootstrap program
.BR /boot .
Unioned with
.B /
is the root of the main file server.
.TP
.B /boot
Compiled into the operating system kernel, this file establishes
the connection to the main file server and starts
.BR init ;
see
.IR boot (8)
and
.IR init (8).
.TP
.B /bin
Mounted here is a union directory composed of
.BR /$objtype/bin ,
.BR /rc/bin ,
.BR $home/$objtype/bin ,
etc., so
.B /bin
is always the directory containing the appropriate executables
for the current architecture.
.TP
.B /dev
Mounted here is a union directory containing I/O devices such as the
console
.RI ( cons (3)),
the interface to the raster display
.RI ( draw (3)),
etc.
The window system,
.IR rio (1),
prefixes
this directory with its own version,
overriding many device
files with its own, multiplexed simulations of them.
.TP
.B /env
Mounted here is the environment device,
.IR env (3),
which holds environment variables such as
.BR $cputype .
.TP
.B /net
Mounted here is a union directory formed of all the network devices
available.
.TP
.B /net/cs
The communications point for the connection server,
.B ndb/cs
(see
.IR ndb (8)).
.TP
.B /net/dns
The communications point for the Domain Name Server,
.B ndb/dns
(see
.IR ndb (8)).
.TP
.B /net/tcp
.TP
.B /net/udp
Directories holding the IP protocol devices
(see
.IR ip (3)).
.TP
.B /proc
Mounted here is the process device,
.IR proc (3),
which provides debugging access to active processes.
.TP
.B /fd
Mounted here is the dup device,
.IR dup (3),
which holds pseudonyms for open file descriptors.
.TP
.B /shr
Mounted here is the global mountpoint device,
.IR shr (3),
which holds mounted filesystems visible in all namespaces.
.TP
.B /srv
Mounted here is the service registry,
.IR srv (3),
which holds connections to file servers.
.TP
.B /srv/boot
The communication channel to the main file server for the machine.
.TP
.B /mnt/wsys
Mount point for the window system.
.TP
.B /mnt/term
Mount point for the terminal's name space as seen by the CPU server
after a
.IR cpu (1)
command.
.TP
.B /n/kremvax
A place where machine
.BR kremvax 's
name space may be mounted.
.TP
.B /tmp
Mounted here is each user's private
.B tmp,
.BR $home/tmp .
.SH SEE ALSO
.IR intro (1),
.IR namespace (6)
|