How to log all of the terminal input and output ?

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.

user@linux$ exit

The file get stored in the user’s home directory /home/user/.

About Deepak Devanand

Seeker of knowledge
This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s