When working inside the terminal, executing command after command, it’s helpful to capture the process into a file. The captured file helps
1. to know the sequence of commands executed.
2. to store the successful method in resolving the specific problem.
3. to troubleshoot the same problems in future.
4. to analyze what went wrong in the command sequence.
5. reinforce the command line memory.
When you’re ready to record, enter the script command followed by the file name.
user@linux$ script screen.log Script started, file is screen.log
When you’re done, just enter exit.
The file get stored in the user’s home directory /home/user/.