$HomeDirectory

$HomeDirectory

gives your "home" directory.

Details

  • $HomeDirectory returns the full name of the directory as a string.
  • On multiuser operating systems, $HomeDirectory gives the main directory for the current user.

Examples

Basic Examples  (1)

Your home directory on the current system:

In[1]:=
Click for copyable input
Out[1]=

See Also

Directory  ParentDirectory  $UserDocumentsDirectory  $UserName  $UserBaseDirectory  $InstallationDirectory  $BaseDirectory  $InitialDirectory  $RootDirectory

Tutorials

Introduced in 1996
(3.0)