Recent Changes - Search:


edit SideBar


= Linux file system

/usr Contains files and sub-directories which may be shared between machines. Important sub-directories include:

  • /usr/lib which contains programming and language libraries
  • /usr/local which provides the location for user-specific programs andfiles
  • /usr/include for C #include files

/etc all configuration files should be in here (often in subdirectories)

/home contains home directories for all users on the system. /home/paul would therefore be the home directory for user paul.

/bin contains fundamental executable files (commands or programs) used by users. Only the basic ones are here, most are in /usr/local/bin, but usually a user doesn’t care where the executable is actually stored. which <commandname> will tell you where an executable actually resides.

/sbin includes executable files which are for system administration, as opposed to programs used by users. An example of this would be the shutdown command which closes the system down properly.

/mnt location for mounting filesystems. For supplementary information, consult Section 10.4.4

/tmp a directory which provides the temporary location for different programs. /tmp files tend to be deleted when the system is re-booted.

/dev contains special pseudo files which give access to devices like the keyboard -

  • /dev/kbd - and the virtual terminals - /dev/console, /dev/tty0 and /dev/tty1.

/var a directory which contains files which can grow through usage. Typical examples include email message files and system accounting files.

  • /var/adm for per-process accounting records
  • /var/tmp for temporary files which are not deleted at re-boot time.
  • /var/spool for running system processes. /var/spool/mail would be a typical file in this sub-directory

on the NSLU2, unslung, we’ll find

/share/hdd which points to the external devices

  • /share/hdd/conf/ for Linux configuration
  • /share/hdd/conf/ with ./opt/var, ./usr/lib/,
Edit - History - Print - Recent Changes - Search
Page last modified on May 31, 2005, at 11:13 PM EST