How to use tee and script commands to capture output and errors to file - TechRepublic

How to use tee and script commands to capture output and errors to file