Logging a terminal session

Looking at some troubleshooting logs, I saw really cool logs of terminal sessions. When they were short, I figured that they’d been recreated (i.e. typed in again), but with longer logs, I guessed there had to be a logger. That got me started. Yes, indeed there is! And it’s one of the most basic things in linux, esp as a new user!

Just type "script <filename>" into a terminal you’re on and the recording starts to your <filename>. If you leave out filename, it’ll create a file called typescript and log all the output from the terminal screen there.

Image courtesy: AttributionNoncommercialShare Alike Some rights reserved by T045TBR0T

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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