mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.3 KiB
1.3 KiB
script
Make a typescript file (a.k.a. log a.k.a. recording) of a terminal session.
Table of contents
TL;DR
# Start recording.
# Defaults to a file named "typescript".
script
script -T 'timing.script' 'file.script'
# Record quietly.
# Avoids 'start' and 'done' messages.
script -q 'file.script'
# Stop recording.
exit
^D
# Append to an existing file.
script -a 'file.script'
# Flush output after each write.
script -f
# Replay the session.
scriptreplay -t 'timing.script' 'file.script'
scriptreplay -T 'timing.script' -B 'file.script'
Further readings
Sources
All the references in the further readings section, plus the following: