Printer FriendlyEmail Article Link

How do I record a history of my inputted commands and output in UNIX?

Answer

Use the script command. Press the CTRL-D keys when you wish to stop recording (scripting).

script <outputfile.ext>

mars-> script change.lis 
Script command is started. The file is change.lis.

ls -lrt

^D


Product : UNIX