namespace 6.8 KB

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