Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Directories & Directory Operations >

$UserBaseDirectory

$UserBaseDirectory
gives the base directory in which user-specific files to be loaded by Mathematica are conventionally placed.
  • Typical values are:
C:\DocumentsandSettings\username\ApplicationData\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.
New in 5
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team