script [ –a ] [ filename ]
script makes a typescript of everything printed on your terminal. The typescript is written to a filename. If no filename is given, the typescript is saved in the file called typescript. The script ends when the shell exits or when Ctrl-D is typed.
1 script 2 script myfile |
Explanation
Starts up a script session in a new shell. Everything displayed on the terminal is stored in a file called typescript. Must press ^d or exit to end the session.
Starts up a script session in a new shell, storing everything displayed on the terminal in myfile. Must press ^d or exit to end the session.
18.218.151.44