Create a Log File (script)

Use: Use the script command to create a log file of every command executed, and its output, during that terminal session.

To begin recording the log file use the following command:

eos$ script -f logfilename

Script has two associated options. The -f is required for this course. It forces the script to start recording immediately. The other option is -a (append) which allows the user to continue recording on a previously created log file.

To close the log file, type “exit” into the terminal window (this is true regardless of which options are used). For this course, DO NOT exit a log file until instructed.

Should I expect an output?

Yes:

Script started, file is logfilename

(after typing exit)
Script done, file is logfilename