commands.sh

script

linux

Record all terminal output to a typescript file.

More info →

Options (5)

-a, --appendboolean

Append to an existing file

Example: script {{[-a|--append]}} {{logfile.log}}
-t, --timingboolean

Record timing information (data is outputted to `stderr`)

Example: script {{[-t|--timing]}} 2> {{path/to/timing_file}}
-f, --flushboolean

Write out data as soon as it happens

Example: script {{[-f|--flush]}} {{path/to/file}}
-q, --quietboolean

Execute quietly without start and done messages

Example: script {{[-q|--quiet]}} {{logfile.log}}
-h, --helpboolean

Display help

Example: script {{[-h|--help]}}

Examples (8)

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

Stop recording

Record a new session to a custom filepath

script path/to/session.out

Append to an existing file

script [-a|--append] logfile.log

Record timing information (data is outputted to `stderr`)

script [-t|--timing] 2> path/to/timing_file

Write out data as soon as it happens

script [-f|--flush] path/to/file

Execute quietly without start and done messages

script [-q|--quiet] logfile.log

Display help

script [-h|--help]
made by @shridhargupta | data from tldr-pages