The script command not only makes a record of what commands you run but also allows you to save the output generated so that you can examine it later or easily turn your command sequences into scripts ...
How the true and false commands work, and how to put them to use on the command line and in scripts. True and false are common concepts in all forms of computing. They’re critical to Boolean logic ...