redirecting the terminal to file

Hi,

I want to save the whole Output of the terminal in a file. I dont want to redirect a single command to a file (ls -l > test.txt), I want to redirect the whole last 40 lines into a file.

Maybe i can read out the terminal while working with it, but i cant find a way to save the whole output into a file.

Maybe you can help me...

sincerely,
niratschi

read man page on script command. I guess you looking for that.

Thx, this is what i was looking for.