Files
oam/knowledge base/script.md

1.0 KiB

script

Make a typescript file (a.k.a. log a.k.a. recording) of a terminal session.

Table of contents

  1. TL;DR
  2. Further readings
  3. Sources

TL;DR

# Start recording.
# Defaults to a file named "typescript".
script
script 'file.log'

# Stop recording.
exit

# Append to an existing file.
script -a 'file.log'

# Execute quietly.
# Avoids 'start' and 'done' messages.
script -q 'file.log'

# Flush output after each write.
script -f

Further readings

Sources

All the references in the further readings section, plus the following: