1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/script.md

37 lines
721 B
Markdown
Raw Normal View History

2018-10-28 12:53:06 -04:00
# script
> Record all terminal output to a typescript file.
> More information: <https://manned.org/script>.
2018-10-28 12:53:06 -04:00
- Record a new session to a file named `typescript` in the current directory:
2018-10-28 12:53:06 -04:00
`script`
- Stop recording:
`exit`
- Record a new session to a custom filepath:
2018-10-28 12:53:06 -04:00
`script {{path/to/session.out}}`
2018-10-28 12:53:06 -04:00
- 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}}`
2018-10-28 12:53:06 -04:00
- Execute quietly without start and done messages:
`script {{[-q|--quiet]}} {{logfile.log}}`
2025-03-26 00:36:41 +02:00
- Display help:
`script {{[-h|--help]}}`