Co robi SCRIPT użycie. Konsola file . If no file is given, the typescript is saved in the file.

Czy przydatne?

Polecenie script

Wykonanie, użycie: Fork the current shell and make a typescript of a terminal session. The typescript is written to file. If no file is given, the typescript is saved in the file typescript. The script ends when the forked shell exits, usually with Ctrl-D or exit

Opcje wykonania script w konsoli

-a

Append to file or typescript instead of overwriting the previous contents.

-c command

Run the specified command instead of an interactive shell.

-f

Flush output after each write. Useful if another person is monitoring the output file.

-q

Operate in quiet mode.

-t

Write timing data to standard error. Each entry has two fields: the first is the elapsed time since the last output, and the second is the number of characters in the current output.

Przykłady script działanie w Słownik polecenie S