diary

Records the inputs and outputs of all commands in the terminal.

Syntax

diary on

diary off

diary filename

Inputs

on
Turns on the diary record, saving the data to a diary.txt file in the current directory.
Type: string
off
Turns off the diary record and closes the file.
Type: string
filename
Turns on the diary record, saving the data in the specified filename.
Type: string

Examples

Save diary to default diary.txt file example:
diary on
diary off
Save diary to a user defined file example:
diary mydiary.txt
diary off