Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-23 00:20:07 +00:00
parent a49466c200
commit cd59a77dc8
31 changed files with 239 additions and 130 deletions

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
---
# script
> Make a typescript file of a terminal session.
> Record all terminal output to a typescript file.
> More information: <https://manned.org/script>.
- Start recording in file named "typescript":
- Record a new session to a file named `typescript` in the current directory:
`script`
@@ -16,14 +16,22 @@ source: https://github.com/tldr-pages/tldr.git
`exit`
- Start recording in a given file:
- Record a new session to a custom filepath:
`script {{logfile.log}}`
`script {{path/to/session.out}}`
- Append to an existing file:
`script -a {{logfile.log}}`
`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 {{logfile.log}}`
`script {{[-q|--quiet]}} {{logfile.log}}`