This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
[an error occurred while processing this directive] $HomeDirectory

  • $HomeDirectory gives your "home" directory.
  • $HomeDirectory returns the full name of the directory as a string.
  • On multi-user operating systems, $HomeDirectory gives the main directory for the current user.
  • See the Mathematica book: Section 2.11.4.
  • See also: Directory, ParentDirectory, $UserName, $LaunchDirectory, $TopDirectory.