A user's home directory is intended to contain that user's files; including text documents, music, pictures or videos, etc. It may also include their configuration files of preferred settings for any software they have used there and might have tailored to their liking: web browserbookmarks, favorite desktop wallpaper and themes, passwords 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 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 by file system permissions, and by default is accessible to all authenticated users and administrators. Any other user that has been granted administrator privileges has authority to access any protected location on the filesystem including other users home directories.
Benefits
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.
Default home directory per operating system
Subdirectories
The file on many Linux systems defines the subdirectories created for users by default.
Other features per operating system
Unix
In Unix, a user will be automatically placed into their home directory upon login. The ~user shorthand variable refers to a user's home directory. The ~ shorthand command refers to that particular user's home directory. The Unix superuser has access to all directories on the filesystem, 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, or /var/root.
VMS
In the OpenVMS operating system, a user's home directory is called the "root directory", and the equivalent of a Unix/DOS/Windows/AmigaOS "root directory" is referred to as the "Master File Directory".
BeOS have a /home directory which contain the files belonging to the single user of the system.
Versions of Windows prior Windows 95OEM Service Release 2 did not have a user folder, but since that release, \My Documents became in effect the single user's home directory.
NeXTSTEP and OPENSTEP in a single user, non-networked setup, /me is used, as well as /root when logged in as superuser.