Home directory

From Wikipedia, the free encyclopedia

In computing, a home directory is a directory which contains the personal files of a particular user of the system.

Separating user data from system-wide data avoids redundancy and makes backups of important files relatively simple. Furthermore, Trojan horses, viruses and worms running under the user's name and with their privileges will in most cases only be able to alter the files in the user's home directory, and perhaps some files belonging to workgroups the user is a part of, but not actual system files.

On Unix and Unix-like systems, this includes configuration files (usually hidden, i.e. starting with a .), documents, locally installed programs, etc. The home directory is defined as part of the user's account data (e.g. in the /etc/passwd file). On many systems - including most distributions of Linux and variants of BSD (e.g. OpenBSD) - the home directory for each user takes the form /home/username (where username is the name of the user account). The home directory of the superuser account (usually named root) is traditionally /, but on many newer systems it is located at /root (Linux, BSD), or /var/root (Mac OS X).

This convention is not universal, however: in NeXTSTEP, OPENSTEP, and Mac OS X, users' home directories are stored in /Users/username. However in NeXTSTEP and OPENSTEP in a single user, non-networked setup, there is a restricted me account in tandem with the standard unrestricted root account, which stores its users' files in /me. In Solaris, home directories are located in /home, but this is actually the mount point of the automounter, which mounts home directories as needed from a file server, or /export/home on the local system. Older Unix systems often used paths such as /u01 or /var/users.

An additional Unix naming convention (originating from the csh shell) is that ~user can be used as shorthand for referring to the home directory belonging to user, whatever its location on the filesystem. This is why many web servers are configured to show a user's personal website when a URL such as http://www.catb.org/~esr/ is accessed (in this example, the username is esr). A further shorthand allows a user to refer to their own home directory simply as ~.

In Microsoft Windows, a number of different conventions have been used. Assuming the operating system has been installed on the C: drive, Windows 9x operating systems have stored user documents in C:\My Documents\. Windows NT systems released in the 1990s (that is, prior to Windows 2000), store their profiles in the C:\Profiles directory. In Windows 2000, Windows XP and Windows Server 2003, this directory is called C:\Documents and Settings. In Windows Vista and Windows Server "Longhorn", it is, simply, C:\Users. In all cases, the user's name is appended to the directory name. Additionally, these terms are localized into the language of the installed operating system. For this reason, the shell expansion %HOMEPATH% is used so that the correct directory can always be found.

In the VMS operating system, a user's home directory is called the "root directory" (which means the top of the file hierarchy in Unix, and the root directory of a partition in DOS/Windows/AmigaOS), and the equivalent of a DOS/Windows/AmigaOS "root directory" is referred to as the Master File Directory.

Single-user operating systems (which may be used by more than one person, but which are called "single-user" because they do not differentiate between different owners' files) typically do not have home directories, though they may have separate disks or partitions which may or may not be used for this purpose. For example, AmigaOS versions 2 and up have "System" and "Work" partitions on hard disks by default. The BeOS (and its successors) have a /home directory which contain the files belonging to the single user of the system.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.