mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 10:48:09 +00:00
Update cheatsheets
This commit is contained in:
20
tldr/script
20
tldr/script
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user