Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The script command typecasts the terminal activity to a particular file. I understood that part, but is there a way it can be made to append to an existing file?

The end goal for me is to make the script append the data to an existing file with a timestamp that is achieved by the date command. And ultimately have a launcher that pre-executes this upon its launch and I have a logfile of every output on my terminal. I think I have the puzzle solved except for making the script command append.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

As the man pages says, the -a option is for append

script -a file

If file is missing, the default typescript filename is used.

share|improve this answer
dang! i forgot to go through the man pages yet again!!! Thanks a ton @enzotib ! Cheers! –  nitstorm Jun 15 '11 at 5:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.