Once you type a bunch of commands into Maxima you will often want to save those commands into a file to be opened and used again later. The following command will pick out all of the Maxima commands from the session and save them into a text file that can be opened later with any text editor.
Note that only commands since the last kill(all) statement will be saved.