Create a list of all commands and the output they produce, mixed together just as you see them on your terminal. Valid options are:
on
- Start recording your session in a file called diary in your current working directory.
off
- Stop recording your session in the diary file.
- file
- Record your session in the file named file.
Without any arguments,
diary
toggles the current diary state.