Linux.com: CLI Magic: Using Script to Log Your Sessions

“Sometimes when working on a trivial task, such as creating a
MySQL account, I find myself unable to remember the exact steps,
despite having done it many times in the past few years. When such
temporary amnesia strikes, you can turn to script, a command-line
utility that keeps a log of your console session. It can record for
future reference all the commands you use.

“You can use the command line for anything from text editing to
SSH and FTP logins, and to download stuff from the Web…”