Home > Linux > script

script

script is a useful command for quickly capturing a terminal session, as i just learned here:

$ script test.log
Script started, file is test.log
$ mkdir x
$ ls x/
$ exit
exit
Script done, file is test.log
$ cat test.log 
Script started on Wed 03 Aug 2011 02:33:36 PM MST
$ mkdir x
$ ls x/
$ exit
exit

Script done on Wed 03 Aug 2011 02:33:41 PM MST
Advertisements
Categories: Linux Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s