221 lines
5.1 KiB
HTML
221 lines
5.1 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<HTML
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>/home</TITLE
|
||
|
><META
|
||
|
NAME="GENERATOR"
|
||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
||
|
REL="HOME"
|
||
|
TITLE="Linux Filesystem Hierarchy"
|
||
|
HREF="index.html"><LINK
|
||
|
REL="UP"
|
||
|
TITLE="Linux Filesystem Hierarchy"
|
||
|
HREF="c23.html"><LINK
|
||
|
REL="PREVIOUS"
|
||
|
TITLE="/etc"
|
||
|
HREF="etc.html"><LINK
|
||
|
REL="NEXT"
|
||
|
TITLE="/initrd"
|
||
|
HREF="initrd.html"></HEAD
|
||
|
><BODY
|
||
|
CLASS="sect1"
|
||
|
BGCOLOR="#FFFFFF"
|
||
|
TEXT="#000000"
|
||
|
LINK="#0000FF"
|
||
|
VLINK="#840084"
|
||
|
ALINK="#0000FF"
|
||
|
><DIV
|
||
|
CLASS="NAVHEADER"
|
||
|
><TABLE
|
||
|
SUMMARY="Header navigation table"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TH
|
||
|
COLSPAN="3"
|
||
|
ALIGN="center"
|
||
|
>Linux Filesystem Hierarchy: </TH
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="etc.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="80%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="bottom"
|
||
|
>Chapter 1. Linux Filesystem Hierarchy</TD
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="initrd.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"></DIV
|
||
|
><DIV
|
||
|
CLASS="sect1"
|
||
|
><H1
|
||
|
CLASS="sect1"
|
||
|
><A
|
||
|
NAME="home"
|
||
|
></A
|
||
|
>1.7. /home</H1
|
||
|
><P
|
||
|
>Linux is a multi-user environment so each user is also
|
||
|
assigned a specific directory that is accessible only to them
|
||
|
and the system administrator. These are the user home directories,
|
||
|
which can be found under '/home/$USER' (~/). It is your playground:
|
||
|
everything is at your command, you can write files, delete them,
|
||
|
install programs, etc.... Your home directory contains your
|
||
|
personal configuration files, the so-called dot files (their name
|
||
|
is preceded by a dot). Personal configuration files are usually 'hidden',
|
||
|
if you want to see them, you either have to turn on the appropriate
|
||
|
option in your file manager or run ls with the -a switch. If there is
|
||
|
a conflict between personal and system wide configuration files, the
|
||
|
settings in the personal file will prevail. </P
|
||
|
><P
|
||
|
>Dotfiles most likely to be altered by the end user are probably
|
||
|
your .xsession and .bashrc files. The configuration files for X and
|
||
|
Bash respectively. They allow you to be able to change the window
|
||
|
manager to be startup upon login and also aliases, user-specified
|
||
|
commands and environment variables respectively. Almost always when a
|
||
|
user is created their dotfiles will be taken from the /etc/skel directory
|
||
|
where system administrators place a sample file that user's can modify to
|
||
|
their hearts content.</P
|
||
|
><P
|
||
|
>/home can get quite large and can be used for storing downloads,
|
||
|
compiling, installing and running programs, your mail, your collection
|
||
|
of image or sound files etc.</P
|
||
|
><P
|
||
|
>The FSSTND states that:</P
|
||
|
><P
|
||
|
><TABLE
|
||
|
BORDER="0"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="screen"
|
||
|
> /home is a fairly standard concept, but it is clearly a site-specific
|
||
|
filesystem.
|
||
|
|
||
|
Different people prefer to place user accounts in a variety of places.
|
||
|
This section describes only a suggested placement for user home
|
||
|
directories; nevertheless we recommend that all FHS-compliant
|
||
|
distributions use this as the default location for home directories.
|
||
|
On small systems, each user's directory is typically one of the many
|
||
|
subdirectories of /home such as /home/smith, /home/torvalds,
|
||
|
/home/operator, etc. On large systems (especially when the /home
|
||
|
directories are shared amongst many hosts using NFS) it is useful
|
||
|
to subdivide user home directories. Subdivision may be accomplished by
|
||
|
using subdirectories such as /home/staff, /home/guests, /home/students,
|
||
|
etc.
|
||
|
|
||
|
The setup will differ from host to host. Therefore, no program
|
||
|
should rely on this location.
|
||
|
|
||
|
If you want to find out a user's home directory, you should use the
|
||
|
getpwent(3) library function rather than relying on /etc/passwd because
|
||
|
user information may be stored remotely using systems such as NIS.
|
||
|
|
||
|
User specific configuration files for applications are stored in the
|
||
|
user's home directory in a file that starts with the '.' character
|
||
|
(a "dot file"). If an application needs to create more than one dot
|
||
|
file then they should be placed in a subdirectory with a name starting
|
||
|
with a '.' character, (a "dot directory"). In this case the
|
||
|
configuration files should not start with the '.' character.
|
||
|
|
||
|
It is recommended that apart from autosave and lock files programs
|
||
|
should refrain from creating non dot files or directories in a home
|
||
|
directory without user intervention.
|
||
|
</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></P
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="NAVFOOTER"
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"><TABLE
|
||
|
SUMMARY="Footer navigation table"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="etc.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="index.html"
|
||
|
ACCESSKEY="H"
|
||
|
>Home</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="initrd.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
>/etc</TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="c23.html"
|
||
|
ACCESSKEY="U"
|
||
|
>Up</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
>/initrd</TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></DIV
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|