Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Home directory

From Wikipedia, the free encyclopedia
Directory to hold files for a specific user
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Home directory" – news ·newspapers ·books ·scholar ·JSTOR
(July 2009) (Learn how and when to remove this message)

Ahome directory is afile system directory on amulti-useroperating system containingfiles for a givenuser of the system. The specifics of the home directory (such as its name and location) are defined by the operating system involved; for example,Linux /BSD (FHS) systems use/home/⟨username⟩ or/usr/home/⟨username⟩,macOS uses/Users/⟨username⟩, andWindows systems sinceWindows Vista use\Users\⟨username⟩.[1]

Description

[edit]

A user's home directory is intended to contain that user's files; including text documents, music, pictures, videos, etc.[2] It may also include theirconfiguration files of preferred settings for any software they have used there and might have tailored to their liking:web browserbookmarks, favoritedesktopwallpaper andthemes, storedpasswords to any external services accessed via a given software, etc. The user can install executable software in this directory, but it will only be available to users with permission to execute files in this directory. The home directory can be organized further with the use of sub-directories.

The content of a user's home directory is protected byfile-system permissions, and by default is accessible to all authenticated users and administrators.[3] Any other user that has been granted administrator privileges has authority to access any protected location on thefile system including other users' home directories.

Benefits

[edit]

Separating user data from system-wide data avoids redundancy (the same system files can be used by between different users) and makes backups of files that are important for a specific user simpler.

Furthermore,Trojan horses,viruses, andworms 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 actualsystem files, reducing the chances of harming the functioning of the operating system.[4]

Location

[edit]
Location per operating system[1]
Operating systemPathEnvironment variable
AT&T Unix (original version)/usr/⟨username⟩$HOME
Unix-derived/var/users/⟨username⟩
/u01/⟨username⟩
/usr/⟨username⟩
/user/⟨username⟩
/users/⟨username⟩
Unix-based[5]/home/⟨username⟩
BSD /Linux (FHS)/home/⟨username⟩ or/usr/home/⟨username⟩
SunOS /Solaris/export/home/⟨username⟩
macOS/Users/⟨username⟩
Android/data/media/⟨userid⟩
Windows NT 4.0\WINNT\Profiles\⟨username⟩%USERPROFILE%
%HOMEDRIVE%%HOMEPATH%
Windows 2000,XP, andServer 2003\Documents and Settings\⟨username⟩
Windows Vista and later\Users\⟨username⟩

Subdirectories

[edit]

The file/etc/xdg/user-dirs.defaults on many Linux systems defines the subdirectories created for users by default. Creation is normally done with the first login by Xdg-user-dirs, a tool to help manage "well known" user directories likedesktop,downloads,documents,pictures,videos, ormusic. The tool is also capable oflocalization (i.e. translation) of the folders' names.[6]

Other features

[edit]

Unix

[edit]

In Unix, theworking directory is automatically set to a user's home directory when theylog in. In many built-in commands, typing the~ (tilde) character is equivalent to specifying the current user's home directory.

The Unixsuperuser has access to all directories on the file system, and hence can access home directories of all users. The superuser's home directory on older systems was/, but on many newer systems it is located at/root (Linux, BSD), or/var/root (macOS).

VMS

[edit]

In theOpenVMS operating system, a user's home directory is called theroot directory, and the equivalent of a Unix/DOS/Windows/AmigaOSroot directory is referred to as theMaster File Directory.[7][8]

Single-user operating systems

[edit]

Single-user operating systems simply have a single directory orpartition for all user files, there is no individual directory setup per user (though users can still setup and maintain directories inside this main working directory manually).

  • AmigaOS versions 2 and up have "System" and "Work" partitions on hard disks by default.
  • BeOS (and its successors) have a /home directory which contains the files belonging to the single user of the system.
  • Versions of Windows priorWindows 95 OEM Service Release 2 did not have a user folder but, since that release,C:\My Documents became in-effect the single user's home directory.
  • NeXTSTEP andOPENSTEP in a single-user, non-networked setup,/me is used, as well as/root when logged in as superuser.

See also

[edit]

References

[edit]
  1. ^ab"Where is my user home directory?".DownUnder GeoSolutions. Retrieved22 February 2024.
  2. ^"What is a Home Directory? – TecAdmin". 2023-05-15. Retrieved2023-09-23.
  3. ^Brown, Paul."Classic SysAdmin: The Linux Filesystem Explained".The Linux Foundation. The Linux Foundation. Retrieved8 December 2023.
  4. ^Shimeall, Timothy J.; Spring, Jonathan M. (2014).Introduction to information security: a strategic-based approach (First ed.). Amsterdam Heidelberg: Syngress, an imprint of Elsevier.ISBN 978-1-59749-969-9.
  5. ^"Home Directory Definition". Accessed on July 23, 2009
  6. ^"Xdg-user-dirs-0.17 – Beyond Linux From Scratch (System V Edition), Chapter 11. General Utilities".linuxfromscratch.org. Retrieved2022-02-01.
  7. ^"OpenVMS User's Manual".odl.sysworks.biz. Retrieved8 December 2023.
  8. ^"Master file directory - VSI OpenVMS Wiki".wiki.vmssoftware.com. Retrieved8 December 2023.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Home_directory&oldid=1292822286"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp