By using "script" command, you can keep track of Executed Commands and its output.
Definition: The script command will keep a transcript(written record) of everything you say to the computer and everything that the computer responds to you.
Syntax: script [capturefilename]
*) To start the script command
eg: vjsujay$ script cmdlog
Note: cmdlog will be created in the current dir and also if you are not specifying the filename means, it will create a default filename 'typescript'
*) To stop capturing or script command,
eg: vjsujay$ exit