script
Record all terminal output to file. More information: https://manned.org/script.
-
Record a new session to a file named
typescript
in the current directory:
script
-
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
stderr
):
script -t 2> {{path/to/timingfile}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.