Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

   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
.\"	$NetBSD: hier.7,v 1.140 2020/05/12 10:20:16 leot Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"	@(#)hier.7	8.5 (Berkeley) 6/1/94
.\"
.Dd May 12, 2020
.Dt HIER 7
.Os
.Sh NAME
.Nm hier
.Nd layout of file systems
.Sh DESCRIPTION
An outline of the file system hierarchy.
.Pp
Naming is very important.
The
.Ux
System relies on filename conventions for much of its power as a system.
The following file system layout describes generally where things are
and what they are, with references to other man pages for more detailed
documentation.
.Pp
Not all files will be in every system.
.Bl -tag -width "/altroot/"
.It Pa \&/
Root directory of the system.
.It Pa /COPYRIGHT
System copyright notice, most often put on CD-ROM distributions.
.It Pa "/[a-z]/"
User file systems.
.It Pa /altroot/
Alternate root file system, in case of disaster.
.\" .It Pa /amd/
.\" Home directories mount point; see
.\" .Xr amd 8 .
.It Pa /bin/
Utilities used in both single and multi-user environments.
.It Pa /boot*
Second-stage boot loader(s) for some platforms; see
.Xr installboot 8 .
.It Pa /cdrom/
Empty directory commonly used by
system administrators as a temporary mount point for ISO-9660 file
systems on CD (or DVD) media.
.It Pa /dev/
Block, character, and other special device files.
.Pp
.Bl -tag -width "MAKEDEV" -compact
.It Pa MAKEDEV
Script for creating device files;
see
.Xr makedev 8 .
.It Pa console
The computer's console device.
.It Pa drum
The computer's swap space device; see
.Xr drum 4 .
.It Pa fd/
File descriptor files;
see
.Xr fd 4 .
.It Pa klog
Kernel logging device; see
.Xr syslog 3 .
.It Pa kmem
Kernel virtual memory device; see
.Xr mem 4 .
.It Pa log
.Ux
domain datagram log socket; see
.Xr syslogd 8 .
.It Pa mem
Kernel physical memory device; see
.Xr mem 4 .
.It Pa null
The null device; see
.Xr null 4 .
.It Pa pts/
Mount point for the pseudo-terminal device file system; see
.Xr mount_ptyfs 8 .
.It Pa stderr
.It Pa stdin
.It Pa stdout
File descriptor files;
see
.Xr fd 4 .
.It Pa tty
Device pointing to each process's own controlling terminal; see
.Xr tty 4 .
.It Pa zero
The zero device; see
.Xr zero 4 .
.El
.\" .It Pa /dump/
.\" Online
.\" .Xr dump 8
.\" repository.
.It Pa /etc/
System configuration files and scripts.
.Pp
.Bl -tag -width "master.passwd" -compact
.It Pa amd*
Configuration files for
.Xr amd 8 .
.It Pa changelist
Files backed up by the
.Pa security
script.
.It Pa crontab
Schedule used by the
.Xr cron 8
daemon.
.It Pa csh.cshrc
.It Pa csh.login
.It Pa csh.logout
System-wide scripts for
.Xr csh 1 .
.It Pa daily
Script run each day by
.Xr cron 8 .
.It Pa daily.conf
Configuration file for
.Pa daily ;
see
.Xr daily.conf 5 .
.It Pa defaults/
Default configuration files read by various
.Pa /etc/*.conf
files.
.It Pa disktab
Disk description file; see
.Xr disktab 5 .
.It Pa dm.conf
Dungeon master configuration; see
.Xr dm.conf 5 .
.It Pa dumpdates
Dump history; see
.Xr dump 8 .
.It Pa exports
File system export information; see
.Xr mountd 8 .
.It Pa fstab
File system mounting table; see
.Xr fstab 5
and
.Xr mount 8 .
.It Pa ftpusers
Users denied
.Xr ftp 1
access; see
.Xr ftpd 8 .
.It Pa ftpwelcome
.Xr ftp 1
initial message; see
.Xr ftpd 8 .
.It Pa gettytab
Terminal configuration database; see
.Xr gettytab 5 .
.It Pa group
Group permissions file; see
.Xr group 5 .
.It Pa hosts
Host name database backup for
.Xr named 8 ;
see
.Xr hosts 5 .
.It Pa hosts.equiv
Trusted machines with equivalent user IDs.
(Obsolete.)
.It Pa hosts.lpd
Trusted machines with printing privileges.
.It Pa inetd.conf
Internet server configuration file; see
.Xr inetd 8 .
.It Pa kerberosV/
Configuration files for Kerberos version V;
see
.Xr kerberos 8 .
.It Pa localtime
Local time zone;
see
.Xr ctime 3 .
.It Pa login.conf
Configuration of user classes and limits; see
.Xr login.conf 5 .
.It Pa mail/
Configuration files for
.Xr sendmail 1 .
.Pp
.Bl -tag -width "sendmail.*" -compact
.It Pa aliases*
Username alias files.
.It Pa sendmail.*
.Xr sendmail 1
configuration information.
.El
.It Pa mail.rc
System-wide initialization script for
.Xr mail 1 .
.It Pa man.conf
Configuration file for
.Xr man 1 ;
see
.Xr man.conf 5 .
.It Pa master.passwd
Main password file, readable only by root; see
.Xr passwd 5 .
.It Pa mk.conf
Optional file containing
.Xr make 1
variables, used to configure pkgsrc and the system sources.
.It Pa monthly
Script run each month by
.Xr cron 8 .
.It Pa monthly.conf
Configuration file for
.Pa monthly ;
see
.Xr monthly.conf 5 .
.It Pa motd
System message of the day.
.It Pa mtree/
.Xr mtree 8
configuration files.
.It Pa named.*
.It Pa namedb/
.Xr named 8
configuration files and databases.
.It Pa netgroup
Network groups; see
.Xr netgroup 5 .
.It Pa networks
Network name database; see
.Xr networks 5 .
.It Pa passwd
World readable password file generated from master.passwd; see
.Xr passwd 5 ,
.Xr pwd_mkdb 8 .
.It Pa phones
Remote host telephone number data base; see
.Xr phones 5 .
.It Pa printcap
Printer configuration for
.Xr lpr 1 ;
see
.Xr printcap 5 .
.It Pa profile
System-wide scripts for
.Xr sh 1 .
.It Pa protocols
Protocol name database; see
.Xr protocols 5 .
.It Pa pwd.db
Database form of passwd file; see
.Xr pwd_mkdb 8 .
.It Pa rc
Master system startup script invoked by
.Xr init 8 ;
see
.Xr rc 8 .
.It Pa rc.conf
Configuration file for system startup and shutdown scripts; see
.Xr rc.conf 5 .
.It Pa rc.d/
Directory containing per-subsystem startup and shutdown scripts; see
.Xr rc 8 .
.It Pa rc.local
Locally editable system startup script.
.It Pa rc.shutdown
Master system shutdown script invoked by
.Xr shutdown 8 ;
see
.Xr rc 8 .
.It Pa remote
Remote host description file; see
.Xr remote 5 .
.It Pa security
Daily (in)security script run by
.Xr cron 8 .
.It Pa security.conf
Configuration file for
.Pa security ;
see
.Xr security.conf 5 .
.It Pa services
Service name data base; see
.Xr services 5 .
.It Pa shells
List of permitted shells; see
.Xr shells 5 .
.It Pa skel/
Sample initialization files for new user accounts.
.It Pa sliphome/
SLIP login/logout scripts; see
.Xr sliplogin 8 .
.It Pa spwd.db
Database form of master.passwd file; see
.Xr pwd_mkdb 8 .
.It Pa syslog.conf
.Xr syslogd 8
Configuration file; see
.Xr syslog.conf 5 .
.It Pa ttyaction
Login hooks for specific ttys, typically used to chown console
devices.
See
.Xr ttyaction 5 .
.It Pa ttys
Terminal initialization information; see
.Xr ttys 5 .
.It Pa weekly
Script run each week by
.Xr cron 8 .
.It Pa weekly.conf
Configuration file for
.Pa weekly ;
see
.Xr weekly.conf 5 .
.El
.It Pa /home/
Default location for user home directories.
.It Pa /kern/
Mount point for the kern file system; see
.Xr mount_kernfs 8 .
.It Pa /lib/
Dynamic linked libraries used by dynamically linked programs
that cannot rely upon
.Pa /usr/lib/
being available, such as those in
.Pa /bin/
and
.Pa /sbin/ .
.It Pa /libdata/
Non-executable files
.Pq such as device firmware
required at boot time, when
.Pa /usr/libdata
may not be available.
.It Pa /libexec/
System utilities (such as the dynamic linker) required by programs
and libraries that cannot rely upon
.Pa /usr/libexec/
being available.
.It Pa /mnt/
Empty directory commonly used by
system administrators as a temporary mount point.
.It Pa /net/
automounted NFS shares;
see
.Xr auto_master 5
.It Pa /netbsd
Kernel executable image (the operating system loaded into memory
at boot time).
.It Pa /proc/
Mount point for the process file system; see
.Xr mount_procfs 8 .
.It Pa /rescue/
Statically linked rescue tools, for use in system recovery.
.It Pa /root/
Home directory for the super-user.
.Pp
.Bl -tag -width ".profile" -compact
.It Pa \&.cshrc
Super-user start-up file for
.Xr csh 1 .
.It Pa \&.login
super-user start-up file for
.Xr csh 1 .
.It Pa \&.profile
super-user start-up file for
.Xr sh 1 .
.It Pa \&.rhosts
Super-user id mapping between machines.
(Obsolete.)
.El
.It Pa /sbin/
System programs and administration utilities
used in both single-user and multi-user environments.
.It Pa /stand/
Programs used in a standalone environment, that is, things that run on
bare hardware without a kernel.
Currently kernel modules are also placed here, although this remains
somewhat controversial and they may yet get moved.
.It Pa /tmp/
Temporary files.
The contents of
.Pa /tmp
are usually
.Em not
preserved across a system reboot.
.It Pa /usr/
Contains the majority of the system utilities and files.
.Pp
.Bl -tag -width "libdata/" -compact
.It Pa X11R7/
X11 files (for X11 revision 7).
.Pp
.Bl -tag -width "include/" -compact
.It Pa bin/
X11 binaries.
.It Pa include/
X11 include files.
.It Pa lib/
X11 libraries.
.El
.Pp
.It Pa bin/
Common utilities, programming tools, and applications.
.It Pa games/
The important stuff.
.It Pa include/
Standard C (and extension) include files.
.Pp
.Bl -tag -width "protocols/" -compact
.It Pa arpa/
Include files for Internet service protocols.
.It Pa atf/
Include files for the Automated Testing Framework; see
.Xr atf 7 .
.It Pa g++/
Include files for the GNU C++ compiler.
.It Pa machine/
Machine specific include files.
.It Pa net/
Miscellaneous network include files.
.It Pa netatalk/
C include files for AppleTalk protocols
see
.Xr atalk 4 .
.It Pa netinet/
Include files for Internet standard protocols; see
.Xr inet 4 .
.It Pa netinet6/
Include files for Internet protocol version 6; see
.Xr inet6 4 .
.It Pa netipsec/
Include files for secret key management, used for security protocols; see
.Xr ipsec 4 .
.It Pa nfs/
C include files for NFS (Network File System).
.It Pa protocols/
C include files for Berkeley service protocols.
.It Pa sys/
``System-level'' C include files.
.It Pa ufs/
C include files for several mutually related file systems.
(The `u' was originally for
.Ux . )
.El
.Pp
.It Pa lib/
Archive, profiled, position independent archive, and shared libraries.
.Pp
.Bl -tag -width "lua/" -compact
.It Pa lua/
.Bl -tag -width "5.3/" -compact
.It Pa 5.3/
Lua 5.3 modules.
.El
.El
.Pp
.It Pa libdata/
Miscellaneous utility data files.
.It Pa libexec/
System daemons & system utilities (executed by other programs).
.Pp
.It Pa mdec/
Boot blocks, etc.
.It Pa obj/
Architecture-specific target tree produced by building the
.Pa /usr/src
tree; often a symbolic link or mounted file system.
.It Pa pkg/
Installed third-party software packages.
.Pp
.Bl -tag -width "include/" -compact
.It Pa bin/
Package binaries.
.It Pa etc/
Package configuration files.
.It Pa include/
Package include files.
.It Pa lib/
Package libraries.
.It Pa libdata/
Package data files.
.It Pa libexec/
Package daemons.
.It Pa sbin/
Package system utilities.
.El
.Pp
.It Pa pkgsrc/
Build descriptions (packaging) for the
.Nx
package system.
.Pp
.Bl -tag -width "distfilesX" -compact
.It Pa distfiles/
Downloaded upstream source archives.
.It Pa packages/
Compiled binary packages.
.El
.Pp
There are also several other subdirectories which contain packages of
a certain category, e.g., archivers, graphics, ...
.Pp
.It Pa sbin/
System daemons and system utilities (normally executed by the super-user).
.It Pa share/
Architecture-independent files, mostly text.
.Pp
.Bl -tag -width "calendar/" -compact
.It Pa calendar/
A variety of calendar files; see
.Xr calendar 1 .
.It Pa dict/
Word lists;
see
.Xr look 1
and
.Xr spell 1 .
.Pp
.Bl -tag -width "special/" -compact
.It Pa words
Common words.
.It Pa web2
Words from Webster's Second International Dictionary.
.It Pa papers/
Reference databases;
see
.Xr refer 1 .
.It Pa special/
Custom word lists;
see
.Xr spell 1 .
.El
.Pp
.It Pa doc/
Miscellaneous documentation.
.It Pa games/
Data files used by various games.
.It Pa i18n/
internationalization databases; see
.Xr iconv 3 .
.It Pa locale/
Locale databases and gettext message catalogs; see
.Xr setlocale 3
and
.Xr gettext 3 .
.It Pa man/
Manual pages.
.It Pa me/
Macros for use with the
.Xr me 7
roff macro package.
.It Pa misc/
Miscellaneous system-wide text files.
.Pp
.Bl -tag -width "terminfo.cdb" -compact
.It Pa terminfo
Terminal characteristics database;
see
.Xr terminfo 5 .
.It Pa terminfo.cdb
database form of terminfo file; see
.Xr tic 1 .
.El
.Pp
.It Pa mk/
Include files for
.Xr make 1 .
.It Pa ms/
Macros for use with the
.Xr ms 7
roff macro package.
.It Pa nls/
Message catalogs; see
.Xr catgets 3 .
.It Pa tmac/
Text processing macros;
see
.Xr nroff 1
and
.Xr troff 1 .
.It Pa zoneinfo/
Time zone database;
see
.Xr tzfile 5 .
.El
.It Pa tests/
Test programs; see
.Xr tests 7
for information on how to run them.
.El
.It Pa /usr/src/
.Nx
and local source files.
.Pp
.Bl -tag -width "domestic/" -compact
.It Pa bin/
Source for utilities/files in
.Pa /bin .
.It Pa common/
Sources shared between kernel and userland.
.It Pa crypto/
Cryptographic source, which may have import or export restrictions.
.It Pa dist/
Third-party
.Sq virgin
source code, referenced by other parts of the source tree.
(Deprecated; use
.Pa external/
instead.)
.It Pa distrib/
Tools and data files for making
.Nx
releases and distributions.
.It Pa doc/
Documentation about the source tree (i.e., about the tree, not about
how to use the software in the tree.)
.It Pa etc/
Source (usually example files) for files in
.Pa /etc .
.It Pa external/
Source for programs from external third parties
(where
.Nx
is the not the primary maintainer),
grouped by license, and then products per license.
.Pp
.Bl -tag -width "intel-fw-public/" -compact
.It Pa apache2/
Apache 2.0 license.
.It Pa bsd/
BSD (or equivalent) licensed software,
possibly with the
.Dq advertising clause .
.It Pa broadcom/
Broadcom firmware license.
.It Pa cddl/
Common Development and Distribution License (the Sun license which is
based on the Mozilla Public License version 1.1).
.It Pa gpl2/
GNU Public License, version 2 (or earlier).
.It Pa gpl3/
GNU Public License, version 3.
.It Pa historical/
Lucent's old license.
.It Pa ibm-public/
IBM's public license.
.It Pa intel-fw-eula/
Intel firmware license with redistribution restricted to OEM.
.It Pa intel-fw-public/
Intel firmware license permitting redistribution with
terms similar to BSD licensed software.
.It Pa intel-public/
Intel license permitting redistribution with terms similar to
BSD licensed software.
.It Pa lgpl3/
GNU lesser general public license, version 3.
.It Pa mit/
MIT (X11) style license.
.It Pa mpl/
Mozilla Public License.
.It Pa zlib/
BSD-like zlib license.
.El
.Pp
.It Pa games/
Source for utilities/files in
.Pa /usr/games .
.It Pa include/
Source for files in
.Pa /usr/include .
.It Pa lib/
Source for libraries in
.Pa /usr/lib .
.It Pa libexec/
Source for utilities/files in
.Pa /usr/libexec .
.It Pa regress/
Various legacy regression tests.
.It Pa rescue/
Source/makefiles for
.Pa /rescue .
.It Pa sbin/
Source for utilities/files in
.Pa /sbin .
.It Pa share/
Source for files in
.Pa /usr/share .
.Pp
.Bl -tag -width "doc/" -compact
.It Pa doc/
.Pp
.Bl -tag -width "papers/" -compact
.It Pa papers/
Source for various historical technical papers (many from Berkeley).
.It Pa psd/
Source for Programmer's Supplementary Documents.
.It Pa smm/
Source for System Manager's Manual.
.It Pa usd/
Source for User's Supplementary Documents.
.El
.El
.It Pa sys/
Kernel source files.
.Pp
.Bl -tag -width "gdbscripts/" -compact
.It Pa arch/
Architecture-specific support.
.Pp
.Bl -tag -width "playstation2/" -compact
.It Pa acorn32/
Acorn RiscPC/A7000 and VLSI RC7500.
.It Pa algor/
Algorithmics Ltd. MIPS evaluations boards.
.It Pa alpha/
Digital/Compaq Alpha.
.It Pa amd64/
Computers with x86_64 capable CPUs.
.It Pa amiga/
Commodore Amiga and MacroSystem DraCo.
.It Pa amigappc/
PowerPC based Amiga boards.
.It Pa arc/
MIPS-based machines following the Advanced RISC Computing spec.
.It Pa arm/
ARM processor general support.
.It Pa atari/
Atari TT030, Falcon and Hades.
.It Pa bebox/
Be Inc. BeBox.
.It Pa cats/
Chalice Technology's CATS and Intel's EBSA-285 evaluation boards.
.It Pa cesfic/
CES FIC8234 VME processor board.
.It Pa cobalt/
Cobalt Networks' MIPS-based Microserver.
.It Pa dreamcast/
Sega Dreamcast game console.
.It Pa emips/
Machines based on Extensible MIPS.
.It Pa evbarm/
ARM based evaluation boards.
.It Pa evbmips/
MIPS based evaluation boards.
.It Pa evbppc/
PowerPC based evaluation boards and appliances.
.It Pa evbsh3/
SH3/SH4 based evaluation boards.
.It Pa ews4800mips/
NEC's MIPS based EWS4800 workstations.
.It Pa hp300/
Hewlett-Packard 9000/300 and 400 680x0-based workstations.
.It Pa hppa/
Hewlett-Packard 9000/700 and 9000/800 HPPA based workstations.
.It Pa hpcarm/
StrongARM based WinCE PDA machines.
.It Pa hpcmips/
MIPS based WinCE PDA machines.
.It Pa hpcsh/
Hitachi SH3/4 based WinCE PDA machines.
.It Pa hppa/
HPPA processor general support.
.It Pa i386/
32-bit 80x86-based IBM PCs and clones.
.It Pa ibmnws/
IBM Network Station 1000.
.It Pa iyonix/
Castle Technology's Iyonix ARM based PCs.
.It Pa luna68k/
Omron Tateishi Electric's 680x0-based LUNA workstations.
.It Pa m68k/
680x0 processor general support.
.It Pa mac68k/
Apple Macintosh with 68k CPU.
.It Pa macppc/
Apple Power Macintosh and clones.
.It Pa mips/
MIPS processor general support.
.It Pa mipsco/
MIPS Computer Systems Inc. family of workstations and servers.
.It Pa mmeye/
Brains Inc. SH3 based mmEye multimedia server.
.It Pa mvme68k/
Motorola MVME 680x0-based SBCs.
.It Pa mvmeppc/
Motorola PowerPC VME SBCs.
.It Pa netwinder/
StrongARM based NetWinder machines.
.It Pa news68k/
Sony's 680x0-based NEWS workstations.
.It Pa newsmips/
Sony's MIPS-based NEWS workstations.
.It Pa next68k/
NeXT 68k "black" hardware.
.It Pa ofppc/
Open Firmware PowerPC workstations.
.It Pa playstation2/
SONY PlayStation 2.
.It Pa pmax/
Digital MIPS-based DECstations and DECsystems.
.It Pa powerpc/
PowerPC processor general support.
.It Pa prep/
PReP (PowerPC Reference Platform) and CHRP (Common Hardware Reference
Platform) machines.
.It Pa sandpoint/
Motorola Sandpoint reference platform.
.It Pa sbmips/
Broadcom/SiByte evaluation boards.
.It Pa sgimips/
Silicon Graphics' MIPS-based workstations.
.It Pa sh3/
SH3/SH4 processor general support.
.It Pa shark/
Digital DNARD ("Shark").
.It Pa sparc/
Sun Microsystems SPARC (32-bit) and UltraSPARC (in 32-bit mode).
.It Pa sparc64/
Sun Microsystems UltraSPARC (in native 64-bit mode).
.It Pa sun2/
Sun Microsystems 68010-based Sun 2 architecture.
.It Pa sun3/
Sun Microsystems 68020/68030-based Sun 3/3x architecture.
.It Pa sun68k/
680x0-based Sun architecture general support.
.It Pa vax/
Digital VAX.
.It Pa x68k/
Sharp X680x0 680x0-based workstations.
.It Pa x86/
General support for PC/AT compatibles with ia32 or x86_64 CPUs.
.It Pa xen/
The Xen virtual machine monitor.
.It Pa zaurus/
Sharp C3x00 Arm based PDA.
.El
.Pp
.It Pa compat/
Kernel compatibility modules directory.
.Pp
.Bl -tag -width "ossaudio/" -compact
.It Pa common/
Common compatibility routines, old
.Bx 4
and
.Nx
routines.
.It Pa freebsd/
Support for
.Fx
binaries; see
.Xr compat_freebsd 8 .
.It Pa hpux/
Support for 68000 HP-UX binaries.
.It Pa linux/
Support for Linux binaries; see
.Xr compat_linux 8 .
.It Pa m68k4k/
Support for 4KB page 68000 binaries.
.It Pa netbsd32/
Support for
.Nx
32-bit binaries on 64 bit platforms with compatible CPU families.
.It Pa ossaudio/
Support for OSS audio.
.It Pa sunos/
Support for SunOS 4.x binaries; see
.Xr compat_sunos 8 .
.It Pa ultrix/
Support for ULTRIX binaries.
.It Pa vax1k/
Support for older VAX binaries that started on a 1 KB boundary.
.El
.Pp
.It Pa conf/
Architecture independent configuration directory.
.It Pa crypto/
Cryptographic kernel source, which may have import or export restrictions.
.It Pa ddb/
In-kernel debugger.
.It Pa dev/
Architecture independent device support.
.It Pa fs/
File systems.
See also
.Pa ufs/
and
.Pa miscfs/ .
.Bl -tag -width "filecorefs/" -compact
.It Pa adosfs/
AmigaDOS file-system support; see
.Xr mount_ados 8 .
.It Pa cd9660/
Support for the ISO-9660 file system; see
.Xr mount_cd9660 8 .
.It Pa filecorefs/
Support for the Acorn RISC OS filecore file system; see
.Xr mount_filecore 8 .
.It Pa msdosfs/
MS-DOS file system; see
.Xr mount_msdos 8 .
.It Pa ntfs/
NTFS file system support; see
.Xr mount_ntfs 8 .
.It Pa ptyfs/
Pseudo-terminal device file system; see
.Xr mount_ptyfs 8 .
.It Pa union/
Union file system; see
.Xr mount_union 8 .
.El
.It Pa gdbscripts/
Support for accessing kernel structures from within the debugger
.Xr gdb 1 .
.Pp
.It Pa kern/
Primary kernel source code.
.It Pa lib/
Libraries supporting the kernel.
.Pp
.Bl -tag -width "libkern/" -compact
.It Pa libkern/
C library routines used in the kernel.
.It Pa libsa/
Machine-independent standalone library, used by boot loaders.
.It Pa libz/
Compression library.
.El
.Pp
.It Pa miscfs/
More file systems.
.Pp
.Bl -tag -width "deadfs/" -compact
.It Pa deadfs/
Kernel only dead file system.
.It Pa fdesc/
File descriptor file system; see
.Xr mount_fdesc 8 .
.It Pa fifofs/
POSIX FIFO (named pipe) support.
.It Pa genfs/
Generic file system code that supports other file systems.
.It Pa kernfs/
Kernel namespace file system; see
.Xr mount_kernfs 8 .
.It Pa nullfs/
Loop back file system; see
.Xr mount_null 8 .
.It Pa overlay/
Overlay file system; see
.Xr mount_overlay 8 .
.It Pa procfs/
Process file system; see
.Xr mount_procfs 8 .
.It Pa specfs/
Support for block and character special files.
.It Pa syncfs/
Kernel trickle sync algorithm.
.It Pa umapfs/
User and group re-mapping file system; see
.Xr mount_umap 8 .
.El
.Pp
.It Pa net/
Miscellaneous networking support.
.It Pa netatalk/
AppleTalk networking support.
.It Pa netinet/
IP networking support.
.It Pa netinet6/
IPv6 networking support.
.It Pa netipsec/
Key database for IPsec networking support.
.It Pa nfs/
NFS (network file system) support, both client and server.
.It Pa stand/
Kernel standalone support.
.It Pa sys/
Kernel (and system) include files.
.It Pa ufs/
Still more file systems.
.Pp
.Bl -tag -width "ffs/" -compact
.It Pa chfs/
A FFS-based file system for use on raw flash.
.It Pa ext2fs/
The Linux ext2 file system.
.It Pa ffs/
The Berkeley Fast File System.
.It Pa lfs/
The Berkeley log-structured file system.
.It Pa mfs/
The in-memory file system.
.It Pa ufs/
Shared
.Ux
file system support.
.El
.It Pa uvm/
UVM virtual memory system.
.El
.It Pa tests/
Source for test programs in
.Pa /usr/tests .
.It Pa usr.bin/
Source for utilities/files in
.Pa /usr/bin .
.It Pa usr.sbin/
Source for utilities/files in
.Pa /usr/sbin .
.El
.It Pa /var/
Multi-purpose log, temporary, transient, and spool files.
.Pp
.Bl -tag -width "preserve/" -compact
.It Pa account/
System accounting files.
.Pp
.Bl -tag -width "acct" -compact
.It Pa acct
Execution accounting file;
see
.Xr acct 5 .
.El
.Pp
.It Pa at/
Timed command scheduling files;
see
.Xr at 1 .
.It Pa backups/
Miscellaneous backup files, largely of files found in
.Pa /etc .
.It Pa chroot/
Home directories of applications which are run in a
.Xr chroot 8
.Dq cage .
.It Pa crash/
System (kernel) crash dumps; see
.Xr savecore 8 .
.It Pa cron/
Scheduled commands configuration files; see
.Xr cron 8
and
.Xr crontab 5 .
.It Pa db/
Miscellaneous automatically generated system-specific database files,
and persistent files used in the maintenance of third party software.
.Pp
.Bl -tag -width "monthly.out" -compact
.It Pa pkg
Default location for metadata related to third party software
packages.
See
.Xr pkg_add 1
for more details of the
.Nx
Packages Collection, or pkgsrc.
.El
.Pp
.It Pa games/
Miscellaneous game status, log, and high score files.
.It Pa heimdal/
Kerberos 5 KDC database; see
.Xr kdc 8 .
.It Pa log/
Miscellaneous system log files.
.Pp
.Bl -tag -width "monthly.out" -compact
.It Pa amd.*
.Xr amd 8
logs.
.It Pa daily.out
Output of the last run of the
.Pa /etc/daily
script.
.It Pa ftp.*
.Xr ftp 1
logs.
.It Pa kerberos.*
.Xr kerberos 8
logs.
.It Pa lastlog
System last-time-logged-in database; see
.Xr utmp 5 .
.It Pa lpd-errs.*
Printer daemon error logs; see
.Xr lpd 8 .
.It Pa maillog.*
.Xr sendmail 1
and
.Xr postfix 1
(and other mail-related)
log files.
.It Pa messages.*
General system information log.
.It Pa monthly.out
Output of the last run of the
.Pa /etc/monthly
script.
.It Pa secure
Sensitive security information log.
.It Pa sendmail.st
.Xr sendmail 1
statistics.
.It Pa timed.*
.Xr timed 8
logs.
.It Pa weekly.out
Output of the last run of the
.Pa /etc/weekly
script.
.It Pa wtmp
Login and logout log;
see
.Xr utmp 5 .
.It Pa wtmpx
Another login and logout log; see
.Xr utmpx 5 .
.El
.Pp
.It Pa mail/
User e-mail inboxes.
.It Pa msgs/
System messages; see
.Xr msgs 1 .
.\" since we use nvi (now called vi) this isn't the place any more, is it?
.It Pa preserve/
Temporary home of files preserved after an accidental death of
.Xr ex 1
or
.Xr vi 1 .
.It Pa quotas/
File system quota information.
(Legacy.)
.It Pa run/
System information files, rebuilt after each reboot.
.Pp
.Bl -tag -width "utmp" -compact
.It Pa dmesg.boot
A dump from
.Xr dmesg 8
taken at boot time.
.It Pa utmp
Database of currently logged in users; see
.Xr utmp 5 .
.It Pa utmpx
Another database of currently logged in users; see
.Xr utmpx 5 .
.El
.Pp
.It Pa rwho/
Rwho data files; see
.Xr rwhod 8 ,
.Xr rwho 1 ,
and
.Xr ruptime 1 .
.It Pa spool/
Miscellaneous printer and mail system spooling directories.
.Pp
.Bl -tag -width "postfix/" -compact
.It Pa ftp/
Commonly
.Dq ~ftp ,
the anonymous ftp root directory; see
.Xr ftpd 8 .
.It Pa mqueue/
Sendmail mail queue;
see
.Xr sendmail 1 .
.It Pa news/
Network news archival and spooling directories.
.It Pa output/
Printer spooling directories.
.It Pa postfix/
Postfix mail queue;
see
.Xr postfix 1 .
.El
.Pp
.It Pa tmp/
Temporary files that are not discarded between system reboots.
.Pp
.Bl -tag -width "vi.recover/" -compact
.It Pa vi.recover/
Recovery directory for new (current)
.Xr vi 1 .
.El
.Pp
.It Pa yp/
Databases and configuration for the NIS (YP) system; see
.Xr nis 8 .
.El
.El
.Sh SEE ALSO
.Xr apropos 1 ,
.Xr ls 1 ,
.Xr whatis 1 ,
.Xr whereis 1 ,
.Xr which 1 ,
.Xr paths 3
.Sh HISTORY
A
.Nm
manual page appeared in
.At v7 .