How capture all user command line output?

Hi
I want to know how capture all user command line output and save this commands and outputs to text files?
if you have script for this subject please give me.:o
please help me
thank you

There is a command for that: script ...

1 Like

thanks for answer
excuse me , but I cant see any script!! :frowning:

Have you tried:

which script
man script
1 Like

where is your command??:cool:

Example:

Start saving output to a file named filename

#script filename 

Stop saving output by typing exit.

#exit

script IS the command. As Scrutinizer pointed out to you, man script would give you all relevant and necessary info: