This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Mathematica System Program


math options
starts the Mathematica kernel on Unix and Linux.
  • math runs the stand-alone Mathematica kernel. To access the full Mathematica system including the notebook interface, use mathematica.
  • A stand-alone kernel session normally reads input from stdin (typically a keyboard), evaluates the expression, and prints the results to stdout (typically a display device). Input and output can be redirected using Mathematica commands or standard shell mechanisms.
  • The following command-line options can be given:
-mathlinkcommunicate only via MathLink
-initfile "file"execute the commands in the initialization file file during startup
-lmverboseprint information about interactions with MathLM
-noinitdo not read any initialization files
-password "pw"use the password pw
-pwfile "file"read passwords from file
-run cmdrun cmd on startup
-nopromptdo not print banner or In/Out prompts (useful for batch input)
  • If no command-line options are given, the kernel will read the value of the environment variable MATHKERNELINIT and will use that value as though it had been entered on the command line.
  • Unless the Mathematica variable $IgnoreEOF is set to True, the kernel will exit when it receives an end-of-file character sequence. The kernel will always exit when given the command Quit.