Skip to main content

Make a typescript file of a terminal session.

# To start recording in file named "typescript":

# To stop recording:

# To start recording in a given file:
script <logfile.log>

# To append to an existing file:
script -a <logfile.log>

# To execute quietly without start and done messages:
script -q <logfile.log>

# ---

# To remove escaped color codes sequences from the generated output file (
cat <typescript> | sed -e "s/\x1b\[.\{1,5\}m//g"