Configuration Files on Unix and Linux
stores preference settings and initialization data in two directories, $BaseDirectory
. Within each of these directories are several possible subdirectories with titles such as FrontEnd, Kernel, and Licensing.
- Global settings that affect all users are stored in subdirectories of the directory $BaseDirectory. The default value of $BaseDirectory on Unix and Linux is /usr/share/Mathematica. To redefine the location of global preference settings and initialization data, set the environment variable MATHEMATICA_BASE.
- Settings that only affect a particular user are stored in subdirectories of the directory $UserBaseDirectory, which is typically a subdirectory of the user's home directory. The default value of $UserBaseDirectory on Unix and Linux is ~/.Mathematica. To redefine the location of user preferences and initialization data, set the environment variable MATHEMATICA_USERBASE.
Settings in the directory $UserBaseDirectory
override global settings defined in the directory $BaseDirectory
In the pathnames that follow, replace the variables $BaseDirectory
with the appropriate directories for your system. To find their locations on your system, evaluate the command $BaseDirectory
) in a Mathematica
The initialization files used by the kernel contain Mathematica
commands that are evaluated at startup, such as function definitions, packages to load, or kernel option settings. These commands are also available to the Mathematica
This file is used to initialize the kernel and therefore should store any kernel commands that are appropriate for all users running the kernel.
This file stores user-specific commands used to initialize the kernel.
Kernel initialization files are not created automatically.
Front end initialization files store preference settings such as the values of global options in the Option Inspector. These files are automatically updated by Mathematica
when you change a setting in the front end. To make changes to this file, make your changes from within Mathematica
rather than editing the file directly.
This file stores systemwide defaults used by all Mathematica
front ends. The settings in this file affect all users. "Systemwide Defaults on Unix and Linux"
explains how to implement changes to this global file.
This file defines settings within the front end that are specific to each user.
This directory within the user's home directory stores information on system settings that are read by the front end.
Front end initialization files are created automatically.
Passwords are stored in the mathpass
file, described in further detail in "Registration and Passwords"
. In the following pathname, replace the variable $InstallationDirectory
with the directory where you installed Mathematica
. The default value of $InstallationDirectory
on Unix and Linux is /usr/local/Wolfram/Mathematica/6.0. To find the value of $InstallationDirectory
on your system, evaluate the command $InstallationDirectory
in a Mathematica
This is the default location for the global password file.
This is an alternative location for the global password file.
While this is not normally the location for the password file, a user-specific mathpass
file can be stored here.