.TH HIER 7 .UC .SH NAME hier \- file system hierarchy .SH DESCRIPTION The following outline gives a quick tour through a representative directory hierarchy. .na .nh .IP / root .PD 0 .IP /dev/ devices (4) .RS .IP console main console, .IR tty (4) .IP tty* terminals, .IR tty (4) .IP cat phototypesetter .IR cat (4) .IP rp* disks, .I rp, .IR hp (4) .IP rrp* raw disks, .I rp, .IR hp (4) .IP ... .RE .IP /bin/ utility programs, cf /usr/bin/ (1) .RS .IP as assembler first pass, cf /usr/lib/as2 .IP cc C compiler executive, cf /usr/lib/c[012] .IP ... .RE .IP /lib/ object libraries and other stuff, cf /usr/lib/ .RS .IP libc.a system calls, standard I/O, etc. (2,3,3S) .IP libm.a math routines (3M) .IP libplot.a plotting routines, .IR plot (3X) .IP ... .IP as2 second pass of .IR as (1) .IP c[012] passes of .IR cc (1) .IP ... .RE .IP /etc/ essential data and dangerous maintenance utilities .RS .IP passwd password file, .IR passwd (5) .IP group group file, .IR group (5) .IP motd message of the day, .IR login (1) .IP mtab mounted file table, .IR mtab (5) .IP dtab device table for .IR autoconfig (8) .IP ddate dump history, .IR dump (8) .IP ttys properties of terminals, .IR ttys (5) .IP getty part of .IR login , .IR getty (8) .IP init the father of all processes, .IR init (8) .IP rc shell program to bring the system up .IP cron the clock daemon, .IR cron (8) .IP mount .IR mount (8) .IP wall .IR wall (8) .IP ... .RE .IP /tmp/ temporary files, usually on a fast device, cf /usr/tmp/ .RS .IP e* used by .IR ed (1) .IP ctm* used by .IR cc (1) .IP ... .RE .IP /usr/ general-pupose directory, usually a mounted file system .RS .IP adm/ administrative information .RS .IP wtmp login history, .IR utmp (5) .IP messages hardware error messages .IP tracct phototypesetter accounting, .IR troff (1) .IP vpacct line printer accounting .IR lpr (1) .RE .RE .IP /usr\t/bin .RS utility programs, to keep /bin/ small .IP tmp/ temporaries, to keep /tmp/ small .RS .IP stm* used by .IR sort (1) .IP raster used by .IR plot (1) .RE .IP dict/ word lists, etc. .RS .IP words principal word list, used by .IR look (1) .IP spellhist history file for .IR spell (1) .RE .IP games/ .RS .IP bj blackjack .IP hangman .IP quiz.k/ what .IR quiz (6) knows .RS .IP index category index .IP africa countries and capitals .IP ... .RE .IP ... .RE .IP include/ standard #include files .RS .IP a.out.h object file layout, .IR a.out (5) .IP stdio.h standard I/O, .IR stdio (3) .IP math.h (3M) .IP ... .IP sys/ system-defined layouts .RS .IP acct.h process accounts, .IR acct (5) .IP buf.h internal system buffers .IP ... .RE .RE .IP lib/ object libraries and stuff, to keep /lib/ small .RS .IP lint[12] subprocesses for .IR lint (1) .IP libF77.a Fortran runtime support .IP libI77.a Fortran I/O .IP llib-lc dummy declarations for /lib/libc.a, used by .IR lint (1) .IP llib-lm dummy declarations for /lib/libm.a .IP atrun scheduler for .IR at (1) .IP struct/ passes of .IR struct (1) .IP ... .IP tmac/ macros for .IR troff (1) .RS .IP tmac.an macros for .IR man (7) .IP tmac.s macros for .IR ms (7) .IP ... .RE .IP font/ fonts for .IR troff (1) .RS .IP R Times Roman .IP B Times Bold .IP ... .RE .IP uucp/ programs and data for .IR uucp (1) .RS .IP L.sys remote system names and numbers .IP uucico the real copy program .IP ... .RE .IP units conversion tables for .IR units (1) .IP eign list of English words to be ignored by .IR ptx (1) .RE .RE .IP /usr/\tman/ .RS volume 1 of this manual, .IR man (1) .RS .IP man0/ general .RS .IP intro introduction to volume 1, .IR ms (7) format .IP template template for manual page .RE .IP man1/ chapter 1 .RS .IP as.1 .IP at.1 .IP ... .RE .IP cat1/ preprinted pages for man1/ .RS .IP as.1 .IP at.1 .RE .IP ... .RE .IP spool/ delayed execution files .RS .IP at/ used by .IR at (1) .IP lpd/ used by .IR lpr (1) .RS .IP lock present when line printer is active .IP cf* copy of file to be printed, if necessary .IP df* daemon control file, .IR lpd (8) .IP tf* transient control file, while .I lpr is working .RE .IP uucp/ work files and staging area for .IR uucp (1) .RS .IP LOGFILE summary log .IP LOG.* log file for one transaction .RE .RE .IP mail/ mailboxes for .IR mail (1) .RS .TP .I uid mail file for user .I uid .RE .TP .I wd initial working directory of a user, typically .I wd is the user's login name .RS .TP .BR . profile set environment for .IR sh (1), .IR environ (5) .IP calendar user's datebook for .IR calendar (1) .RE .IP doc/ papers, mostly in volume 2 of this manual, typically in .IR ms (7) format .RS .IP as/ assembler manual .IP c C manual .IP ... .RE .RE .IP /usr/\tsrc/ .RS source programs for utilities, etc. .RS .IP cmd/ source of commands .RS .IP as/ assembler .RS .IP makefile recipe for rebuilding the assembler .IP as1?.s source of pass1 .RE .IP ar.c source for .IR ar (1) .IP ... .IP troff/ source for .I nroff and .IR troff (1) .RS .IP nmake makefile for .I nroff .IP tmake makefile for .I troff .IP font/ source for font tables, /usr/lib/font/ .RS .IP ftR.c Roman .IP ... .RE .IP term/ terminal characteristics tables, /usr/lib/term/ .RS .IP tab300.c DASI 300 .IP ... .RE .IP ... .RE .RE .IP sys/ system source .RS .IP dev/ device drivers .RS .IP bio.c common code .IP cat.c .IR cat (4) .IP dh.c DH11, .IR tty (4) .IP tty .IR tty (4) .IP ... .RE .IP MACHINEID/ hardware-dependent code for machine MACHINEID .RS .IP ioconf.c local device specifications .IP l.s interrupt vectors .IP param.c tunable parameters .IP ... .RE .IP sys/ source for system proper .RS .IP main.c .IP pipe.c .IP sysent.c system entry points .IP ... .RE .IP stand/ source for standalone utilities .RS .IP restor.c .IP libsa/ .IP mtboot.s .RE .IP bootstrap/ source for second-stage boot .RS .IP boot.c .IP M.s .RE .IP mdec/ source for device-dependent first-stage boot .RS .IP hpuboot.s .IP rkuboot.s .IP ... .RE .RE .IP lib/c/ source for functions in /lib/libc.a .RS .IP crt/ C runtime support .RS .IP ldiv.s division into a long .IP lmul.s multiplication to produce long .IP ... .RE .IP csu/ startup and wrapup routines needed with every C program .RS .IP crt0.s regular startup .IP mcrt0.s modified startup for .I cc \-p .RE .IP sys/ system calls (2) .RS .IP access.s .IP alarm.s .IP ... .RE .IP stdio/ standard I/O functions (3S) .RS .IP fgets.c .IP fopen.c .IP ... .RE .IP gen/ other functions in (3) .RS .IP abs.c .IP atof.c .IP ... .RE .IP compall shell procedure to compile libc .IP mklib shell procedure to make /lib/libc.a .RE .IP lib/libI77/ source for /usr/lib/libI77.a .IP lib/libF77/ .IP ... .IP games/ source for /usr/games .RE .RE .ad .SH SEE ALSO find(1), grep(1), ls(1), ncheck(8), .SH BUGS The position of files is subject to change without notice.