Unix filesystem: Difference between revisions

Content deleted Content added
J0rd1 (talk | contribs)
m alignment
Undid revision 880962765 by J0rd1 (talk) - they're *supposed* to be aligned that way; subdirectories of /usr and /var should be indented under the entries for /usr and /var.
Line 34:
!Description
|-
:|<code>/</code>
|
:<code>/</code>
|The slash <code>/</code> character alone denotes the root of the filesystem tree.
|-
Line 107 ⟶ 106:
|-
|
::<code>/include</code>
|Stores the development headers used throughout the system. [[Header file]]s are mostly used by the <code>#include</code> directive in [[C (programming language)|C]] language, which historically is how the name of this directory was chosen.
|-
|
::<code>/lib</code>
|Stores the needed libraries and data files for programs stored within <code>/usr</code> or elsewhere.
|-
|
::<code>/libexec</code>
|Holds programs meant to be executed by other programs rather than by users directly. E.g., the [[Sendmail]] executable may be found in this directory.<ref>{{cite web |url=http://docs.cray.com/books/S-2341-22/html-S-2341-22/z1028736068smg.html |website=[[UNICOS]]/mp Networking Facilities Administration |publisher=[[Cray]] |title=Chapter 7. sendmail |accessdate=14 September 2013}}</ref> Not present in the FHS until 2011;<ref>{{cite web |url=http://bzr.linuxfoundation.org/loggerhead/lsb/devel/fhs-spec/revision/44 |title=fhs-spec revision 44}}</ref> Linux distributions have traditionally moved the contents of this directory into <code>/usr/lib</code>, where they also resided in 4.3BSD.
|-
|
::<code>/local</code>
|Resembles <code>/usr</code> in structure, but its subdirectories are used for additions not part of the operating system distribution, such as custom programs or files from a [[BSD]] [[Ports collection]]. Usually has subdirectories such as <code>/usr/local/lib</code> or <code>/usr/local/bin</code>.
|-
|
::<code>/share</code>
|Architecture-independent program data. On Linux and modern BSD derivatives, this directory has subdirectories such as <code>man</code> for [[manpage]]s, that used to appear directly under <code>/usr</code> in older versions.
|-
Line 131 ⟶ 130:
|-
|
::<code>/log</code>
|Contains system log files.
|-
|
::<code>/mail</code>
|The place where all incoming mail is stored. Users (other than <code>root</code>) can access their own mail only. Often, this directory is a [[symbolic link]] to <code>/var/spool/mail</code>.
|-
|
::<code>/spool</code>
|[[spooling|Spool]] directory. Contains print jobs, mail spools and other queued tasks.
|-
|
::<code>/src</code>
|The place where the uncompiled source code of some programs are.
|}