This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

$UserBaseDirectory

$UserBaseDirectory
gives the base directory in which user-specific files to be loaded by Mathematica are conventionally placed.
  • Typical values are:
C:\DocumentsSpaceIndicatorandSpaceIndicatorSettings\username\ApplicationSpaceIndicatorData\Mathematica
Windows
~/Library/MathematicaMacintosh
~/.MathematicaUnix
  • The value of $UserBaseDirectory can be specified by setting the MATHEMATICA_USERBASE operating system environment variable when the Mathematica kernel is launched. It cannot be reset from inside the kernel.
ApplicationsMathematica application packages
Autoloadpackages to be autoloaded on startup
FrontEndfront end initialization files
Kernelkernel initialization files
Licensinglicense management files
SystemFilesgeneral system files
  • These subdirectories are, if possible, created automatically the first time Mathematica is run by a given user.
  • Appropriate subdirectories are automatically included on $Path.
The base directory in which user-specific files are placed:
Subdirectories and files of $UserBaseDirectory:
The base directory in which user-specific files are placed:
In[1]:=
Click for copyable input
Out[1]=
 
Subdirectories and files of $UserBaseDirectory:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
New in 5