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.
These are the options that can also be provided on the command line.
The file M2 is actually a shell script which calls the executable file with appropriate arguments for loading the Macaulay 2 code previously compiled.
To terminate the program, one may type exit, quit, end, or the end of file character.