next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

Invoking the program

On systems with a command line interface, the following commands can be used to start the program. When the program starts up, the initialization file, init.m2, will be loaded.

M2 -- starts the program.

M2 file1 file2 ... -- starts the program, reading and executing the specified files.

The options that can be provided on the command line may be displayed by running M2 --help, as follows.

i1 : run "M2 --help";
sh: M2: command not found

To terminate the program, one may type exit, quit, end, or the end of file character.

See also