File: node38.html

package info (click to toggle)
rutebook 1.0-1
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 9,476 kB
  • ctags: 1,112
  • sloc: makefile: 47
file content (3919 lines) | stat: -rw-r--r-- 126,120 bytes parent folder | download | duplicates (2)
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
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>35. The LINUX File System Standard</TITLE>
<META NAME="description" CONTENT="35. The LINUX File System Standard">
<META NAME="keywords" CONTENT="rute">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="rute.css">

<LINK REL="next" HREF="node39.html">
<LINK REL="previous" HREF="node37.html">
<LINK REL="up" HREF="rute.html">
<LINK REL="next" HREF="node39.html">
</HEAD>

<BODY BGCOLOR=#FFFFFF >
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR><TD align=left bgcolor="#000000">
<FONT COLOR=white>
&nbsp;<A HREF="http://www.icon.co.za/~psheer/rute-purchase.html"><FONT COLOR=white>Purchase</FONT></A>&nbsp;
</FONT>
</TD><TD align=center bgcolor="#000000">
<FONT COLOR=white>
Copyright&nbsp;&#169;&nbsp;2002&nbsp;Paul Sheer. <A HREF="copying.html"><FONT COLOR=white>Click here for copying permissions.</FONT></A>
</FONT>
</TD><TD align=right bgcolor="#000000">
<FONT COLOR=white>
&nbsp;<A HREF="http://www.icon.co.za/~psheer/rute-home.html"><FONT COLOR=white>Home</FONT></A>&nbsp;
</FONT>
</TD></TR>
<TR><TD colspan=2 align=left bgcolor="#ECEBF4">
<IMG SRC="va-btn-small-light-60.png">
</TD><TD align=right bgcolor="#ECEBF4">
<IMG SRC="sflogo2-steel-60.png">
</TD></TR>
</TABLE><BR>

<!--Navigation Panel-->
<A NAME="tex2html2490"
  HREF="node39.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html2486"
  HREF="rute.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html2480"
  HREF="node37.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html2488"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html2491"
  HREF="node39.html">36. httpd  </A>
<B> Up:</B> <A NAME="tex2html2487"
  HREF="rute.html">rute</A>
<B> Previous:</B> <A NAME="tex2html2481"
  HREF="node37.html">34. uucp and uux</A>
 &nbsp <B>  <A NAME="tex2html2489"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html2492"
  HREF="#SECTION003810000000000000000">35.1 Introduction</A>
<UL>
<LI><A NAME="tex2html2493"
  HREF="#SECTION003811000000000000000">35.1.1 Purpose</A>
<LI><A NAME="tex2html2494"
  HREF="#SECTION003812000000000000000">35.1.2 Conventions</A>
</UL>
<LI><A NAME="tex2html2495"
  HREF="#SECTION003820000000000000000">35.2 The Filesystem</A>
<LI><A NAME="tex2html2496"
  HREF="#SECTION003830000000000000000">35.3 The Root Filesystem</A>
<UL>
<LI><A NAME="tex2html2497"
  HREF="#SECTION003831000000000000000">35.3.1 Purpose</A>
<LI><A NAME="tex2html2498"
  HREF="#SECTION003832000000000000000">35.3.2 Requirements</A>
<LI><A NAME="tex2html2499"
  HREF="#SECTION003833000000000000000">35.3.3 Specific Options</A>
<LI><A NAME="tex2html2500"
  HREF="#SECTION003834000000000000000">35.3.4 /bin : Essential user command binaries (for use by all users)</A>
<UL>
<LI><A NAME="tex2html2501"
  HREF="#SECTION003834100000000000000">35.3.4.1 Purpose</A>
<LI><A NAME="tex2html2502"
  HREF="#SECTION003834200000000000000">35.3.4.2 Requirements</A>
<LI><A NAME="tex2html2503"
  HREF="#SECTION003834300000000000000">35.3.4.3 Specific Options</A>
</UL>
<LI><A NAME="tex2html2504"
  HREF="#SECTION003835000000000000000">35.3.5 /boot : Static files of the boot loader</A>
<UL>
<LI><A NAME="tex2html2505"
  HREF="#SECTION003835100000000000000">35.3.5.1 Purpose</A>
<LI><A NAME="tex2html2506"
  HREF="#SECTION003835200000000000000">35.3.5.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2507"
  HREF="#SECTION003836000000000000000">35.3.6 /dev : Device files</A>
<UL>
<LI><A NAME="tex2html2508"
  HREF="#SECTION003836100000000000000">35.3.6.1 Purpose</A>
<LI><A NAME="tex2html2509"
  HREF="#SECTION003836200000000000000">35.3.6.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2510"
  HREF="#SECTION003837000000000000000">35.3.7 /etc : Host-specific system configuration</A>
<UL>
<LI><A NAME="tex2html2511"
  HREF="#SECTION003837100000000000000">35.3.7.1 Purpose</A>
<LI><A NAME="tex2html2512"
  HREF="#SECTION003837200000000000000">35.3.7.2 Requirements</A>
<LI><A NAME="tex2html2513"
  HREF="#SECTION003837300000000000000">35.3.7.3 Specific Options</A>
<LI><A NAME="tex2html2514"
  HREF="#SECTION003837400000000000000">35.3.7.4 /etc/opt : Configuration files for /opt</A>
<UL>
<LI><A NAME="tex2html2515"
  HREF="#SECTION003837410000000000000">35.3.7.4.1 Purpose</A>
<LI><A NAME="tex2html2516"
  HREF="#SECTION003837420000000000000">35.3.7.4.2 Requirements</A>
</UL>
<LI><A NAME="tex2html2517"
  HREF="#SECTION003837500000000000000">35.3.7.5 /etc/X11 : Configuration for the X Window System (optional)</A>
<UL>
<LI><A NAME="tex2html2518"
  HREF="#SECTION003837510000000000000">35.3.7.5.1 Purpose</A>
<LI><A NAME="tex2html2519"
  HREF="#SECTION003837520000000000000">35.3.7.5.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2520"
  HREF="#SECTION003837600000000000000">35.3.7.6 /etc/sgml : Configuration files for SGML and XML (optional)</A>
<UL>
<LI><A NAME="tex2html2521"
  HREF="#SECTION003837610000000000000">35.3.7.6.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2522"
  HREF="#SECTION003838000000000000000">35.3.8 /home : User home directories (optional)</A>
<UL>
<LI><A NAME="tex2html2523"
  HREF="#SECTION003838100000000000000">35.3.8.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2524"
  HREF="#SECTION003839000000000000000">35.3.9 /lib : Essential shared libraries and kernel modules</A>
<UL>
<LI><A NAME="tex2html2525"
  HREF="#SECTION003839100000000000000">35.3.9.1 Purpose</A>
<LI><A NAME="tex2html2526"
  HREF="#SECTION003839200000000000000">35.3.9.2 Requirements</A>
<LI><A NAME="tex2html2527"
  HREF="#SECTION003839300000000000000">35.3.9.3 Specific Options</A>
</UL>
<LI><A NAME="tex2html2528"
  HREF="#SECTION0038310000000000000000">35.3.10 /lib&#60;qual&#62; : Alternate format essential shared libraries (optional)</A>
<UL>
<LI><A NAME="tex2html2529"
  HREF="#SECTION0038310100000000000000">35.3.10.1 Purpose</A>
<LI><A NAME="tex2html2530"
  HREF="#SECTION0038310200000000000000">35.3.10.2 Requirements</A>
</UL>
<LI><A NAME="tex2html2531"
  HREF="#SECTION0038311000000000000000">35.3.11 /mnt : Mount point for a temporarily mounted filesystem</A>
<UL>
<LI><A NAME="tex2html2532"
  HREF="#SECTION0038311100000000000000">35.3.11.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2533"
  HREF="#SECTION0038312000000000000000">35.3.12 /opt : Add-on application software packages</A>
<UL>
<LI><A NAME="tex2html2534"
  HREF="#SECTION0038312100000000000000">35.3.12.1 Purpose</A>
<LI><A NAME="tex2html2535"
  HREF="#SECTION0038312200000000000000">35.3.12.2 Requirements</A>
</UL>
<LI><A NAME="tex2html2536"
  HREF="#SECTION0038313000000000000000">35.3.13 /root : Home directory for the root user (optional)</A>
<UL>
<LI><A NAME="tex2html2537"
  HREF="#SECTION0038313100000000000000">35.3.13.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2538"
  HREF="#SECTION0038314000000000000000">35.3.14 /sbin : System binaries</A>
<UL>
<LI><A NAME="tex2html2539"
  HREF="#SECTION0038314100000000000000">35.3.14.1 Purpose</A>
<LI><A NAME="tex2html2540"
  HREF="#SECTION0038314200000000000000">35.3.14.2 Requirements</A>
<LI><A NAME="tex2html2541"
  HREF="#SECTION0038314300000000000000">35.3.14.3 Specific Options</A>
</UL>
<LI><A NAME="tex2html2542"
  HREF="#SECTION0038315000000000000000">35.3.15 /tmp : Temporary files</A>
<UL>
<LI><A NAME="tex2html2543"
  HREF="#SECTION0038315100000000000000">35.3.15.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2544"
  HREF="#SECTION003840000000000000000">35.4 The /usr Hierarchy</A>
<UL>
<LI><A NAME="tex2html2545"
  HREF="#SECTION003841000000000000000">35.4.1 Purpose</A>
<LI><A NAME="tex2html2546"
  HREF="#SECTION003842000000000000000">35.4.2 Requirements</A>
<LI><A NAME="tex2html2547"
  HREF="#SECTION003843000000000000000">35.4.3 Specific Options</A>
<LI><A NAME="tex2html2548"
  HREF="#SECTION003844000000000000000">35.4.4 /usr/X11R6 : X Window System, Version 11 Release 6 (optional)</A>
<UL>
<LI><A NAME="tex2html2549"
  HREF="#SECTION003844100000000000000">35.4.4.1 Purpose</A>
<LI><A NAME="tex2html2550"
  HREF="#SECTION003844200000000000000">35.4.4.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2551"
  HREF="#SECTION003845000000000000000">35.4.5 /usr/bin : Most user commands</A>
<UL>
<LI><A NAME="tex2html2552"
  HREF="#SECTION003845100000000000000">35.4.5.1 Purpose</A>
<LI><A NAME="tex2html2553"
  HREF="#SECTION003845200000000000000">35.4.5.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2554"
  HREF="#SECTION003846000000000000000">35.4.6 /usr/include : Directory for standard include files.</A>
<UL>
<LI><A NAME="tex2html2555"
  HREF="#SECTION003846100000000000000">35.4.6.1 Purpose</A>
<LI><A NAME="tex2html2556"
  HREF="#SECTION003846200000000000000">35.4.6.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2557"
  HREF="#SECTION003847000000000000000">35.4.7 /usr/lib : Libraries for programming and packages</A>
<UL>
<LI><A NAME="tex2html2558"
  HREF="#SECTION003847100000000000000">35.4.7.1 Purpose</A>
<LI><A NAME="tex2html2559"
  HREF="#SECTION003847200000000000000">35.4.7.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2560"
  HREF="#SECTION003848000000000000000">35.4.8 /usr/lib&#60;qual&#62; : Alternate format libraries (optional)</A>
<UL>
<LI><A NAME="tex2html2561"
  HREF="#SECTION003848100000000000000">35.4.8.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2562"
  HREF="#SECTION003849000000000000000">35.4.9 /usr/local : Local hierarchy</A>
<UL>
<LI><A NAME="tex2html2563"
  HREF="#SECTION003849100000000000000">35.4.9.1 Purpose</A>
<LI><A NAME="tex2html2564"
  HREF="#SECTION003849200000000000000">35.4.9.2 Requirements</A>
<LI><A NAME="tex2html2565"
  HREF="#SECTION003849300000000000000">35.4.9.3 Specific Options</A>
</UL>
<LI><A NAME="tex2html2566"
  HREF="#SECTION0038410000000000000000">35.4.10 /usr/sbin : Non-essential standard system binaries</A>
<UL>
<LI><A NAME="tex2html2567"
  HREF="#SECTION0038410100000000000000">35.4.10.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2568"
  HREF="#SECTION0038411000000000000000">35.4.11 /usr/share : Architecture-independent data</A>
<UL>
<LI><A NAME="tex2html2569"
  HREF="#SECTION0038411100000000000000">35.4.11.1 Purpose</A>
<LI><A NAME="tex2html2570"
  HREF="#SECTION0038411200000000000000">35.4.11.2 Requirements</A>
<LI><A NAME="tex2html2571"
  HREF="#SECTION0038411300000000000000">35.4.11.3 Specific Options</A>
<LI><A NAME="tex2html2572"
  HREF="#SECTION0038411400000000000000">35.4.11.4 /usr/share/dict : Word lists (optional)</A>
<UL>
<LI><A NAME="tex2html2573"
  HREF="#SECTION0038411410000000000000">35.4.11.4.1 Purpose</A>
<LI><A NAME="tex2html2574"
  HREF="#SECTION0038411420000000000000">35.4.11.4.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2575"
  HREF="#SECTION0038411500000000000000">35.4.11.5 /usr/share/man : Manual pages</A>
<UL>
<LI><A NAME="tex2html2576"
  HREF="#SECTION0038411510000000000000">35.4.11.5.1 Purpose</A>
<LI><A NAME="tex2html2577"
  HREF="#SECTION0038411520000000000000">35.4.11.5.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2578"
  HREF="#SECTION0038411600000000000000">35.4.11.6 /usr/share/misc : Miscellaneous architecture-independent data</A>
<UL>
<LI><A NAME="tex2html2579"
  HREF="#SECTION0038411610000000000000">35.4.11.6.1 Specific Options</A>
</UL>
<LI><A NAME="tex2html2580"
  HREF="#SECTION0038411700000000000000">35.4.11.7 /usr/share/sgml : SGML and XML data (optional)</A>
<UL>
<LI><A NAME="tex2html2581"
  HREF="#SECTION0038411710000000000000">35.4.11.7.1 Purpose</A>
<LI><A NAME="tex2html2582"
  HREF="#SECTION0038411720000000000000">35.4.11.7.2 Specific Options</A>
</UL>
</UL>
<LI><A NAME="tex2html2583"
  HREF="#SECTION0038412000000000000000">35.4.12 /usr/src : Source code (optional)</A>
<UL>
<LI><A NAME="tex2html2584"
  HREF="#SECTION0038412100000000000000">35.4.12.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2585"
  HREF="#SECTION003850000000000000000">35.5 The /var Hierarchy</A>
<UL>
<LI><A NAME="tex2html2586"
  HREF="#SECTION003851000000000000000">35.5.1 Purpose</A>
<LI><A NAME="tex2html2587"
  HREF="#SECTION003852000000000000000">35.5.2 Requirements</A>
<LI><A NAME="tex2html2588"
  HREF="#SECTION003853000000000000000">35.5.3 Specific Options</A>
<LI><A NAME="tex2html2589"
  HREF="#SECTION003854000000000000000">35.5.4 /var/account : Process accounting logs (optional)</A>
<UL>
<LI><A NAME="tex2html2590"
  HREF="#SECTION003854100000000000000">35.5.4.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2591"
  HREF="#SECTION003855000000000000000">35.5.5 /var/cache : Application cache data</A>
<UL>
<LI><A NAME="tex2html2592"
  HREF="#SECTION003855100000000000000">35.5.5.1 Purpose</A>
<LI><A NAME="tex2html2593"
  HREF="#SECTION003855200000000000000">35.5.5.2 Specific Options</A>
<LI><A NAME="tex2html2594"
  HREF="#SECTION003855300000000000000">35.5.5.3 /var/cache/fonts : Locally-generated fonts (optional)</A>
<UL>
<LI><A NAME="tex2html2595"
  HREF="#SECTION003855310000000000000">35.5.5.3.1 Purpose</A>
<LI><A NAME="tex2html2596"
  HREF="#SECTION003855320000000000000">35.5.5.3.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2597"
  HREF="#SECTION003855400000000000000">35.5.5.4 /var/cache/man : Locally-formatted manual pages (optional)</A>
<UL>
<LI><A NAME="tex2html2598"
  HREF="#SECTION003855410000000000000">35.5.5.4.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2599"
  HREF="#SECTION003856000000000000000">35.5.6 /var/crash : System crash dumps (optional)</A>
<UL>
<LI><A NAME="tex2html2600"
  HREF="#SECTION003856100000000000000">35.5.6.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2601"
  HREF="#SECTION003857000000000000000">35.5.7 /var/games : Variable game data (optional)</A>
<UL>
<LI><A NAME="tex2html2602"
  HREF="#SECTION003857100000000000000">35.5.7.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2603"
  HREF="#SECTION003858000000000000000">35.5.8 /var/lib : Variable state information</A>
<UL>
<LI><A NAME="tex2html2604"
  HREF="#SECTION003858100000000000000">35.5.8.1 Purpose</A>
<LI><A NAME="tex2html2605"
  HREF="#SECTION003858200000000000000">35.5.8.2 Requirements</A>
<LI><A NAME="tex2html2606"
  HREF="#SECTION003858300000000000000">35.5.8.3 Specific Options</A>
<LI><A NAME="tex2html2607"
  HREF="#SECTION003858400000000000000">35.5.8.4 /var/lib/&#60;editor&#62; : Editor backup files and state (optional)</A>
<UL>
<LI><A NAME="tex2html2608"
  HREF="#SECTION003858410000000000000">35.5.8.4.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2609"
  HREF="#SECTION003858500000000000000">35.5.8.5 /var/lib/hwclock : State directory for hwclock (optional)</A>
<UL>
<LI><A NAME="tex2html2610"
  HREF="#SECTION003858510000000000000">35.5.8.5.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2611"
  HREF="#SECTION003858600000000000000">35.5.8.6 /var/lib/misc : Miscellaneous variable data</A>
<UL>
<LI><A NAME="tex2html2612"
  HREF="#SECTION003858610000000000000">35.5.8.6.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2613"
  HREF="#SECTION003859000000000000000">35.5.9 /var/lock : Lock files</A>
<UL>
<LI><A NAME="tex2html2614"
  HREF="#SECTION003859100000000000000">35.5.9.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2615"
  HREF="#SECTION0038510000000000000000">35.5.10 /var/log : Log files and directories</A>
<UL>
<LI><A NAME="tex2html2616"
  HREF="#SECTION0038510100000000000000">35.5.10.1 Purpose</A>
<LI><A NAME="tex2html2617"
  HREF="#SECTION0038510200000000000000">35.5.10.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2618"
  HREF="#SECTION0038511000000000000000">35.5.11 /var/mail : User mailbox files (optional)</A>
<UL>
<LI><A NAME="tex2html2619"
  HREF="#SECTION0038511100000000000000">35.5.11.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2620"
  HREF="#SECTION0038512000000000000000">35.5.12 /var/opt : Variable data for /opt</A>
<UL>
<LI><A NAME="tex2html2621"
  HREF="#SECTION0038512100000000000000">35.5.12.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2622"
  HREF="#SECTION0038513000000000000000">35.5.13 /var/run : Run-time variable data</A>
<UL>
<LI><A NAME="tex2html2623"
  HREF="#SECTION0038513100000000000000">35.5.13.1 Purpose</A>
<LI><A NAME="tex2html2624"
  HREF="#SECTION0038513200000000000000">35.5.13.2 Requirements</A>
</UL>
<LI><A NAME="tex2html2625"
  HREF="#SECTION0038514000000000000000">35.5.14 /var/spool : Application spool data</A>
<UL>
<LI><A NAME="tex2html2626"
  HREF="#SECTION0038514100000000000000">35.5.14.1 Purpose</A>
<LI><A NAME="tex2html2627"
  HREF="#SECTION0038514200000000000000">35.5.14.2 Specific Options</A>
<LI><A NAME="tex2html2628"
  HREF="#SECTION0038514300000000000000">35.5.14.3 /var/spool/lpd : Line-printer daemon print queues (optional)</A>
<UL>
<LI><A NAME="tex2html2629"
  HREF="#SECTION0038514310000000000000">35.5.14.3.1 Purpose</A>
<LI><A NAME="tex2html2630"
  HREF="#SECTION0038514320000000000000">35.5.14.3.2 Specific Options</A>
</UL>
<LI><A NAME="tex2html2631"
  HREF="#SECTION0038514400000000000000">35.5.14.4 /var/spool/rwho : Rwhod files (optional)</A>
<UL>
<LI><A NAME="tex2html2632"
  HREF="#SECTION0038514410000000000000">35.5.14.4.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2633"
  HREF="#SECTION0038515000000000000000">35.5.15 /var/tmp : Temporary files preserved between system reboots</A>
<UL>
<LI><A NAME="tex2html2634"
  HREF="#SECTION0038515100000000000000">35.5.15.1 Purpose</A>
</UL>
<LI><A NAME="tex2html2635"
  HREF="#SECTION0038516000000000000000">35.5.16 /var/yp : Network Information Service (NIS) database files (optional)</A>
<UL>
<LI><A NAME="tex2html2636"
  HREF="#SECTION0038516100000000000000">35.5.16.1 Purpose</A>
</UL>
</UL>
<LI><A NAME="tex2html2637"
  HREF="#SECTION003860000000000000000">35.6 Operating System Specific Annex</A>
<UL>
<LI><A NAME="tex2html2638"
  HREF="#SECTION003861000000000000000">35.6.1 Linux</A>
<UL>
<LI><A NAME="tex2html2639"
  HREF="#SECTION003861100000000000000">35.6.1.1 / : Root directory</A>
<LI><A NAME="tex2html2640"
  HREF="#SECTION003861200000000000000">35.6.1.2 /bin : Essential user command binaries (for use by all users)</A>
<LI><A NAME="tex2html2641"
  HREF="#SECTION003861300000000000000">35.6.1.3 /dev : Devices and special files</A>
<LI><A NAME="tex2html2642"
  HREF="#SECTION003861400000000000000">35.6.1.4 /etc : Host-specific system configuration</A>
<LI><A NAME="tex2html2643"
  HREF="#SECTION003861500000000000000">35.6.1.5 /proc : Kernel and process information virtual filesystem</A>
<LI><A NAME="tex2html2644"
  HREF="#SECTION003861600000000000000">35.6.1.6 /sbin : Essential system binaries</A>
<LI><A NAME="tex2html2645"
  HREF="#SECTION003861700000000000000">Optional files for /sbin:</A>
<LI><A NAME="tex2html2646"
  HREF="#SECTION003861800000000000000">35.6.1.7 /usr/include : Header files included by C programs</A>
<LI><A NAME="tex2html2647"
  HREF="#SECTION003861900000000000000">35.6.1.8 /usr/src : Source code</A>
<LI><A NAME="tex2html2648"
  HREF="#SECTION0038611000000000000000">35.6.1.9 /var/spool/cron : cron and at jobs</A>
</UL>
</UL>
<LI><A NAME="tex2html2649"
  HREF="#SECTION003870000000000000000">35.7 Appendix</A>
<UL>
<LI><A NAME="tex2html2650"
  HREF="#SECTION003871000000000000000">35.7.1 The FHS mailing list</A>
<LI><A NAME="tex2html2651"
  HREF="#SECTION003872000000000000000">35.7.2 Background of the FHS</A>
<LI><A NAME="tex2html2652"
  HREF="#SECTION003873000000000000000">35.7.3 General Guidelines</A>
<LI><A NAME="tex2html2653"
  HREF="#SECTION003874000000000000000">35.7.4 Scope</A>
<LI><A NAME="tex2html2654"
  HREF="#SECTION003875000000000000000">35.7.5 Acknowledgments</A>
<LI><A NAME="tex2html2655"
  HREF="#SECTION003876000000000000000">35.7.6 Contributors</A>
</UL></UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION003800000000000000000">
35. The L<SMALL>INUX</SMALL> File System Standard</A>
</H1>

<P>
<A NAME="chap:linuxfilestand"></A>
<P>
This chapter reproduces the <I>Filesystem Hierarchy Standard</I>,
translated into L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X with some minor formatting changes and the addition
of this book's chapter number to all the section headers. An original can
be obtained from <EM>the FHS home page</EM> <I>&lt;<TT><A NAME="tex2html49"
  HREF="http://www.pathname.com/fhs/">http://www.pathname.com/fhs/</A></TT>&gt;</I>.

<P>
If you have ever asked the questions ``Where in my file system does file
<I>xxx</I> go?'' or ``What is directory <I>yyy</I> for?'', then consult this
document. It can be considered to provide the final word on such
matters. Although this is mostly a reference for people creating
new L<SMALL>INUX</SMALL>
distributions, all administrators can benefit from an understanding of the
rulings and explanations provided here.
<BR>

<P>


<P>
<HR>

<P>
&nbsp; &nbsp; 
<BR>
<P>

<P>


<P>
<DIV ALIGN="CENTER">
<FONT SIZE="+2"><B>Filesystem Hierarchy Standard -- Version 2.2 final</B></FONT>
</DIV>
<P>
<DIV ALIGN="CENTER">
</DIV>
<P>
<DIV ALIGN="CENTER">Filesystem Hierarchy Standard Group
</DIV>
<P>
<DIV ALIGN="CENTER">
</DIV>
<P>
<DIV ALIGN="CENTER"><I>edited by Rusty Russell and Daniel Quinlan</I>
</DIV>
<P>
<DIV ALIGN="CENTER">
</DIV>
<P>
<DIV ALIGN="CENTER">
</DIV>

<P>


<P>
<P>
<BLOCKQUOTE><I>ABSTRACT</I>
</BLOCKQUOTE>
<P>
<P>
<BLOCKQUOTE> This standard consists of a set of requirements and guidelines for file
and directory placement under U<SMALL>NIX</SMALL>-like operating systems.  The
guidelines are intended to support interoperability of applications,
system administration tools, development tools, and scripts as well as
greater uniformity of documentation for these systems.

</BLOCKQUOTE>

<P>
<B>May 23, 2001</B>

<P>

<P>
All trademarks and copyrights are owned by their owners, unless specifically
noted otherwise.  Use of a term in this document should not be regarded
as affecting the validity of any trademark or service mark.

<P>


<P>
Copyright &#169; 1994-2000 Daniel Quinlan

<P>
Copyright &#169; 2001 Paul `Rusty' Russell

<P>
Permission is granted to make and distribute verbatim copies of this
standard provided the copyright and this permission notice are preserved
on all copies.

<P>
Permission is granted to copy and distribute modified versions of this
standard under the conditions for verbatim copying, provided also that
the title page is labeled as modified including a reference to the
original standard, provided that information on retrieving the original
standard is included, and provided that the entire resulting derived
work is distributed under the terms of a permission notice identical to
this one.

<P>
Permission is granted to copy and distribute translations of this
standard into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
translation approved by the copyright holder.

<P>

<P>
 

<P>

<P>

<H1><A NAME="SECTION003810000000000000000">
35.1 Introduction</A>
</H1>

<P>

<H2><A NAME="SECTION003811000000000000000">
35.1.1 Purpose</A>
</H2>

<P>
This standard enables

<UL>
<LI>Software to predict the location of installed files and directories, and
</LI>
<LI>Users to predict the location of installed files and directories.
</LI>
</UL>

<P>
We do this by

<UL>
<LI>Specifying guiding principles for each area of the filesystem,
</LI>
<LI>Specifying the minimum files and directories required,
</LI>
<LI>Enumerating exceptions to the principles, and
</LI>
<LI>Enumerating specific cases where there has been historical conflict.
</LI>
</UL>

<P>
The FHS document is used by

<UL>
<LI>Independent software suppliers to create applications which are FHS
compliant, and work with distributions which are FHS complaint,
</LI>
<LI>OS creators to provide systems which are FHS compliant, and
</LI>
<LI>Users to understand and maintain the FHS compliance of a system.
</LI>
</UL>

<P>

<H2><A NAME="SECTION003812000000000000000">
35.1.2 Conventions</A>
</H2>

<P>
A constant-width font is used for displaying the names of files and
directories.

<P>
Components of filenames that vary are represented by a description of
the contents enclosed in "<TT>&#60;</TT>" and "<TT>&#62;</TT>" characters,
<TT>&#60;thus&#62;</TT>.  Electronic mail addresses are also enclosed in "&#60;" and
"&#62;" but are shown in the usual typeface.

<P>
Optional components of filenames are enclosed in "<TT>[</TT>" and
"<TT>]</TT>" characters and may be combined with the "<TT>&#60;</TT>" and
"<TT>&#62;</TT>" convention.  For example, if a filename is allowed to occur
either with or without an extension, it might be represented by
<TT>&#60;filename&#62;[.&#60;extension&#62;]</TT>.

<P>
Variable substrings of directory names and filenames are indicated by
"<TT>*</TT>".

<P>

<H1><A NAME="SECTION003820000000000000000">
35.2 The Filesystem</A>
</H1>

<P>
This standard assumes that the operating system underlying an
FHS-compliant file system supports the same basic security features
found in most U<SMALL>NIX</SMALL> filesystems.

<P>
It is possible to define two independent categories of files: shareable
vs. unshareable and variable vs. static.  There should be a simple and
easily understandable mapping from directories to the type of data they contain: directories
may be mount points for other filesystems with different characteristics
from the filesystem on which they are mounted.

<P>
Shareable data is that which can be shared between several different
hosts; unshareable is that which must be specific to a particular host.
For example, user home directories are shareable data, but device lock
files are not.

<P>
Static data includes binaries, libraries, documentation, and anything
that does not change without system administrator intervention; variable
data is anything else that does change without system administrator
intervention.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The distinction between shareable and unshareable data is needed for
several reasons:

<UL>
<LI>In a networked environment (i.e., more than one host at a site), there
is a good deal of data that can be shared between different hosts to
save space and ease the task of maintenance.
</LI>
<LI>In a networked environment, certain files contain information specific
to a single host.  Therefore these filesystems cannot be shared
(without taking special measures).
</LI>
<LI>Historical implementations of U<SMALL>NIX</SMALL>-like filesystems interspersed
shareable and unshareable data in the same hierarchy, making it
difficult to share large portions of the filesystem.
</LI>
</UL>

<P>
The "shareable" distinction can be used to support, for example:

<UL>
<LI>A <TT>/usr</TT> partition (or components of <TT>/usr</TT>) mounted
(read-only) through the network (using NFS).
</LI>
<LI>A <TT>/usr</TT> partition (or components of <TT>/usr</TT>) mounted from
read-only media.  A CD-ROM is one copy of many identical ones
distributed to other users by the postal mail system and other methods.
It can thus be regarded as a read-only filesystem shared with other
FHS-compliant systems by some kind of "network".
</LI>
</UL>

<P>
The "static" versus "variable" distinction affects the filesystem in two
major ways:

<UL>
<LI>Since <TT>/</TT> contains both variable and static data, it needs to be mounted
read-write.
</LI>
<LI>Since the traditional <TT>/usr</TT> contains both variable and static data, and
since we may want to mount it read-only (see above), it is necessary to
provide a method to have <TT>/usr</TT> mounted read-only.  This is done through
the creation of a <TT>/var</TT> hierarchy that is mounted read-write (or is a
part of another read-write partition, such as <TT>/)</TT>, taking over much of
the <TT>/usr</TT> partition's traditional functionality.
</LI>
</UL>

<P>
Here is a summarizing chart.  This chart is only an example for a common
FHS-compliant system, other chart layouts are possible within
FHS-compliance.

<P>
<IMG
 WIDTH="330" HEIGHT="141" ALIGN="BOTTOM" BORDER="0"
 SRC="img33.png"
 ALT="\begin{longtable}[c]{\vert l \vert l \vert l \vert}
\hline
&amp; shareable &amp; unshar...
.../var/mail &amp; /var/run\\
&amp; /var/spool/news &amp; /var/lock\\
\hline
\end{longtable}">
<BR>
<BR>

<P>
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H1><A NAME="SECTION003830000000000000000">
35.3 The Root Filesystem</A>
</H1>

<P>

<H2><A NAME="SECTION003831000000000000000">
35.3.1 Purpose</A>
</H2>
The contents of the root filesystem must be adequate to boot, restore,
recover, and/or repair the system.

<UL>
<LI>To boot a system, enough must be present on the root partition to mount
other filesystems.  This includes utilities, configuration, boot loader
information, and other essential start-up data.  <TT>/usr</TT>,
<TT>/opt</TT>, and <TT>/var</TT> are designed such that they may be
located on other partitions or filesystems.
</LI>
<LI>To enable recovery and/or repair of a system, those utilities needed by
an experienced maintainer to diagnose and reconstruct a damaged system
must be present on the root filesystem.
</LI>
<LI>To restore a system, those utilities needed to restore from system
backups (on floppy, tape, etc.) must be present on the root
filesystem.
</LI>
</UL>

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI><P>
The primary concern used to balance these considerations, which favor
placing many things on the root filesystem, is the goal of keeping
root as small as reasonably possible.  For several reasons, it is
desirable to keep the root filesystem small:

<UL>
<LI>It is occasionally mounted from very small media.
</LI>
<LI>The root filesystem contains many system-specific configuration files.
Possible examples include a kernel that is specific to the system, a
specific hostname, etc.  This means that the root filesystem isn't
always shareable between networked systems.  Keeping it small on servers
in networked systems minimizes the amount of lost space for areas of
unshareable files.  It also allows workstations with smaller local hard
drives.
</LI>
<LI>While you may have the root filesystem on a large partition, and may be
able to fill it to your heart's content, there will be people with
smaller partitions.  If you have more files installed, you may find
incompatibilities with other systems using root filesystems on smaller
partitions.  If you are a developer then you may be turning your
assumption into a problem for a large number of users.
</LI>
<LI>Disk errors that corrupt data on the root filesystem are a greater
problem than errors on any other partition.  A small root filesystem is
less prone to corruption as the result of a system crash.
</LI>
</UL>

<P>
Software must never create or require special files or subdirectories
in the root directory.  Other locations in the FHS hierarchy provide
more than enough flexibility for any package.

<P>
There are several reasons why introducing a new subdirectory of the root
filesystem is prohibited:

<UL>
<LI>It demands space on a root partition which the system administrator may
want kept small and simple for either performance or security reasons.
</LI>
<LI>It evades whatever discipline the system administrator may have set up
for distributing standard file hierarchies across mountable volumes.
</LI>
</UL>
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION003832000000000000000">
35.3.2 Requirements</A>
</H2>
The following directories, or symbolic links to directories, are required in <TT>/</TT>.

<P>
<IMG
 WIDTH="470" HEIGHT="372" ALIGN="BOTTOM" BORDER="0"
 SRC="img34.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/} &amp; \multicolumn{2}{l}{--------- the ro...
...rarchy \\
~ &amp; \speciallcorner{}{\tt {}~var} &amp; Variable data \\
\end{longtable}">
<BR>
<BR>

<P>
Each directory listed above is specified in detail in separate
subsections below.  <TT>/usr</TT> and <TT>/var</TT> each have a complete
section in this document due to the complexity of those directories.

<P>

<H2><A NAME="SECTION003833000000000000000">
35.3.3 Specific Options</A>
</H2>
The following directories, or symbolic links to directories, must be in <TT>/</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="529" HEIGHT="147" ALIGN="BOTTOM" BORDER="0"
 SRC="img35.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/} &amp; \multicolumn{2}{l}{--------- the ro...
...}{\tt {}~root} &amp; Home directory for the root user (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
Each directory listed above is specified in detail in separate
subsections below.

<P>

<H2><A NAME="SECTION003834000000000000000">
35.3.4 /bin : Essential user command binaries (for use by all users)</A>
</H2>

<P>

<H3><A NAME="SECTION003834100000000000000">
35.3.4.1 Purpose</A>
</H3>
<TT>/bin</TT> contains commands that may be used by both the system
administrator and by users, but which are required when no other
filesystems are mounted (e.g. in single user mode).  It may also contain
commands which are used indirectly by scripts.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Command binaries that are not essential enough to place into
<TT>/bin</TT> must be placed in <TT>/usr/bin</TT>, instead.  Items that
are required only by non-root users (the X Window System, <TT>chsh</TT>,
etc.) are generally not essential enough to be placed into the root
partition.
]</FONT>
<P>

<H3><A NAME="SECTION003834200000000000000">
35.3.4.2 Requirements</A>
</H3>
There must be no subdirectories in <TT>/bin</TT>.

<P>
The following commands, or symbolic links to commands, are required in <TT>/bin</TT>.

<P>
<IMG
 WIDTH="454" HEIGHT="673" ALIGN="BOTTOM" BORDER="0"
 SRC="img36.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}cat} &amp; Utility to concatenate files to standard...
...tems \\
{\tt {}uname} &amp; Utility to print system information \\
\end{longtable}">
<BR>
<BR>

<P>
If <TT>/bin/sh</TT> is not a true Bourne shell, it must be a hard or
symbolic link to the real shell command.

<P>
The <TT>[</TT> and <TT>test</TT> commands must be placed together in
either <TT>/bin</TT> or <TT>/usr/bin</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>For example bash behaves differently when called as <TT>sh</TT> or
<TT>bash</TT>.  The use of a symbolic link also allows users to easily
see that <TT>/bin/sh</TT> is not a true Bourne shell.

<P>
The requirement for the <TT>[</TT> and <TT>test</TT> commands to be
included as binaries (even if implemented internally by the shell) is shared with the POSIX.2 standard.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION003834300000000000000">
35.3.4.3 Specific Options</A>
</H3>
The following programs, or symbolic links to programs, must be in <TT>/bin</TT> if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="385" HEIGHT="215" ALIGN="BOTTOM" BORDER="0"
 SRC="img37.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}csh} &amp; The C shell (optional) \\
{\tt {}ed} &amp; ...
... \\
{\tt {}ping} &amp; The ICMP network test utility (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
If the gunzip and zcat programs exist, they must be symbolic or hard
links to gzip. <TT>/bin/csh</TT> may be a symbolic link to
<TT>/bin/tcsh</TT> or <TT>/usr/bin/tcsh</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The tar, gzip and cpio commands have been added to make restoration of a
system possible (provided that <TT>/</TT> is intact).

<P>
Conversely, if no restoration from the root partition is ever expected,
then these binaries might be omitted (e.g., a ROM chip root, mounting
<TT>/usr</TT> through NFS).  If restoration of a system is planned
through the network, then <TT>ftp</TT> or <TT>tftp</TT> (along with
everything necessary to get an ftp connection) must be available on
the root partition.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION003835000000000000000">
35.3.5 /boot : Static files of the boot loader</A>
</H2>

<P>

<H3><A NAME="SECTION003835100000000000000">
35.3.5.1 Purpose</A>
</H3>
This directory contains everything required for the boot process except
configuration files and the map installer.  Thus <TT>/boot</TT> stores
data that is used before the kernel begins executing user-mode
programs.  This may include saved master boot sectors, sector map files,
and other data that is not directly edited by hand.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Programs necessary to arrange for the boot loader to be able to
boot a file must be placed in <TT>/sbin</TT>.  Configuration files for
boot loaders must be placed in <TT>/etc</TT>.
]</FONT>
<P>

<H3><A NAME="SECTION003835200000000000000">
35.3.5.2 Specific Options</A>
</H3>
The operating system kernel must be located in either <TT>/</TT> or
<TT>/boot</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[On some i386 machines, it may be necessary for <TT>/boot</TT> to be
located on a separate partition located completely below cylinder 1024
of the boot device due to hardware constraints.

<P>
Certain MIPS systems require a <TT>/boot</TT> partition that is a mounted
MS-DOS filesystem or whatever other filesystem type is accessible for
the firmware.  This may result in restrictions with respect to usable
filenames within <TT>/boot</TT> (only for affected systems).
]</FONT>
<P>

<H2><A NAME="SECTION003836000000000000000">
35.3.6 /dev : Device files</A>
</H2>

<P>

<H3><A NAME="SECTION003836100000000000000">
35.3.6.1 Purpose</A>
</H3>
The <TT>/dev</TT> directory is the location of special or device files.

<P>

<H3><A NAME="SECTION003836200000000000000">
35.3.6.2 Specific Options</A>
</H3>

<P>
If it is possible that devices in <TT>/dev</TT> will need to be manually
created, <TT>/dev</TT> must contain a command named <TT>MAKEDEV</TT>,
which can create devices as needed.  It may also contain a
<TT>MAKEDEV.local</TT> for any local devices.

<P>
If required, <TT>MAKEDEV</TT> must have provisions for creating any
device that may be found on the system, not just those that a particular
implementation installs.

<P>

<H2><A NAME="SECTION003837000000000000000">
35.3.7 /etc : Host-specific system configuration</A>
</H2>

<P>

<H3><A NAME="SECTION003837100000000000000">
35.3.7.1 Purpose</A>
</H3>
<TT>/etc</TT> contains configuration files and directories that are
specific to the current system.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[The setup of command scripts invoked at boot time may resemble
System V, BSD or other models.  Further specification in this area
may be added to a future version of this standard.
]</FONT>
<P>

<H3><A NAME="SECTION003837200000000000000">
35.3.7.2 Requirements</A>
</H3>
No binaries may be located under <TT>/etc</TT>.

<P>
The following directories, or symbolic links to directories are required in <TT>/etc</TT>:

<P>
<IMG
 WIDTH="351" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img38.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/etc} &amp; \multicolumn{2}{l}{--------- Hos...
...
~ &amp; \speciallcorner{}{\tt {}~opt} &amp; Configuration for /opt \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION003837300000000000000">
35.3.7.3 Specific Options</A>
</H3>

<P>
The following directories, or symbolic links to directories must be in <TT>/etc</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="493" HEIGHT="119" ALIGN="BOTTOM" BORDER="0"
 SRC="img39.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/etc} &amp; \multicolumn{2}{l}{--------- Hos...
...r{}{\tt {}~sgml} &amp; Configuration for SGML and XML (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
The following files, or symbolic links to files, must be in <TT>/etc</TT> if the corresponding
subsystem is installed:<FONT COLOR="#ffa500">(footnote follows)</FONT>

<P>
<IMG
 WIDTH="600" HEIGHT="635" ALIGN="BOTTOM" BORDER="0"
 SRC="img40.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}csh.login} &amp; Systemwide initialization file for...
...t {}syslog.conf} &amp; Configuration file for syslogd (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
 <FONT COLOR="#ffa500">[Systems that use the shadow password suite will have additional
configuration files in <TT>/etc</TT> (<TT>/etc/shadow</TT> and others) and
programs in <TT>/usr/sbin</TT> (<TT>useradd</TT>, <TT>usermod</TT>, and
others).
]</FONT>
<P>
mtab does not fit the static nature of <TT>/etc</TT>: it is excepted for
historical reasons.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[On some Linux systems, this may be a symbolic link to
<TT>/proc/mounts</TT>, in which case this exception is not required.
]</FONT>
<P>

<H3><A NAME="SECTION003837400000000000000">
35.3.7.4 /etc/opt : Configuration files for /opt</A>
</H3>

<P>

<H4><A NAME="SECTION003837410000000000000">
35.3.7.4.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
Host-specific configuration files for add-on application software
packages must be installed within the directory
<TT>/etc/opt/&#60;package&#62;</TT>, where <TT>&#60;package&#62;</TT> is the name of the
subtree in <TT>/opt</TT> where the static data from that package is
stored.

<P>

<H4><A NAME="SECTION003837420000000000000">
35.3.7.4.2 Requirements</A>
</H4>
<P>
&nbsp;
<P>
No structure is imposed on the internal arrangement of
<TT>/etc/opt/&#60;package&#62;</TT>.

<P>
If a configuration file must reside in a different location in order for
the package or system to function properly, it may be placed in a
location other than <TT>/etc/opt/&#60;package&#62;</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>Refer to the rationale for <TT>/opt</TT>.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION003837500000000000000">
35.3.7.5 /etc/X11 : Configuration for the X Window System (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION003837510000000000000">
35.3.7.5.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
<TT>/etc/X11</TT> is the location for all X11 host-specific
configuration.  This directory is necessary to allow local control if
<TT>/usr</TT> is mounted read only.

<P>

<H4><A NAME="SECTION003837520000000000000">
35.3.7.5.2 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
The following files, or symbolic links to files, must be in <TT>/etc/X11</TT> if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="543" HEIGHT="100" ALIGN="BOTTOM" BORDER="0"
 SRC="img41.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}Xconfig} &amp; The configuration file for early ver...
...}Xmodmap} &amp; Global X11 keyboard modification file (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
Subdirectories of <TT>/etc/X11</TT> may include those for <TT>xdm</TT> and
for any other programs (some window managers, for example) that need
them.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[<TT>/etc/X11/xdm</TT> holds the configuration files for <TT>xdm</TT>.
These are most of the files previously found in <TT>/usr/lib/X11/xdm</TT>.
Some local variable data for <TT>xdm</TT> is stored in
<TT>/var/lib/xdm</TT>.
]</FONT>We recommend that window managers with only one configuration
file which is a default <TT>.*wmrc</TT> file must name it
<TT>system.*wmrc</TT> (unless there is a widely-accepted alternative
name) and not use a subdirectory.  Any window manager subdirectories
must be identically named to the actual window manager binary.

<P>

<H3><A NAME="SECTION003837600000000000000">
35.3.7.6 /etc/sgml : Configuration files for SGML and XML (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION003837610000000000000">
35.3.7.6.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
Generic configuration files defining high-level parameters of the SGML
or XML systems are installed here.  Files with names <TT>*.conf</TT>
indicate generic configuration files.  File with names <TT>*.cat</TT> are
the DTD-specific centralized catalogs, containing references to all
other catalogs needed to use the given DTD.  The super catalog file
<TT>catalog</TT> references all the centralized catalogs.

<P>

<H2><A NAME="SECTION003838000000000000000">
35.3.8 /home : User home directories (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION003838100000000000000">
35.3.8.1 Purpose</A>
</H3>
<TT>/home</TT> is a fairly standard concept, but it is clearly a
site-specific filesystem.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Different people prefer to place user accounts in a variety of places.
This section describes only a suggested placement for user home
directories; nevertheless we recommend that all FHS-compliant
distributions use this as the default location for home directories.

<P>
On small systems, each user's directory is typically one of the many
subdirectories of <TT>/home</TT> such as <TT>/home/smith</TT>,
<TT>/home/torvalds</TT>, <TT>/home/operator</TT>, etc.
On large systems (especially when the <TT>/home</TT> directories are
shared amongst many hosts using NFS) it is useful to subdivide user home
directories.  Subdivision may be accomplished by using subdirectories
such as <TT>/home/staff</TT>, <TT>/home/guests</TT>,
<TT>/home/students</TT>, etc.
]</FONT>The setup will differ from host to host.
Therefore, no program should rely on this location.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[If you want to find out a user's home directory, you should use the
<TT>getpwent(3)</TT> library function rather than relying on
<TT>/etc/passwd</TT> because user information may be stored remotely
using systems such as NIS.
]</FONT>
<P>

<H2><A NAME="SECTION003839000000000000000">
35.3.9 /lib : Essential shared libraries and kernel modules</A>
</H2>

<P>

<H3><A NAME="SECTION003839100000000000000">
35.3.9.1 Purpose</A>
</H3>
The <TT>/lib</TT> directory contains those shared library images needed
to boot the system and run the commands in the root filesystem, ie. by
binaries in <TT>/bin</TT> and <TT>/sbin</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Shared libraries that are only necessary for binaries in <TT>/usr</TT>
(such as any X Window binaries) must not be in <TT>/lib</TT>. Only
the shared libraries required to run binaries in <TT>/bin</TT> and
<TT>/sbin</TT> may be here.  In particular, the library <TT>libm.so.*</TT> may also
be placed in <TT>/usr/lib</TT> if it is not required by anything in
<TT>/bin</TT> or <TT>/sbin</TT>.
]</FONT>
<P>

<H3><A NAME="SECTION003839200000000000000">
35.3.9.2 Requirements</A>
</H3>
At least one of each of the following filename patterns are required
(they may be files, or symbolic links):

<P>
<IMG
 WIDTH="410" HEIGHT="81" ALIGN="BOTTOM" BORDER="0"
 SRC="img42.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}libc.so.*} &amp; The dynamically-linked C library (...
...\
{\tt {}ld*} &amp; The execution time linker/loader (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
If a C preprocessor is installed, <TT>/lib/cpp</TT> must be a reference
to it, for historical reasons.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[The usual placement of this binary is
<TT>/usr/lib/gcc-lib/&#60;target&#62;/&#60;version&#62;/cpp</TT>.  <TT>/lib/cpp</TT> can
either point at this binary, or at any other reference to this binary
which exists in the filesystem.  (For example, <TT>/usr/bin/cpp</TT> is
also often used.)
]</FONT>
<P>

<H3><A NAME="SECTION003839300000000000000">
35.3.9.3 Specific Options</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/lib</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="425" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img43.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/lib} &amp; \multicolumn{2}{l}{--------- ess...
...orner{}{\tt {}~modules} &amp; Loadable kernel modules (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H2><A NAME="SECTION0038310000000000000000">
35.3.10 /lib&#60;qual&#62; : Alternate format essential shared libraries (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION0038310100000000000000">
35.3.10.1 Purpose</A>
</H3>
There may be one or more variants of the <TT>/lib</TT> directory on
systems which support more than one binary format requiring separate
libraries.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[This is commonly used for 64-bit or 32-bit support on systems which
support multiple binary formats, but require libraries of the same name.
In this case, <TT>/lib32</TT> and <TT>/lib64</TT> might be the library
directories, and <TT>/lib</TT> a symlink to one of them.
]</FONT>
<P>

<H3><A NAME="SECTION0038310200000000000000">
35.3.10.2 Requirements</A>
</H3>
If one or more of these directories exist, the requirements for their
contents are the same as the normal <TT>/lib</TT> directory, except that
<TT>/lib&#60;qual&#62;/cpp</TT> is not required.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[<TT>/lib&#60;qual&#62;/cpp</TT> is still permitted: this allows the case where
<TT>/lib</TT> and <TT>/lib&#60;qual&#62;</TT> are the same (one is a symbolic link
to the other).
]</FONT>
<P>

<H2><A NAME="SECTION0038311000000000000000">
35.3.11 /mnt : Mount point for a temporarily mounted filesystem</A>
</H2>

<P>

<H3><A NAME="SECTION0038311100000000000000">
35.3.11.1 Purpose</A>
</H3>
This directory is provided so that the system administrator may
temporarily mount a filesystem as needed.  The content of this directory
is a local issue and should not affect the manner in which any program
is run.

<P>
This directory must not be used by installation programs: a suitable
temporary directory not in use by the system must be used instead.

<P>

<H2><A NAME="SECTION0038312000000000000000">
35.3.12 /opt : Add-on application software packages</A>
</H2>

<P>

<H3><A NAME="SECTION0038312100000000000000">
35.3.12.1 Purpose</A>
</H3>
<TT>/opt</TT> is reserved for the installation of add-on application
software packages.

<P>
A package to be installed in <TT>/opt</TT> must locate its static files
in a separate <TT>/opt/&#60;package&#62;</TT> directory tree, where
<TT>&#60;package&#62;</TT> is a name that describes the software package.

<P>

<H3><A NAME="SECTION0038312200000000000000">
35.3.12.2 Requirements</A>
</H3>

<P>
<IMG
 WIDTH="378" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img44.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/opt} &amp; \multicolumn{2}{l}{--------- Add...
...}~\textless{}package\textgreater{}} &amp; Static package objects \\
\end{longtable}">
<BR>
<BR>

<P>
The directories <TT>/opt/bin</TT>, <TT>/opt/doc</TT>,
<TT>/opt/include</TT>, <TT>/opt/info</TT>, <TT>/opt/lib</TT>, and
<TT>/opt/man</TT> are reserved for local system administrator use.
Packages may provide "front-end" files intended to be placed in (by
linking or copying) these reserved directories by the local system
administrator, but must function normally in the absence of these
reserved directories.

<P>
Programs to be invoked by users must be located in the directory
<TT>/opt/&#60;package&#62;/bin</TT>. If the package includes U<SMALL>NIX</SMALL> manual pages,
they must be located in <TT>/opt/&#60;package&#62;/man</TT> and the same
substructure as <TT>/usr/share/man</TT> must be used.

<P>
Package files that are variable (change in normal operation) must be
installed in <TT>/var/opt</TT>.  See the section on <TT>/var/opt</TT> for
more information.

<P>
Host-specific configuration files must be installed in
<TT>/etc/opt</TT>.  See the section on <TT>/etc</TT> for more information.

<P>
No other package files may exist outside the <TT>/opt</TT>,
<TT>/var/opt</TT>, and <TT>/etc/opt</TT> hierarchies except for those
package files that must reside in specific locations within the
filesystem tree in order to function properly.  For example, device lock
files must be placed in <TT>/var/lock</TT> and devices must be located in
<TT>/dev</TT>.

<P>
Distributions may install software in <TT>/opt</TT>, but must not
modify or delete software installed by the local system administrator
without the assent of the local system administrator.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The use of <TT>/opt</TT> for add-on software is a well-established
practice in the U<SMALL>NIX</SMALL> community.  The System V Application Binary
Interface [AT&amp;T 1990], based on the System V Interface Definition (Third
Edition), provides for an <TT>/opt</TT> structure very similar to the one
defined here.

<P>
The Intel Binary Compatibility Standard v. 2 (iBCS2) also provides a
similar structure for <TT>/opt</TT>.

<P>
Generally, all data required to support a package on a system must be
present within <TT>/opt/&#60;package&#62;</TT>, including files intended to be
copied into <TT>/etc/opt/&#60;package&#62;</TT> and <TT>/var/opt/&#60;package&#62;</TT> as
well as reserved directories in <TT>/opt</TT>.

<P>
The minor restrictions on distributions using <TT>/opt</TT> are necessary
because conflicts are possible between distribution-installed and
locally-installed software, especially in the case of fixed pathnames
found in some binary software.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION0038313000000000000000">
35.3.13 /root : Home directory for the root user (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION0038313100000000000000">
35.3.13.1 Purpose</A>
</H3>
The root account's home directory may be determined by developer or
local preference, but this is the recommended default location.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[If the home directory of the root account is not stored on the root
partition it will be necessary to make certain it will default to
<TT>/</TT> if it can not be located.

<P>
We recommend against using the root account for tasks that can be
performed as an unprivileged user, and that it be used solely for system
administration.  For this reason, we recommend that subdirectories for
mail and other applications not appear in the root account's home
directory, and that mail for administration roles such as root,
postmaster, and webmaster be forwarded to an appropriate user.
]</FONT>
<P>

<H2><A NAME="SECTION0038314000000000000000">
35.3.14 /sbin : System binaries</A>
</H2>

<P>

<H3><A NAME="SECTION0038314100000000000000">
35.3.14.1 Purpose</A>
</H3>
Utilities used for system administration (and other root-only commands)
are stored in <TT>/sbin</TT>, <TT>/usr/sbin</TT>, and
<TT>/usr/local/sbin</TT>.  <TT>/sbin</TT> contains binaries essential for
booting, restoring, recovering, and/or repairing the system in addition
to the binaries in <TT>/bin</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Originally, <TT>/sbin</TT> binaries were kept in <TT>/etc</TT>.
]</FONT>Programs executed after <TT>/usr</TT> is known to be mounted (when there
are no problems) are generally placed into <TT>/usr/sbin</TT>.
Locally-installed system administration programs should be placed into
<TT>/usr/local/sbin</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Deciding what things go into <TT>"sbin"</TT> directories is simple: if a
normal (not a system administrator) user will ever run it directly, then
it must be placed in one of the <TT>"bin"</TT> directories.  Ordinary
users should not have to place any of the <TT>sbin</TT> directories in
their path.

<P>
For example, files such as <TT>chfn</TT> which users only
occasionally use must still be placed in <TT>/usr/bin</TT>.
<TT>ping</TT>, although it is absolutely necessary for root (network
recovery and diagnosis) is often used by users and must live in
<TT>/bin</TT> for that reason.

<P>
We recommend that users have read and execute permission for everything
in <TT>/sbin</TT> except, perhaps, certain setuid and setgid programs.
The division between <TT>/bin</TT> and <TT>/sbin</TT> was not created for
security reasons or to prevent users from seeing the operating system,
but to provide a good partition between binaries that everyone uses and
ones that are primarily used for administration tasks.  There is no
inherent security advantage in making <TT>/sbin</TT> off-limits for
users.
]</FONT>
<P>

<H3><A NAME="SECTION0038314200000000000000">
35.3.14.2 Requirements</A>
</H3>
The following commands, or symbolic links to commands, are required in <TT>/sbin</TT>.

<P>
<IMG
 WIDTH="356" HEIGHT="62" ALIGN="BOTTOM" BORDER="0"
 SRC="img45.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}shutdown} &amp; Command to bring the system down. \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION0038314300000000000000">
35.3.14.3 Specific Options</A>
</H3>
The following files, or symbolic links to files, must be in <TT>/sbin</TT> if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="581" HEIGHT="368" ALIGN="BOTTOM" BORDER="0"
 SRC="img46.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}fastboot} &amp; Reboot the system without checking ...
...&amp; Daemon to periodically flush filesystem buffers (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H2><A NAME="SECTION0038315000000000000000">
35.3.15 /tmp : Temporary files</A>
</H2>

<P>

<H3><A NAME="SECTION0038315100000000000000">
35.3.15.1 Purpose</A>
</H3>
The <TT>/tmp</TT> directory must be made available for programs that
require temporary files.

<P>
Programs must not assume that any files or directories in <TT>/tmp</TT>
are preserved between invocations of the program.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>IEEE standard P1003.2 (POSIX, part 2) makes requirements that are
similar to the above section.

<P>
Although data stored in <TT>/tmp</TT> may be deleted in a site-specific
manner, it is recommended that files and directories located in
<TT>/tmp</TT> be deleted whenever the system is booted.

<P>
FHS added this recommendation
on the basis of historical precedent and common practice, but did not
make it a requirement because system administration is not within the
scope of this standard.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H1><A NAME="SECTION003840000000000000000">
35.4 The /usr Hierarchy</A>
</H1>

<P>

<H2><A NAME="SECTION003841000000000000000">
35.4.1 Purpose</A>
</H2>
<TT>/usr</TT> is the second major section of the filesystem.
<TT>/usr</TT> is shareable, read-only data.  That means that <TT>/usr</TT>
should be shareable between various FHS-compliant hosts and
must not be written to.  Any information that is host-specific or
varies with time is stored elsewhere.

<P>
Large software packages must not use a direct subdirectory under the
<TT>/usr</TT> hierarchy.

<P>

<H2><A NAME="SECTION003842000000000000000">
35.4.2 Requirements</A>
</H2>
The following directories, or symbolic links to directories, are required in <TT>/usr</TT>.

<P>
<IMG
 WIDTH="492" HEIGHT="231" ALIGN="BOTTOM" BORDER="0"
 SRC="img47.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr} &amp; \multicolumn{2}{l}{--------- Sec...
...eciallcorner{}{\tt {}~share} &amp; Architecture-independent data \\
\end{longtable}">
<BR>
<BR>

<P>

<H2><A NAME="SECTION003843000000000000000">
35.4.3 Specific Options</A>
</H2>

<P>
<IMG
 WIDTH="535" HEIGHT="175" ALIGN="BOTTOM" BORDER="0"
 SRC="img48.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr} &amp; \multicolumn{2}{l}{--------- Sec...
...
~ &amp; \speciallcorner{}{\tt {}~src} &amp; Source code (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
An exception is made for the X Window System because of considerable
precedent and widely-accepted practice.

<P>
The following symbolic links to directories may be present. This
possibility is based on the need to preserve compatibility with older
systems until all implementations can be assumed to use the <TT>/var</TT>
hierarchy.

<P>
<PRE>
    /usr/spool -&gt; /var/spool
    /usr/tmp -&gt; /var/tmp
    /usr/spool/locks -&gt; /var/lock
</PRE>

<P>
Once a system no longer requires any one of the above symbolic links,
the link may be removed, if desired.

<P>

<H2><A NAME="SECTION003844000000000000000">
35.4.4 /usr/X11R6 : X Window System, Version 11 Release 6 (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION003844100000000000000">
35.4.4.1 Purpose</A>
</H3>
This hierarchy is reserved for the X Window System, version 11 release
6, and related files.

<P>
To simplify matters and make XFree86 more compatible with the X Window
System on other systems, the following symbolic links must be present if
<TT>/usr/X11R6</TT> exists:

<P>
<PRE>
    /usr/bin/X11 -&gt; /usr/X11R6/bin
    /usr/lib/X11 -&gt; /usr/X11R6/lib/X11
    /usr/include/X11 -&gt; /usr/X11R6/include/X11
</PRE>

<P>
In general, software must not be installed or managed via the above
symbolic links.  They are intended for utilization by users only.  The
difficulty is related to the release version of the X Window System --
in transitional periods, it is impossible to know what release of X11 is
in use.

<P>

<H3><A NAME="SECTION003844200000000000000">
35.4.4.2 Specific Options</A>
</H3>
Host-specific data in <TT>/usr/X11R6/lib/X11</TT> should be interpreted
as a demonstration file.  Applications requiring information about the
current host must reference a configuration file in <TT>/etc/X11</TT>,
which may be linked to a file in <TT>/usr/X11R6/lib</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Examples of such configuration files include <TT>Xconfig</TT>,
<TT>XF86Config</TT>, or <TT>system.twmrc</TT>)
]</FONT>
<P>

<H2><A NAME="SECTION003845000000000000000">
35.4.5 /usr/bin : Most user commands</A>
</H2>

<P>

<H3><A NAME="SECTION003845100000000000000">
35.4.5.1 Purpose</A>
</H3>
This is the primary directory of executable commands on the system.

<P>

<H3><A NAME="SECTION003845200000000000000">
35.4.5.2 Specific Options</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/usr/bin</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="549" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img49.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr/bin} &amp; \multicolumn{2}{l}{---------...
...{}~mh} &amp; Commands for the MH mail handling system (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
<TT>/usr/bin/X11</TT> must be a symlink to <TT>/usr/X11R6/bin</TT> if the
latter exists.

<P>
The following files, or symbolic links to files, must be in <TT>/usr/bin</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="472" HEIGHT="139" ALIGN="BOTTOM" BORDER="0"
 SRC="img50.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}perl} &amp; The Practical Extraction and Report Lan...
...
{\tt {}expect} &amp; Program for interactive dialog (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>Because shell script interpreters (invoked with <TT>#!&#60;path&#62;</TT> on the
first line of a shell script) cannot rely on a path, it is advantageous
to standardize their locations.  The Bourne shell and C-shell
interpreters are already fixed in <TT>/bin</TT>, but Perl, Python, and
Tcl are often found in many different places.  They may be symlinks to
the physical location of the shell interpreters.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION003846000000000000000">
35.4.6 /usr/include : Directory for standard include files.</A>
</H2>

<P>

<H3><A NAME="SECTION003846100000000000000">
35.4.6.1 Purpose</A>
</H3>
This is where all of the system's general-use include files for the C
programming language should be placed.

<P>

<H3><A NAME="SECTION003846200000000000000">
35.4.6.2 Specific Options</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/usr/include</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="493" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img51.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr/include} &amp; \multicolumn{2}{l}{-----...
...r{}{\tt {}~bsd} &amp; BSD compatibility include files (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
The symbolic link <TT>/usr/include/X11</TT> must link to
<TT>/usr/X11R6/include/X11</TT> if the latter exists.

<P>

<H2><A NAME="SECTION003847000000000000000">
35.4.7 /usr/lib : Libraries for programming and packages</A>
</H2>

<P>

<H3><A NAME="SECTION003847100000000000000">
35.4.7.1 Purpose</A>
</H3>
<TT>/usr/lib</TT> includes object files, libraries, and internal binaries
that are not intended to be executed directly by users or shell scripts.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Miscellaneous architecture-independent application-specific static files
and subdirectories must be placed in <TT>/usr/share</TT>.
]</FONT>
<P>
Applications may use a single subdirectory under <TT>/usr/lib</TT>.  If
an application uses a subdirectory, all architecture-dependent data
exclusively used by the application must be placed within that
subdirectory.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[For example, the <TT>perl5</TT> subdirectory for Perl 5 modules and
libraries.
]</FONT>
<P>

<H3><A NAME="SECTION003847200000000000000">
35.4.7.2 Specific Options</A>
</H3>

<P>
For historical reasons, <TT>/usr/lib/sendmail</TT> must be a symbolic
link to <TT>/usr/sbin/sendmail</TT> if the latter exists.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Some executable commands such as <TT>makewhatis</TT> and <TT>sendmail</TT>
have also been traditionally placed in <TT>/usr/lib</TT>.
<TT>makewhatis</TT> is an internal binary and must be placed in a
binary directory; users access only <TT>catman</TT>.  Newer
<TT>sendmail</TT> binaries are now placed by default in
<TT>/usr/sbin</TT>.  Additionally, systems using a
<TT>sendmail</TT>-compatible mail transfer agent must provide
<TT>/usr/sbin/sendmail</TT> as a symbolic link to the appropriate
executable.
]</FONT>
<P>
If <TT>/lib/X11</TT> exists, <TT>/usr/lib/X11</TT> must be a symbolic link
to <TT>/lib/X11</TT>, or to whatever <TT>/lib/X11</TT> is a symbolic link
to.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Host-specific data for the X Window System must not be stored in
<TT>/usr/lib/X11</TT>.  Host-specific configuration files such as
<TT>Xconfig</TT> or <TT>XF86Config</TT> must be stored in
<TT>/etc/X11</TT>.  This includes configuration data such as
<TT>system.twmrc</TT> even if it is only made a symbolic link to a more
global configuration file (probably in <TT>/usr/X11R6/lib/X11</TT>).
]</FONT>
<P>

<H2><A NAME="SECTION003848000000000000000">
35.4.8 /usr/lib&#60;qual&#62; : Alternate format libraries (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION003848100000000000000">
35.4.8.1 Purpose</A>
</H3>
<TT>/usr/lib&#60;qual&#62;</TT> performs the same role as <TT>/usr/lib</TT> for an
alternate binary format, except that the symbolic links
<TT>/usr/lib&#60;qual&#62;/sendmail</TT> and <TT>/usr/lib&#60;qual&#62;/X11</TT> are not required.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[The case where <TT>/usr/lib</TT> and <TT>/usr/lib&#60;qual&#62;</TT> are the
same (one is a symbolic link to the other) these files and the
per-application subdirectories will exist.
]</FONT>
<P>

<H2><A NAME="SECTION003849000000000000000">
35.4.9 /usr/local : Local hierarchy</A>
</H2>

<P>

<H3><A NAME="SECTION003849100000000000000">
35.4.9.1 Purpose</A>
</H3>
The <TT>/usr/local</TT> hierarchy is for use by the system administrator
when installing software locally.  It needs to be safe from being
overwritten when the system software is updated.  It may be used for
programs and data that are shareable amongst a group of hosts, but not
found in <TT>/usr</TT>.

<P>
Locally installed software must be placed within <TT>/usr/local</TT>
rather than <TT>/usr</TT> unless it is being installed to replace or
upgrade software in <TT>/usr</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Software placed in <TT>/</TT> or <TT>/usr</TT> may be
overwritten by system upgrades (though we recommend that distributions
do not overwrite data in <TT>/etc</TT> under these circumstances).  For
this reason, local software must not be placed outside of
<TT>/usr/local</TT> without good reason.
]</FONT>
<P>

<H3><A NAME="SECTION003849200000000000000">
35.4.9.2 Requirements</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/usr/local</TT>

<P>
<IMG
 WIDTH="514" HEIGHT="287" ALIGN="BOTTOM" BORDER="0"
 SRC="img52.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr/local} &amp; \multicolumn{2}{l}{-------...
...hy \\
~ &amp; \speciallcorner{}{\tt {}~src} &amp; Local source code \\
\end{longtable}">
<BR>
<BR>

<P>
No other directories, except those listed below, may be in
<TT>/usr/local</TT> after first installing a FHS-compliant system.

<P>

<H3><A NAME="SECTION003849300000000000000">
35.4.9.3 Specific Options</A>
</H3>
If directories <TT>/lib&#60;qual&#62;</TT> or <TT>/usr/lib&#60;qual&#62;</TT> exist, the
equivalent directories must also exist in <TT>/usr/local</TT>.

<P>

<H2><A NAME="SECTION0038410000000000000000">
35.4.10 /usr/sbin : Non-essential standard system binaries</A>
</H2>

<P>

<H3><A NAME="SECTION0038410100000000000000">
35.4.10.1 Purpose</A>
</H3>
This directory contains any non-essential binaries used exclusively by
the system administrator.  System administration programs that are
required for system repair, system recovery, mounting <TT>/usr</TT>, or
other essential functions must be placed in <TT>/sbin</TT> instead.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Locally installed system administration programs should be placed in
<TT>/usr/local/sbin</TT>.
]</FONT>
<P>

<H2><A NAME="SECTION0038411000000000000000">
35.4.11 /usr/share : Architecture-independent data</A>
</H2>

<P>

<H3><A NAME="SECTION0038411100000000000000">
35.4.11.1 Purpose</A>
</H3>
The <TT>/usr/share</TT> hierarchy is for all read-only architecture
independent data files.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Much of this data originally lived in <TT>/usr</TT> (<TT>man</TT>,
<TT>doc</TT>) or <TT>/usr/lib</TT> (<TT>dict</TT>, <TT>terminfo</TT>,
<TT>zoneinfo</TT>).
]</FONT>
<P>
This hierarchy is intended to be shareable among all architecture
platforms of a given OS; thus, for example, a site with i386, Alpha, and
PPC platforms might maintain a single <TT>/usr/share</TT> directory that
is centrally-mounted.  Note, however, that <TT>/usr/share</TT> is
generally not intended to be shared by different OSes or by different
releases of the same OS.

<P>
Any program or package which contains or requires data that doesn't need
to be modified should store that data in <TT>/usr/share</TT> (or
<TT>/usr/local/share</TT>, if installed locally).  It is recommended that a
subdirectory be used in <TT>/usr/share</TT> for this purpose.

<P>
Game data stored in <TT>/usr/share/games</TT> must be purely static data.
Any modifiable files, such as score files, game play logs, and so forth,
should be placed in <TT>/var/games</TT>.

<P>

<H3><A NAME="SECTION0038411200000000000000">
35.4.11.2 Requirements</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/usr/share</TT>

<P>
<IMG
 WIDTH="512" HEIGHT="119" ALIGN="BOTTOM" BORDER="0"
 SRC="img53.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr/share} &amp; \multicolumn{2}{l}{-------...
...}{\tt {}~misc} &amp; Miscellaneous architecture-independent data \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION0038411300000000000000">
35.4.11.3 Specific Options</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/usr/share</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="630" HEIGHT="343" ALIGN="BOTTOM" BORDER="0"
 SRC="img54.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr/share} &amp; \multicolumn{2}{l}{-------...
...oneinfo} &amp; Timezone information and configuration (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
It is recommended that application-specific, architecture-independent
directories be placed here.  Such directories include <TT>groff</TT>,
<TT>perl</TT>, <TT>ghostscript</TT>, <TT>texmf</TT>, and
<TT>kbd</TT> (Linux) or <TT>syscons</TT> (BSD).  They may, however, be
placed in <TT>/usr/lib</TT> for backwards compatibility, at the
distributor's discretion.  Similarly, a <TT>/usr/lib/games</TT>
hierarchy may be used in addition to the <TT>/usr/share/games</TT>
hierarchy if the distributor wishes to place some game data there.

<P>

<H3><A NAME="SECTION0038411400000000000000">
35.4.11.4 /usr/share/dict : Word lists (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION0038411410000000000000">
35.4.11.4.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
This directory is the home for word lists on the system;
Traditionally this directory contains only the English <TT>words</TT>
file, which is used by <TT>look(1)</TT> and various spelling programs.
<TT>words</TT> may use either American or British spelling.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The reason that only word lists are located here is that they are the
only files common to all spell checkers.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H4><A NAME="SECTION0038411420000000000000">
35.4.11.4.2 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
The following files, or symbolic links to files, must be in <TT>/usr/share/dict</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="288" HEIGHT="62" ALIGN="BOTTOM" BORDER="0"
 SRC="img55.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}words} &amp; List of English words (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
Sites that require both American and British spelling may link
<TT>words</TT> to <TT>/usr/share/dict/american-english</TT> or
<TT>/usr/share/dict/british-english</TT>.

<P>
Word lists for other languages may be added using the English name for
that language, e.g., <TT>/usr/share/dict/french</TT>,
<TT>/usr/share/dict/danish</TT>, etc.  These should, if possible, use an
ISO 8859 character set which is appropriate for the language in
question; if possible the Latin1 (ISO 8859-1) character set should be
used (this is often not possible).

<P>
Other word lists must be included here, if present.

<P>

<H3><A NAME="SECTION0038411500000000000000">
35.4.11.5 /usr/share/man : Manual pages</A>
</H3>

<P>

<H4><A NAME="SECTION0038411510000000000000">
35.4.11.5.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
This section details the organization for manual pages throughout the
system, including <TT>/usr/share/man</TT>.  Also refer to the section on
<TT>/var/cache/man</TT>.

<P>
The primary <TT>&#60;mandir&#62;</TT> of the system is <TT>/usr/share/man</TT>.
<TT>/usr/share/man</TT> contains manual information for commands and data under
the <TT>/</TT> and <TT>/usr</TT> filesystems.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Obviously, there are no manual pages in <TT>/</TT> because they are
not required at boot time nor are they required in emergencies.<FONT COLOR="#ffa500">(footnote follows)</FONT>
]</FONT> <FONT COLOR="#ffa500">[Really.
]</FONT>
<P>
Manual pages are stored in <TT>&#60;mandir&#62;/&#60;locale&#62;/man&#60;section&#62;/&#60;arch&#62;</TT>.
An explanation of <TT>&#60;mandir&#62;</TT>, <TT>&#60;locale&#62;</TT>, <TT>&#60;section&#62;</TT>,
and <TT>&#60;arch&#62;</TT> is given below.

<P>
A description of each section follows:

<UL>
<LI><TT>man1</TT>: User programs

<BR>
Manual pages that describe publicly accessible commands are contained in
this chapter.  Most program documentation that a user will need to use
is located here.
</LI>
<LI><TT>man2</TT>: System calls

<BR>
This section describes all of the system calls (requests for the
kernel to perform operations).
</LI>
<LI><TT>man3</TT>: Library functions and subroutines

<BR>
Section 3 describes program library routines that are not direct calls
to kernel services.  This and chapter 2 are only really of interest to
programmers.
</LI>
<LI><TT>man4</TT>: Special files

<BR>
Section 4 describes the special files, related driver functions, and
networking support available in the system.  Typically, this includes
the device files found in <TT>/dev</TT> and the kernel interface to
networking protocol support.
</LI>
<LI><TT>man5</TT>: File formats

<BR>
The formats for many data files are documented in the
section 5.  This includes various include files, program output files,
and system files.
</LI>
<LI><TT>man6</TT>: Games

<BR>
This chapter documents games, demos, and generally trivial programs.
Different people have various notions about how essential this is.
</LI>
<LI><TT>man7</TT>: Miscellaneous

<BR>
Manual pages that are difficult to classify are designated as being
section 7.  The troff and other text processing macro packages are found
here.
</LI>
<LI><TT>man8</TT>: System administration

<BR>
Programs used by system administrators for system operation and
maintenance are documented here.  Some of these programs are also
occasionally useful for normal users.
</LI>
</UL>

<P>

<H4><A NAME="SECTION0038411520000000000000">
35.4.11.5.2 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
The following directories, or symbolic links to directories, must be in
<TT>/usr/share/&#60;mandir&#62;/&#60;locale&#62;</TT>, unless they are empty:<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[For example, if <TT>/usr/local/man</TT> has no manual pages in
section 4 (Devices), then <TT>/usr/local/man/man4</TT> may be
omitted.
]</FONT>
<P>
<IMG
 WIDTH="503" HEIGHT="287" ALIGN="BOTTOM" BORDER="0"
 SRC="img56.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}\textless{}mandir\textgreater{}/\textles...
...iallcorner{}{\tt {}~man8} &amp; System administration (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
The component <TT>&#60;section&#62;</TT> describes the manual section.

<P>
Provisions must be made in the structure of <TT>/usr/share/man</TT> to support
manual pages which are written in different (or multiple) languages.
These provisions must take into account the storage and reference of
these manual pages.  Relevant factors include language (including
geographical-based differences), and character code set.

<P>
This naming of language subdirectories of <TT>/usr/share/man</TT> is based on
Appendix E of the POSIX 1003.1 standard which describes the locale
identification string -- the most well-accepted method to describe a
cultural environment.  The <TT>&#60;locale&#62;</TT> string is:

<UL>
<LI><TT>&#60;language&#62;[_&#60;territory&#62;][.&#60;character-set&#62;][,&#60;version&#62;]</TT>
</LI>
</UL>

<P>
The <TT>&#60;language&#62;</TT> field must be taken from ISO 639 (a code for the
representation of names of languages).  It must be two characters wide
and specified with lowercase letters only.

<P>
The <TT>&#60;territory&#62;</TT> field must be the two-letter code of ISO 3166
(a specification of representations of countries), if possible.  (Most
people are familiar with the two-letter codes used for the country codes
in email addresses.<FONT COLOR="#ffa500">(footnote follows)</FONT>) It must be two characters wide and specified
with uppercase letters only.
 <FONT COLOR="#ffa500">[A major exception to this rule is the United Kingdom, which is `GB' in
the ISO 3166, but `UK' for most email addresses.
]</FONT>
<P>
The <TT>&#60;character-set&#62;</TT> field must represent the standard
describing the character set.  If the <TT>&#60;character-set&#62;</TT> field is
just a numeric specification, the number represents the number of the
international standard describing the character set.  It is recommended
that this be a numeric representation if possible (ISO standards,
especially), not include additional punctuation symbols, and that any
letters be in lowercase.

<P>
A parameter specifying a <TT>&#60;version&#62;</TT> of the profile may be placed
after the <TT>&#60;character-set&#62;</TT> field, delimited by a comma.  This
may be used to discriminate between different cultural needs; for
instance, dictionary order versus a more systems-oriented collating
order.  This standard recommends not using the <TT>&#60;version&#62;</TT> field,
unless it is necessary.

<P>
Systems which use a unique language and code set for all manual pages
may omit the <TT>&#60;locale&#62;</TT> substring and store all manual pages in
<TT>&#60;mandir&#62;</TT>.  For example, systems which only have English manual
pages coded with ASCII, may store manual pages (the
<TT>man&#60;section&#62;</TT> directories) directly in <TT>/usr/share/man</TT>.
(That is the traditional circumstance and arrangement, in fact.)

<P>
Countries for which there is a well-accepted standard character code set
may omit the <TT>&#60;character-set&#62;</TT> field, but it is strongly
recommended that it be included, especially for countries with several
competing standards.

<P>
Various examples:

<P>
<IMG
 WIDTH="619" HEIGHT="292" ALIGN="BOTTOM" BORDER="0"
 SRC="img57.png"
 ALT="\begin{longtable}[l]{l l l l}
Language &amp; Territory &amp; Character Set &amp; {\tt {}Dire...
...Japan &amp; UJIS (or EUC-J) &amp; {\tt {}/usr/share/man/ja\_JP.ujis} \\
\end{longtable}">
<BR>
<BR>

<P>
Similarly, provision must be made for manual pages which are
architecture-dependent, such as documentation on device-drivers or
low-level system administration commands.  These must be placed under an
<TT>&#60;arch&#62;</TT> directory in the appropriate <TT>man&#60;section&#62;</TT> directory;
for example, a man page for the i386 ctrlaltdel(8) command might be
placed in <TT>/usr/share/man/&#60;locale&#62;/man8/i386/ctrlaltdel.8</TT>.

<P>
Manual pages for commands and data under <TT>/usr/local</TT> are stored
in <TT>/usr/local/man</TT>.  Manual pages for X11R6 are
stored in <TT>/usr/X11R6/man</TT>.  It follows that all manual page
hierarchies in the system must have the same structure as
<TT>/usr/share/man</TT>.

<P>
The cat page sections (<TT>cat&#60;section&#62;</TT>) containing formatted manual
page entries are also found within subdirectories of
<TT>&#60;mandir&#62;/&#60;locale&#62;</TT>, but are not required nor may they be
distributed in lieu of nroff source manual pages.

<P>
The numbered sections "1" through "8" are traditionally defined.  In
general, the file name for manual pages located within a particular
section end with <TT>.&#60;section&#62;</TT>.

<P>
In addition, some large sets of application-specific manual pages have
an additional suffix appended to the manual page filename.  For example,
the MH mail handling system manual pages must have <TT>mh</TT> appended
to all MH manuals.  All X Window System manual pages must have an
<TT>x</TT> appended to the filename.

<P>
The practice of placing various language manual pages in appropriate
subdirectories of <TT>/usr/share/man</TT> also applies to the other manual page
hierarchies, such as <TT>/usr/local/man</TT> and <TT>/usr/X11R6/man</TT>.
(This portion of the standard also applies later in the section on the
optional <TT>/var/cache/man</TT> structure.)

<P>

<H3><A NAME="SECTION0038411600000000000000">
35.4.11.6 /usr/share/misc : Miscellaneous architecture-independent data</A>
</H3>

<P>
This directory contains miscellaneous architecture-independent files
which don't require a separate subdirectory under <TT>/usr/share</TT>.

<P>

<H4><A NAME="SECTION0038411610000000000000">
35.4.11.6.1 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
The following files, or symbolic links to files, must be in <TT>/usr/share/misc</TT>, if the corresponding
subsystem is installed:

<P>
<IMG
 WIDTH="545" HEIGHT="119" ALIGN="BOTTOM" BORDER="0"
 SRC="img58.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}ascii} &amp; ASCII character set table (optional) \...
...{\tt {}termcap.db} &amp; Terminal capability database (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
Other (application-specific) files may appear here,<FONT COLOR="#ffa500">(footnote follows)</FONT> but a distributor
may place them in <TT>/usr/lib</TT> at their discretion.
 <FONT COLOR="#ffa500">[Some such files include:

<P>

<DL COMPACT>
<DT><TT>&#123;</TT></DT>
<DD><TT>
airport</TT>, <TT>birthtoken</TT>, <TT>eqnchar</TT>, <TT>getopt</TT>, <TT>gprof.callg</TT>, <TT>gprof.flat</TT>,<TT>
inter.phone</TT>, <TT>ipfw.samp.filters</TT>, <TT>ipfw.samp.scripts</TT>, <TT>keycap.pcvt</TT>, <TT>mail.help</TT>,<TT>
mail.tildehelp</TT>, <TT>man.template</TT>, <TT>map3270</TT>, <TT>mdoc.template</TT>, <TT>more.help</TT>, <TT>na.phone</TT>,<TT>
nslookup.help</TT>, <TT>operator</TT>, <TT>scsi_modes</TT>, <TT>sendmail.hf</TT>, <TT>style</TT>, <TT>units.lib</TT>,<TT>
vgrindefs</TT>, <TT>vgrindefs.db</TT>, <TT>zipcodes</TT>  <TT>&#125;</TT>
</DD>
</DL>
]</FONT>
<P>

<H3><A NAME="SECTION0038411700000000000000">
35.4.11.7 /usr/share/sgml : SGML and XML data (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION0038411710000000000000">
35.4.11.7.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
<TT>/usr/share/sgml</TT> contains architecture-independent files used by
SGML or XML applications, such as ordinary catalogs (not the centralized
ones, see <TT>/etc/sgml</TT>), DTDs, entities, or style sheets.

<P>

<H4><A NAME="SECTION0038411720000000000000">
35.4.11.7.2 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
The following directories, or symbolic links to directories, must be in <TT>/usr/share/sgml</TT>, if the
corresponding subsystem is installed:

<P>
<IMG
 WIDTH="442" HEIGHT="175" ALIGN="BOTTOM" BORDER="0"
 SRC="img59.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/usr/share/sgml} &amp; \multicolumn{2}{l}{--...
...~ &amp; \speciallcorner{}{\tt {}~mathml} &amp; mathml DTD (optional) \\
\end{longtable}">
<BR>
<BR>

<P>
Other files that are not specific to a given DTD may reside in their own
subdirectory.

<P>

<H2><A NAME="SECTION0038412000000000000000">
35.4.12 /usr/src : Source code (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION0038412100000000000000">
35.4.12.1 Purpose</A>
</H3>
Any non-local source code should be placed in this subdirectory.

<P>

<H1><A NAME="SECTION003850000000000000000">
35.5 The /var Hierarchy</A>
</H1>

<P>

<H2><A NAME="SECTION003851000000000000000">
35.5.1 Purpose</A>
</H2>

<P>
<TT>/var</TT> contains variable data files.  This includes spool
directories and files, administrative and logging data, and transient
and temporary files.

<P>
Some portions of <TT>/var</TT> are not shareable between different
systems.  For instance, <TT>/var/log</TT>, <TT>/var/lock</TT>, and
<TT>/var/run</TT>.  Other portions may be shared, notably
<TT>/var/mail</TT>, <TT>/var/cache/man</TT>, <TT>/var/cache/fonts</TT>,
and <TT>/var/spool/news</TT>.

<P>
<TT>/var</TT> is specified here in order to make it possible to mount
<TT>/usr</TT> read-only.  Everything that once went into <TT>/usr</TT>
that is written to during system operation (as opposed to installation
and software maintenance) must be in <TT>/var</TT>.

<P>
If <TT>/var</TT> cannot be made a separate partition, it is often
preferable to move <TT>/var</TT> out of the root partition and into the
<TT>/usr</TT> partition.  (This is sometimes done to reduce the size of
the root partition or when space runs low in the root partition.)
However, <TT>/var</TT> must not be linked to <TT>/usr</TT> because this
makes separation of <TT>/usr</TT> and <TT>/var</TT> more difficult and is
likely to create a naming conflict.  Instead, link <TT>/var</TT> to
<TT>/usr/var</TT>.

<P>
Applications must generally not add directories to the top level of
<TT>/var</TT>.  Such directories should only be added if they have some
system-wide implication, and in consultation with the FHS mailing list.

<P>

<H2><A NAME="SECTION003852000000000000000">
35.5.2 Requirements</A>
</H2>
The following directories, or symbolic links to directories, are required in <TT>/var</TT>.

<P>
<IMG
 WIDTH="502" HEIGHT="315" ALIGN="BOTTOM" BORDER="0"
 SRC="img60.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var} &amp; \multicolumn{2}{l}{--------- Var...
...t {}~tmp} &amp; Temporary files preserved between system reboots \\
\end{longtable}">
<BR>
<BR>

<P>
Several directories are `reserved' in the sense that they must not be
used arbitrarily by some new application, since they would conflict
with historical and/or local practice.  They are:

<P>
<PRE>
    /var/backups
    /var/cron
    /var/msgs
    /var/preserve
</PRE>

<P>

<H2><A NAME="SECTION003853000000000000000">
35.5.3 Specific Options</A>
</H2>
The following directories, or symbolic links to directories, must be in <TT>/var</TT>, if the
corresponding subsystem is installed:

<P>
<IMG
 WIDTH="584" HEIGHT="203" ALIGN="BOTTOM" BORDER="0"
 SRC="img61.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var} &amp; \multicolumn{2}{l}{--------- Var...
... Network Information Service (NIS) database files (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H2><A NAME="SECTION003854000000000000000">
35.5.4 /var/account : Process accounting logs (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION003854100000000000000">
35.5.4.1 Purpose</A>
</H3>
This directory holds the current active process accounting log and the
composite process usage data (as used in some U<SMALL>NIX</SMALL>-like systems by
<TT>lastcomm</TT> and <TT>sa</TT>).

<P>

<H2><A NAME="SECTION003855000000000000000">
35.5.5 /var/cache : Application cache data</A>
</H2>

<P>

<H3><A NAME="SECTION003855100000000000000">
35.5.5.1 Purpose</A>
</H3>
<TT>/var/cache</TT> is intended for cached data from applications.  Such
data is locally generated as a result of time-consuming I/O or
calculation.  The application must be able to regenerate or restore the
data.  Unlike <TT>/var/spool</TT>, the cached files can be deleted
without data loss.  The data must remain valid between invocations of
the application and rebooting the system.

<P>
Files located under <TT>/var/cache</TT> may be expired in an application
specific manner, by the system administrator, or both.  The application
must always be able to recover from manual deletion of these files
(generally because of a disk space shortage).  No other requirements are
made on the data format of the cache directories.

<P>

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The existence of a separate directory for cached data allows system
administrators to set different disk and backup policies from other
directories in <TT>/var</TT>.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION003855200000000000000">
35.5.5.2 Specific Options</A>
</H3>

<P>
<IMG
 WIDTH="548" HEIGHT="175" ALIGN="BOTTOM" BORDER="0"
 SRC="img62.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var/cache} &amp; \multicolumn{2}{l}{-------...
...kage\textgreater{}} &amp; Package specific cache data (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION003855300000000000000">
35.5.5.3 /var/cache/fonts : Locally-generated fonts (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION003855310000000000000">
35.5.5.3.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
The directory <TT>/var/cache/fonts</TT> should be used to store any
dynamically-created fonts.  In particular, all of the fonts which are
automatically generated by <TT>mktexpk</TT> must be located in
appropriately-named subdirectories of <TT>/var/cache/fonts</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[This standard does not currently incorporate the T<SMALL>E</SMALL>X Directory
Structure (a document that describes the layout T<SMALL>E</SMALL>X files and
directories), but it may be useful reading.  It is located at
<TT>ftp://ctan.tug.org/tex/</TT>.
]</FONT>
<P>

<H4><A NAME="SECTION003855320000000000000">
35.5.5.3.2 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
Other dynamically created fonts may also be placed in this tree, under
appropriately-named subdirectories of <TT>/var/cache/fonts</TT>.

<P>

<H3><A NAME="SECTION003855400000000000000">
35.5.5.4 /var/cache/man : Locally-formatted manual pages (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION003855410000000000000">
35.5.5.4.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
This directory provides a standard location for sites that provide a
read-only <TT>/usr</TT> partition, but wish to allow caching of
locally-formatted man pages.  Sites that mount <TT>/usr</TT> as writable
(e.g., single-user installations) may choose not to use
<TT>/var/cache/man</TT> and may write formatted man pages into the
<TT>cat&#60;section&#62;</TT> directories in <TT>/usr/share/man</TT> directly.  We
recommend that most sites use one of the following options instead:

<UL>
<LI>Preformat all manual pages alongside the unformatted versions.
</LI>
<LI>Allow no caching of formatted man pages, and require formatting to be
done each time a man page is brought up.
</LI>
<LI>Allow local caching of formatted man pages in <TT>/var/cache/man</TT>.
</LI>
</UL>

<P>
The structure of <TT>/var/cache/man</TT> needs to reflect both the fact of
multiple man page hierarchies and the possibility of multiple language
support.

<P>
Given an unformatted manual page that normally appears in
<TT>&#60;path&#62;/man/&#60;locale&#62;/man&#60;section&#62;</TT>, the directory to place formatted
man pages in is <TT>/var/cache/man/&#60;catpath&#62;/&#60;locale&#62;/cat&#60;section&#62;</TT>,
where <TT>&#60;catpath&#62;</TT> is derived from <TT>&#60;path&#62;</TT> by removing any
leading <TT>usr</TT> and/or trailing <TT>share</TT> pathname components.<FONT COLOR="#ffa500">(footnote follows)</FONT>
(Note that the <TT>&#60;locale&#62;</TT> component may be missing.)
 <FONT COLOR="#ffa500">[For example, <TT>/usr/share/man/man1/ls.1</TT> is
formatted into <TT>/var/cache/man/cat1/ls.1</TT>, and
<TT>/usr/X11R6/man/&#60;locale&#62;/man3/XtClass.3x</TT> into
<TT>/var/cache/man/X11R6/&#60;locale&#62;/cat3/XtClass.3x</TT>.
]</FONT>
<P>
Man pages written to <TT>/var/cache/man</TT> may eventually be
transferred to the appropriate preformatted directories in the source
<TT>man</TT> hierarchy or expired; likewise
formatted man pages in the source <TT>man</TT> hierarchy may be expired if
they are not accessed for a period of time.

<P>
If preformatted manual pages come with a system on read-only media
(a CD-ROM, for instance), they must be installed in the source
<TT>man</TT> hierarchy (e.g. <TT>/usr/share/man/cat&#60;section&#62;</TT>).
<TT>/var/cache/man</TT> is reserved as a writable cache for formatted
manual pages.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>Release 1.2 of the standard specified <TT>/var/catman</TT> for this
hierarchy.  The path has been moved under <TT>/var/cache</TT> to better
reflect the dynamic nature of the formatted man pages.  The directory
name has been changed to <TT>man</TT> to allow for enhancing the hierarchy
to include post-processed formats other than "cat", such as PostScript,
HTML, or DVI.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION003856000000000000000">
35.5.6 /var/crash : System crash dumps (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION003856100000000000000">
35.5.6.1 Purpose</A>
</H3>
This directory holds system crash dumps.  As of the date of this release
of the standard, system crash dumps were not supported under Linux.

<P>

<H2><A NAME="SECTION003857000000000000000">
35.5.7 /var/games : Variable game data (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION003857100000000000000">
35.5.7.1 Purpose</A>
</H3>
Any variable data relating to games in <TT>/usr</TT> should be placed
here.  <TT>/var/games</TT> should hold the variable data previously found
in <TT>/usr</TT>; static data, such as help text, level descriptions, and
so on, must remain elsewhere, such as <TT>/usr/share/games</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI><TT>/var/games</TT> has been given a hierarchy of its own, rather
than leaving it merged in with the old <TT>/var/lib</TT> as in release
1.2.  The separation allows local control of backup strategies,
permissions, and disk usage, as well as allowing inter-host sharing
and reducing clutter in <TT>/var/lib</TT>.  Additionally, <TT>/var/games</TT>
is the path traditionally used by BSD.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION003858000000000000000">
35.5.8 /var/lib : Variable state information</A>
</H2>

<P>

<H3><A NAME="SECTION003858100000000000000">
35.5.8.1 Purpose</A>
</H3>

<P>
This hierarchy holds state information pertaining to an application or
the system.  State information is data that programs modify while they
run, and that pertains to one specific host.  Users must never need
to modify files in <TT>/var/lib</TT> to configure a package's operation.

<P>
State information is generally used to preserve the condition of an
application (or a group of inter-related applications) between
invocations and between different instances of the same application.
State information should generally remain valid after a reboot,
should not be logging output, and should not be spooled data.

<P>
An application (or a group of inter-related applications) must
use a subdirectory of <TT>/var/lib</TT> for its data.<FONT COLOR="#ffa500">(footnote follows)</FONT>  There is one
required subdirectory, <TT>/var/lib/misc</TT>, which is intended for
state files that don't need a subdirectory; the other subdirectories
should only be present if the application in question is included in
the distribution.
 <FONT COLOR="#ffa500">[An important difference between this version of this standard and
previous ones is that applications are now required to use a
subdirectory of <TT>/var/lib</TT>.
]</FONT>
<P>
<TT>/var/lib/&#60;name&#62;</TT> is the location that must be used for all
distribution packaging support.  Different distributions may use
different names, of course.

<P>

<H3><A NAME="SECTION003858200000000000000">
35.5.8.2 Requirements</A>
</H3>
The following directories, or symbolic links to directories, are required in <TT>/var/lib</TT>:

<P>
<IMG
 WIDTH="347" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img63.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var/lib} &amp; \multicolumn{2}{l}{---------...
... &amp; \speciallcorner{}{\tt {}~misc} &amp; Miscellaneous state data \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION003858300000000000000">
35.5.8.3 Specific Options</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/var/lib</TT>, if the
corresponding subsystem is installed:

<P>
<IMG
 WIDTH="578" HEIGHT="203" ALIGN="BOTTOM" BORDER="0"
 SRC="img64.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var/lib} &amp; \multicolumn{2}{l}{---------...
...r{}{\tt {}~xdm} &amp; X display manager variable data (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION003858400000000000000">
35.5.8.4 /var/lib/&#60;editor&#62; : Editor backup files and state (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION003858410000000000000">
35.5.8.4.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
These directories contain saved files generated by any unexpected
termination of an editor (e.g., elvis, jove, nvi).

<P>
Other editors may not require a directory for crash-recovery files, but
may require a well-defined place to store other information while the
editor is running.  This information should be stored in a subdirectory
under <TT>/var/lib</TT> (for example, GNU Emacs would place lock files
in <TT>/var/lib/emacs/lock</TT>).

<P>
Future editors may require additional state information beyond
crash-recovery files and lock files -- this information should also be
placed under <TT>/var/lib/&#60;editor&#62;</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>Previous Linux releases, as well as all commercial vendors, use
<TT>/var/preserve</TT> for vi or its clones.  However, each editor uses
its own format for these crash-recovery files, so a separate directory
is needed for each editor.

<P>
Editor-specific lock files are usually quite different from the device
or resource lock files that are stored in <TT>/var/lock</TT> and, hence,
are stored under <TT>/var/lib</TT>.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION003858500000000000000">
35.5.8.5 /var/lib/hwclock : State directory for hwclock (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION003858510000000000000">
35.5.8.5.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
This directory contains the file <TT>/var/lib/hwclock/adjtime</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>In FHS 2.1, this file was <TT>/etc/adjtime</TT>, but as <TT>hwclock</TT>
updates it, that was obviously incorrect.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION003858600000000000000">
35.5.8.6 /var/lib/misc : Miscellaneous variable data</A>
</H3>

<P>

<H4><A NAME="SECTION003858610000000000000">
35.5.8.6.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
This directory contains variable data not placed in a subdirectory in
<TT>/var/lib</TT>.  An attempt should be made to use relatively unique
names in this directory to avoid namespace conflicts.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[This hierarchy should contain files stored in <TT>/var/db</TT>
in current BSD releases.  These include <TT>locate.database</TT> and
<TT>mountdtab</TT>, and the kernel symbol database(s).
]</FONT>
<P>

<H2><A NAME="SECTION003859000000000000000">
35.5.9 /var/lock : Lock files</A>
</H2>

<P>

<H3><A NAME="SECTION003859100000000000000">
35.5.9.1 Purpose</A>
</H3>
Lock files should be stored within the <TT>/var/lock</TT> directory structure.

<P>
Lock files for devices and other resources shared by multiple applications, such as the serial device lock files that were
originally found in either <TT>/usr/spool/locks</TT> or
<TT>/usr/spool/uucp</TT>, must now be stored in <TT>/var/lock</TT>.  The
naming convention which must be used is
 <TT>LCK..</TT> followed by the base name of the device file.  For example, to
lock <TT>/dev/ttyS0</TT> the file <TT>LCK..ttyS0</TT> would be created.

<P>
<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Then, anything wishing to use <TT>/dev/ttyS0</TT> can read the lock file
and act accordingly (all locks in <TT>/var/lock</TT> should be
world-readable).
]</FONT>
<P>
The format used for the contents of such lock files must be the HDB UUCP lock
file format.  The HDB format is to store the process identifier (PID) as
a ten byte ASCII decimal number, with a trailing newline.  For
example, if process 1230 holds a lock file, it would contain the eleven
characters: space, space, space, space, space, space, one, two, three,
zero, and newline.

<P>

<H2><A NAME="SECTION0038510000000000000000">
35.5.10 /var/log : Log files and directories</A>
</H2>

<P>

<H3><A NAME="SECTION0038510100000000000000">
35.5.10.1 Purpose</A>
</H3>
This directory contains miscellaneous log files.  Most logs must be
written to this directory or an appropriate subdirectory.

<P>

<H3><A NAME="SECTION0038510200000000000000">
35.5.10.2 Specific Options</A>
</H3>
The following files, or symbolic links to files, must be in <TT>/var/log</TT>, if the
corresponding subsystem is installed:

<P>
<IMG
 WIDTH="324" HEIGHT="100" ALIGN="BOTTOM" BORDER="0"
 SRC="img65.png"
 ALT="\begin{longtable}[l]{l l}
{\tt {}lastlog} &amp; record of last login of each user \\...
...syslogd} \\
{\tt {}wtmp} &amp; record of all logins and logouts \\
\end{longtable}">
<BR>
<BR>

<P>

<H2><A NAME="SECTION0038511000000000000000">
35.5.11 /var/mail : User mailbox files (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION0038511100000000000000">
35.5.11.1 Purpose</A>
</H3>
The mail spool must be accessible through <TT>/var/mail</TT> and the mail
spool files must take the form <TT>&#60;username&#62;</TT>.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[Note that <TT>/var/mail</TT>
may be a symbolic link to another directory.
]</FONT>
<P>
User mailbox files in this location must be stored in the standard
U<SMALL>NIX</SMALL> mailbox format.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The logical location for this directory was changed from
<TT>/var/spool/mail</TT> in order to bring FHS in-line with nearly
every U<SMALL>NIX</SMALL> implementation.  This change is important for
inter-operability since a single <TT>/var/mail</TT> is often shared
between multiple hosts and multiple U<SMALL>NIX</SMALL> implementations (despite NFS
locking issues).

<P>
It is important to note that there is no requirement to physically move
the mail spool to this location.  However, programs and header files
must be changed to use <TT>/var/mail</TT>.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION0038512000000000000000">
35.5.12 /var/opt : Variable data for /opt</A>
</H2>

<P>

<H3><A NAME="SECTION0038512100000000000000">
35.5.12.1 Purpose</A>
</H3>
Variable data of the packages in <TT>/opt</TT> must be installed in
<TT>/var/opt/&#60;package&#62;</TT>, where <TT>&#60;package&#62;</TT> is the name of the
subtree in <TT>/opt</TT> where the static data from an add-on software
package is stored, except where superseded by another file in
<TT>/etc</TT>.  No structure is imposed on the internal arrangement of
<TT>/var/opt/&#60;package&#62;</TT>.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>Refer to the rationale for <TT>/opt</TT>.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION0038513000000000000000">
35.5.13 /var/run : Run-time variable data</A>
</H2>

<P>

<H3><A NAME="SECTION0038513100000000000000">
35.5.13.1 Purpose</A>
</H3>
This directory contains system information data describing the system
since it was booted.  Files under this directory must be cleared
(removed or truncated as appropriate) at the beginning of the boot
process.  Programs may have a subdirectory of <TT>/var/run</TT>; this is
encouraged for programs that use more than one run-time file.<FONT COLOR="#ffa500">(footnote follows)</FONT>
 <FONT COLOR="#ffa500">[<TT>/var/run</TT> should be unwritable for unprivileged users (root or
users running daemons); it is a major security problem if any user can
write in this directory.
]</FONT>Process identifier (PID) files, which were originally placed in
<TT>/etc</TT>, must be placed in <TT>/var/run</TT>.  The naming
convention for PID files is <TT>&#60;program-name&#62;.pid</TT>.  For example,
the <TT>crond</TT> PID file is named <TT>/var/run/crond.pid</TT>.

<P>

<H3><A NAME="SECTION0038513200000000000000">
35.5.13.2 Requirements</A>
</H3>

<P>
The internal format of PID files remains unchanged.  The file must
consist of the process identifier in ASCII-encoded decimal,
followed by a newline character.  For example, if <TT>crond</TT> was
process number 25, <TT>/var/run/crond.pid</TT> would contain three
characters: two, five, and newline.

<P>
Programs that read PID files should be somewhat flexible in what they
accept; i.e., they should ignore extra whitespace, leading zeroes,
absence of the trailing newline, or additional lines in the PID file.
Programs that create PID files should use the simple specification
located in the above paragraph.

<P>
The <TT>utmp</TT> file, which stores information about who is currently
using the system, is located in this directory.

<P>
Programs that maintain transient U<SMALL>NIX</SMALL>-domain sockets must place them
in this directory.

<P>

<H2><A NAME="SECTION0038514000000000000000">
35.5.14 /var/spool : Application spool data</A>
</H2>

<P>

<H3><A NAME="SECTION0038514100000000000000">
35.5.14.1 Purpose</A>
</H3>
<TT>/var/spool</TT> contains data which is awaiting some kind of later
processing.  Data in <TT>/var/spool</TT> represents work to be done in
the future (by a program, user, or administrator); often data is deleted
after it has been processed.<FONT COLOR="#ffa500">(footnote follows)</FONT>

<P>
 <FONT COLOR="#ffa500">[UUCP lock files must be placed in <TT>/var/lock</TT>.  See the above
section on <TT>/var/lock</TT>.
]</FONT>
<P>

<H3><A NAME="SECTION0038514200000000000000">
35.5.14.2 Specific Options</A>
</H3>
The following directories, or symbolic links to directories, must be in <TT>/var/spool</TT>, if the
corresponding subsystem is installed:

<P>
<IMG
 WIDTH="467" HEIGHT="203" ALIGN="BOTTOM" BORDER="0"
 SRC="img66.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var/spool} &amp; \multicolumn{2}{l}{-------...
...lcorner{}{\tt {}~uucp} &amp; Spool directory for UUCP (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION0038514300000000000000">
35.5.14.3 /var/spool/lpd : Line-printer daemon print queues (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION0038514310000000000000">
35.5.14.3.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
The lock file for <TT>lpd</TT>, <TT>lpd.lock</TT>, must be placed in
<TT>/var/spool/lpd</TT>.  It is suggested that the lock file for each
printer be placed in the spool directory for that specific printer and
named <TT>lock</TT>.

<P>

<H4><A NAME="SECTION0038514320000000000000">
35.5.14.3.2 Specific Options</A>
</H4>
<P>
&nbsp;
<P>
<IMG
 WIDTH="550" HEIGHT="90" ALIGN="BOTTOM" BORDER="0"
 SRC="img67.png"
 ALT="\begin{longtable}[l]{r l l}
\par {\tt {}/var/spool/lpd} &amp; \multicolumn{2}{l}{---...
...er\textgreater{}} &amp; Spools for a specific printer (optional) \\
\end{longtable}">
<BR>
<BR>

<P>

<H3><A NAME="SECTION0038514400000000000000">
35.5.14.4 /var/spool/rwho : Rwhod files (optional)</A>
</H3>

<P>

<H4><A NAME="SECTION0038514410000000000000">
35.5.14.4.1 Purpose</A>
</H4>
<P>
&nbsp;
<P>
This directory holds the <TT>rwhod</TT> information for other systems on
the local net.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>Some BSD releases use <TT>/var/rwho</TT> for this data; given its
historical location in <TT>/var/spool</TT> on other systems and its
approximate fit to the definition of `spooled' data, this location was
deemed more appropriate.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H2><A NAME="SECTION0038515000000000000000">
35.5.15 /var/tmp : Temporary files preserved between system reboots</A>
</H2>

<P>

<H3><A NAME="SECTION0038515100000000000000">
35.5.15.1 Purpose</A>
</H3>
The <TT>/var/tmp</TT> directory is made available for programs that require
temporary files or directories that are preserved between system reboots.
Therefore, data stored in <TT>/var/tmp</TT> is more persistent than data
in <TT>/tmp</TT>.

<P>
Files and directories located in <TT>/var/tmp</TT> must not be deleted
when the system is booted.  Although data stored in <TT>/var/tmp</TT>
is typically deleted in a site-specific manner, it is recommended that
deletions occur at a less frequent interval than <TT>/tmp</TT>.

<P>

<H2><A NAME="SECTION0038516000000000000000">
35.5.16 /var/yp : Network Information Service (NIS) database files (optional)</A>
</H2>

<P>

<H3><A NAME="SECTION0038516100000000000000">
35.5.16.1 Purpose</A>
</H3>
Variable data for the Network Information Service (NIS), formerly known
as the Sun Yellow Pages (YP), must be placed in this directory.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI><TT>/var/yp</TT> is the standard directory for NIS (YP) data and is
almost exclusively used in NIS documentation and systems.<FONT COLOR="#ffa500">(footnote follows)</FONT>
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL> <FONT COLOR="#ffa500">[NIS should not be confused with Sun NIS+, which uses a different
directory, <TT>/var/nis</TT>.
]</FONT>
<P>

<H1><A NAME="SECTION003860000000000000000">
35.6 Operating System Specific Annex</A>
</H1>

<P>
This section is for additional requirements and recommendations that
only apply to a specific operating system.  The material in this section
should never conflict with the base standard.

<P>

<H2><A NAME="SECTION003861000000000000000">
35.6.1 Linux</A>
</H2>

<P>
This is the annex for the Linux operating system.

<P>

<H3><A NAME="SECTION003861100000000000000">
35.6.1.1 / : Root directory</A>
</H3>

<P>
On Linux systems, if the kernel is located in <TT>/</TT>, we recommend
using the names <TT>vmlinux</TT> or <TT>vmlinuz</TT>, which have been used
in recent Linux kernel source packages.

<P>

<H3><A NAME="SECTION003861200000000000000">
35.6.1.2 /bin : Essential user command binaries (for use by all users)</A>
</H3>

<P>
Linux systems which require them place these additional files into
<TT>/bin</TT>.

<P>
<DL COMPACT>
<DT><TT>&#123;</TT></DT>
<DD><TT>
setserial</TT>  <TT>&#125;</TT>
</DD>
</DL>

<P>

<H3><A NAME="SECTION003861300000000000000">
35.6.1.3 /dev : Devices and special files</A>
</H3>

<P>
All devices and special files in <TT>/dev</TT> should adhere to the
<EM>Linux Allocated Devices</EM> document, which is available with the
Linux kernel source.  It is maintained by H. Peter Anvin
&#60;hpa@zytor.com&#62;.

<P>
Symbolic links in <TT>/dev</TT> should not be distributed with Linux
systems except as provided in the <EM>Linux Allocated Devices</EM>
document.

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>The requirement not to make symlinks promiscuously is made because local
setups will often differ from that on the distributor's development
machine.  Also, if a distribution install script configures the symbolic
links at install time, these symlinks will often not get updated if
local changes are made in hardware.  When used responsibly at a local
level, however, they can be put to good use.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION003861400000000000000">
35.6.1.4 /etc : Host-specific system configuration</A>
</H3>

<P>
Linux systems which require them place these additional files into
<TT>/etc</TT>.

<P>
<DL COMPACT>
<DT><TT>&#123;</TT></DT>
<DD><TT>
lilo.conf</TT>  <TT>&#125;</TT>
</DD>
</DL>

<P>

<H3><A NAME="SECTION003861500000000000000">
35.6.1.5 /proc : Kernel and process information virtual filesystem</A>
</H3>

<P>
The <TT>proc</TT> filesystem is the de-facto standard Linux method for
handling process and system information, rather than <TT>/dev/kmem</TT>
and other similar methods.  We strongly encourage this for the storage
and retrieval of process information as well as other kernel and memory
information.

<P>

<H3><A NAME="SECTION003861600000000000000">
35.6.1.6 /sbin : Essential system binaries</A>
</H3>

<P>
Linux systems place these additional files into <TT>/sbin</TT>.
<DL COMPACT>
<DT>&nbsp;$<FONT SIZE=+1><B>o</B></FONT>$</DT>
<DD>Second extended filesystem commands (optional):

<P>
</DD>
<DT><TT>&#123;</TT></DT>
<DD><TT>
badblocks</TT>, <TT>dumpe2fs</TT>, <TT>e2fsck</TT>, <TT>mke2fs</TT>, <TT>mklost+found</TT>, <TT>tune2fs</TT>  <TT>&#125;</TT>
</DD>
</DL>
<DL COMPACT>
<DT>&nbsp;$<FONT SIZE=+1><B>o</B></FONT>$</DT>
<DD>Boot-loader map installer (optional):

<P>
</DD>
<DT><TT>&#123;</TT></DT>
<DD><TT>
lilo</TT>  <TT>&#125;</TT>
</DD>
</DL>

<P>

<H3><A NAME="SECTION003861700000000000000">
Optional files for /sbin:</A>
</H3>
<DL COMPACT>
<DT>&nbsp;$<FONT SIZE=+1><B>o</B></FONT>$</DT>
<DD>Static binaries:

<P>
</DD>
<DT><TT>&#123;</TT></DT>
<DD><TT>
ldconfig</TT>, <TT>sln</TT>, <TT>ssync</TT>  <TT>&#125;</TT>
</DD>
</DL>

<P>
Static <TT>ln</TT> (<TT>sln</TT>) and static <TT>sync</TT> (<TT>ssync</TT>)
are useful when things go wrong.  The primary use of <TT>sln</TT> (to
repair incorrect symlinks in <TT>/lib</TT> after a poorly orchestrated
upgrade) is no longer a major concern now that the <TT>ldconfig</TT>
program (usually located in <TT>/usr/sbin</TT>) exists and can act as a
guiding hand in upgrading the dynamic libraries.  Static <TT>sync</TT> is
useful in some emergency situations.  Note that these need not be
statically linked versions of the standard <TT>ln</TT> and <TT>sync</TT>,
but may be.

<P>
The <TT>ldconfig</TT> binary is optional for <TT>/sbin</TT> since a site
may choose to run <TT>ldconfig</TT> at boot time, rather than only when
upgrading the shared libraries.  (It's not clear whether or not it is
advantageous to run <TT>ldconfig</TT> on each boot.)  Even so, some
people like <TT>ldconfig</TT> around for the following (all too common)
situation:

<OL>
<LI>I've just removed <TT>/lib/&#60;file&#62;</TT>.
</LI>
<LI>I can't find out the name of the library because <TT>ls</TT> is
dynamically linked, I'm using a shell that doesn't have <TT>ls</TT>
built-in, and I don't know about using "<TT>echo *</TT>" as a
replacement.
</LI>
<LI>I have a static <TT>sln</TT>, but I don't know what to call the link.
</LI>
</OL>
<DL COMPACT>
<DT>&nbsp;$<FONT SIZE=+1><B>o</B></FONT>$</DT>
<DD>Miscellaneous:

<P>
</DD>
<DT><TT>&#123;</TT></DT>
<DD><TT>
ctrlaltdel</TT>, <TT>kbdrate</TT>  <TT>&#125;</TT>
</DD>
</DL>

<P>
So as to cope with the fact that some keyboards come up with such a high
repeat rate as to be unusable, <TT>kbdrate</TT> may be installed in
<TT>/sbin</TT> on some systems.

<P>
Since the default action in the kernel for the Ctrl-Alt-Del key
combination is an instant hard reboot, it is generally advisable to
disable the behavior before mounting the root filesystem in read-write
mode.  Some <TT>init</TT> suites are able to disable Ctrl-Alt-Del, but
others may require the <TT>ctrlaltdel</TT> program, which may be
installed in <TT>/sbin</TT> on those systems.

<P>

<H3><A NAME="SECTION003861800000000000000">
35.6.1.7 /usr/include : Header files included by C programs</A>
</H3>

<P>
These symbolic links are required if a C or C++ compiler is installed
and only for systems not based on glibc.

<P>
<PRE>
    /usr/include/asm -&gt; /usr/src/linux/include/asm-&lt;arch&gt;
    /usr/include/linux -&gt; /usr/src/linux/include/linux
</PRE>

<P>

<H3><A NAME="SECTION003861900000000000000">
35.6.1.8 /usr/src : Source code</A>
</H3>

<P>
For systems based on glibc, there are no specific guidelines for this
directory.  For systems based on Linux libc revisions prior to glibc,
the following guidelines and rationale apply:

<P>
The only source code that should be placed in a specific location is the
Linux kernel source code.  It is located in <TT>/usr/src/linux</TT>.

<P>
If a C or C++ compiler is installed, but the complete Linux kernel
source code is not installed, then the include files from the kernel
source code must be located in these directories:

<P>
<PRE>
    /usr/src/linux/include/asm-&lt;arch&gt;
    /usr/src/linux/include/linux
</PRE>

<P>
<TT>&#60;arch&#62;</TT> is the name of the system architecture.

<P>
<EM>Note: <TT>/usr/src/linux</TT> may be a symbolic link to a kernel source
code tree.
</EM>

<UL>
<LI><B><FONT SIZE="-1">BEGIN RATIONALE</FONT></B>
</LI>
<LI>It is important that the kernel include files be located in
<TT>/usr/src/linux</TT> and not in <TT>/usr/include</TT> so there are no
problems when system administrators upgrade their kernel version for the
first time.
</LI>
<LI><B><FONT SIZE="-1">END RATIONALE</FONT></B>
</LI>
</UL>
<P>

<H3><A NAME="SECTION0038611000000000000000">
35.6.1.9 /var/spool/cron : cron and at jobs</A>
</H3>

<P>
This directory contains the variable data for the <TT>cron</TT> and
<TT>at</TT> programs.

<P>


<P>


<P>

<H1><A NAME="SECTION003870000000000000000">
35.7 Appendix</A>
</H1>

<P>

<H2><A NAME="SECTION003871000000000000000">
35.7.1 The FHS mailing list</A>
</H2>

<P>
The FHS mailing list is located at &#60;fhs-discuss@ucsd.edu&#62;.  To
subscribe to the list send mail to &#60;listserv@ucsd.edu&#62; with body
"<TT>ADD fhs-discuss</TT>".

<P>
Thanks to Network Operations at the University of California at San
Diego who allowed us to use their excellent mailing list server.

<P>
As noted in the introduction, please do not send mail to the mailing
list without first contacting the FHS editor or a listed contributor.

<P>

<H2><A NAME="SECTION003872000000000000000">
35.7.2 Background of the FHS</A>
</H2>

<P>
The process of developing a standard filesystem hierarchy began in
August 1993 with an effort to restructure the file and directory
structure of Linux.  The FSSTND, a filesystem hierarchy standard
specific to the Linux operating system, was released on February 14,
1994.  Subsequent revisions were released on October 9, 1994 and March
28, 1995.

<P>
In early 1995, the goal of developing a more comprehensive version of
FSSTND to address not only Linux, but other U<SMALL>NIX</SMALL>-like systems was
adopted with the help of members of the BSD development community.
As a result, a concerted effort was made to focus on issues that were
general to U<SMALL>NIX</SMALL>-like systems.  In recognition of this widening of
scope, the name of the standard was changed to Filesystem Hierarchy
Standard or FHS for short.

<P>
Volunteers who have contributed extensively to this standard are listed
at the end of this document.  This standard represents a consensus view
of those and other contributors.

<P>

<H2><A NAME="SECTION003873000000000000000">
35.7.3 General Guidelines</A>
</H2>

<P>
Here are some of the guidelines that have been used in the development
of this standard:

<UL>
<LI>Solve technical problems while limiting transitional difficulties.
</LI>
<LI>Make the specification reasonably stable.
</LI>
<LI>Gain the approval of distributors, developers, and other decision-makers
in relevant development groups and encourage their participation.
</LI>
<LI>Provide a standard that is attractive to the implementors of different
U<SMALL>NIX</SMALL>-like systems.
</LI>
</UL>

<P>

<H2><A NAME="SECTION003874000000000000000">
35.7.4 Scope</A>
</H2>

<P>
This document specifies a standard filesystem hierarchy for FHS
filesystems by specifying the location of files and directories, and the
contents of some system files.

<P>
This standard has been designed to be used by system integrators,
package developers, and system administrators in the construction and
maintenance of FHS compliant filesystems.  It is primarily intended to
be a reference and is not a tutorial on how to manage a conforming
filesystem hierarchy.

<P>
The FHS grew out of earlier work on FSSTND, a filesystem organization
standard for the Linux operating system.  It builds on FSSTND to address
interoperability issues not just in the Linux community but in a wider
arena including 4.4BSD-based operating systems.  It incorporates lessons
learned in the BSD world and elsewhere about multi-architecture support
and the demands of heterogeneous networking.

<P>
Although this standard is more comprehensive than previous attempts at
filesystem hierarchy standardization, periodic updates may become
necessary as requirements change in relation to emerging technology.  It
is also possible that better solutions to the problems addressed here
will be discovered so that our solutions will no longer be the best
possible solutions.  Supplementary drafts may be released in addition to
periodic updates to this document.  However, a specific goal is
backwards compatibility from one release of this document to the next.

<P>
Comments related to this standard are welcome.  Any comments or
suggestions for changes may be directed to the FHS editor (Daniel
Quinlan &#60;quinlan@pathname.com&#62;) or the FHS mailing
list.  Typographical or grammatical comments should be directed to the
FHS editor.

<P>
Before sending mail to the mailing list it is requested that you first
contact the FHS editor in order to avoid excessive re-discussion of old
topics.

<P>
Questions about how to interpret items in this document may occasionally
arise.  If you have need for a clarification, please contact the FHS
editor.  Since this standard represents a consensus of many
participants, it is important to make certain that any interpretation
also represents their collective opinion.  For this reason it may not be
possible to provide an immediate response unless the inquiry has been
the subject of previous discussion.

<P>

<H2><A NAME="SECTION003875000000000000000">
35.7.5 Acknowledgments</A>
</H2>

<P>
The developers of the FHS wish to thank the developers, system
administrators, and users whose input was essential to this standard.
We wish to thank each of the contributors who helped to write, compile,
and compose this standard.

<P>
The FHS Group also wishes to thank those Linux developers who
supported the FSSTND, the predecessor to this standard.  If they hadn't
demonstrated that the FSSTND was beneficial, the FHS could never have
evolved.

<P>

<H2><A NAME="SECTION003876000000000000000">
35.7.6 Contributors</A>
</H2>

<P>
<IMG
 WIDTH="420" HEIGHT="444" ALIGN="BOTTOM" BORDER="0"
 SRC="img68.png"
 ALT="\begin{longtable}[l]{l l}
Brandon S. Allbery &amp; {\tt {}\textless{}bsa@kf8nh.waria...
...nd Warken &amp; {\tt {}\textless{}bwarken@mayn.de\textgreater{}} \\
\end{longtable}">
<BR>
<BR>

<P>
 


<P>

<P>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html2490"
  HREF="node39.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html2486"
  HREF="rute.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html2480"
  HREF="node37.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html2488"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html2491"
  HREF="node39.html">36. httpd  </A>
<B> Up:</B> <A NAME="tex2html2487"
  HREF="rute.html">rute</A>
<B> Previous:</B> <A NAME="tex2html2481"
  HREF="node37.html">34. uucp and uux</A>
 &nbsp <B>  <A NAME="tex2html2489"
  HREF="node1.html">Contents</A></B> 
<!--End of Navigation Panel-->

</BODY>
</HTML>