Files
cheatsheet-tldr/linux/script
2024-02-21 11:19:49 +00:00

26 lines
552 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# script
> Record all terminal output to file.
> More information: <https://manned.org/script>.
- Record a new session to a file named `typescript` in the current directory:
`script`
- Record a new session to a custom filepath:
`script {{path/to/session.out}}`
- Record a new session, appending to an existing file:
`script -a {{path/to/session.out}}`
- Record timing information (data is outputted to `stderr`):
`script -t 2> {{path/to/timingfile}}`