namespace 6.8 KB

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