Linux Filesystem Organization

From wiki.emacinc.com
Revision as of 23:20, 17 December 2013 by Mdean (talk | contribs) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
TODO: {{#todo:Finish this|Mike Dean|oe 4,oe 5,md,InProgress}}

Directories for Storing Files on a Machine

Temporary Files:

The standard ramdisk on an EMAC OE machine, used for storing temporary files of any kind, is located in:

/var/volatile/

Executables:

There are two different directories commonly used for installing custom written software. The directories listed here are given according to the Free Desktop Standard, which is a standard by which most Linux systems conform.

This first directory is the standard location for executables which were written for a specific, individual machine:

/usr/local/bin

The next directory is intended to be used for non-free (Company developed and owned) software:

/opt/CompanyName/bin

Since the CompanyName is specific to the company which produced the software, this directory will often also contain some other standard subdirectories:

/opt/CompanyName/etc/
/opt/CompanyName/usr/
/opt/CompanyName/lib/
/opt/CompanyName/var/

Configuration Files:

Configuration files should either go in:

/etc/

Or, if a directory in /opt/ was created, in:

/opt/CompanyName/etc/

Initialization Scripts:

Scripts which are used to automatically start a program on boot and, if needed, stop it on shutdown, should be located here:

/etc/init.d/