Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-29 00:18:23 +00:00
parent a3692d638b
commit 75f807d6af
175 changed files with 1107 additions and 775 deletions

View File

@@ -5,25 +5,37 @@ source: https://github.com/tldr-pages/tldr.git
---
# script
> Record all terminal output to file.
> Record all terminal output to a typescript file.
> More information: <https://manned.org/script>.
- Record a new session to a file named `typescript` in the current directory:
`script`
- Stop recording:
`exit`
- Record a new session to a custom filepath:
`script {{path/to/session.out}}`
- Record a new session, appending to an existing file:
- Append to an existing file:
`script -a {{path/to/session.out}}`
`script {{[-a|--append]}} {{logfile.log}}`
- Record timing information (data is outputted to `stderr`):
`script -t 2> {{path/to/timing_file}}`
`script {{[-t|--timing]}} 2> {{path/to/timing_file}}`
- Write out data as soon as it happens:
`script -f {{path/to/file}}`
`script {{[-f|--flush]}} {{path/to/file}}`
- Execute quietly without start and done messages:
`script {{[-q|--quiet]}} {{logfile.log}}`
- Display help:
`script {{[-h|--help]}}`