Мануалы и справочники Linux

Команда script: опции, ключи и примеры использования


Record all terminal output to file.

  • Record a new session to a file named typescript in the current directory:


  • Record a new session to a custom filepath:

script {{path/to/session.out}}

  • Record a new session, appending to an existing file:

script -a {{path/to/session.out}}

  • Record timing information (data is outputted to the standard error):

script -t 2> {{path/to/timingfile}}