({{, init.m 
is a Wolfram System initialization file.}})

OpenersNotesSection(Spacer1)Details

Wolfram System initialization files contain start-up code to be evaluated whenever a Wolfram Language kernel or front end is launched.

Possible locations for init.m files include the following:

The user-specific initialization files within (RefLink[$UserBaseDirectory, paclet:ref/$UserBaseDirectory]) are read after the systemwide initialization files within (RefLink[$BaseDirectory, paclet:ref/$BaseDirectory]), so any conflicting symbols will be defined as in the user-specific initialization files.

The Wolfram System will also load init.m files from Autoload directories.

To suppress the loading of kernel initialization files, use the kernel command-line option (RefLink[-noinit, paclet:ref/program/WolframKernel]).

To specify another file to be used for kernel initialization in addition to init.m, use the kernel command-line option (RefLink[-initfile, paclet:ref/program/WolframKernel]) file, where file is the additional initialization file.

Template initialization files for the kernel are created automatically if they do not already exist.

If front end options are changed while the Wolfram System is running, the user-specific front end initialization file will be updated automatically to reflect these changes. The systemwide front end initialization file will remain unchanged.

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Programs:  (RefLink[WolframKernel, paclet:ref/program/WolframKernel])  ▪  (RefLink[wolfram, paclet:ref/program/wolfram])  ▪  (RefLink[mathematica, paclet:ref/program/mathematica-unix])  ▪  (RefLink[Mathematica, paclet:ref/program/Mathematica])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Wolfram System File Organization, paclet:tutorial/WolframSystemFileOrganization])}, {▪(RefLinkPlain[Wolfram System Sessions, paclet:tutorial/WolframSystemSessions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram System Setup, paclet:guide/WolframSystemSetup])}})}})