At times system administrators and developers need to use many, complex and lengthy commands in order to perform a critical task. Most of the users will copy those commands and output generated by those respective commands in a text file for review or future reference. Of course, ???history??? feature of the shell will help you in getting the list of commands used in the past but it won’t help in getting the output generated for those commands.