mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 06:44:13 +00:00
Update cheatsheets
This commit is contained in:
25
linux/script
Normal file
25
linux/script
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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}}`
|
||||
Reference in New Issue
Block a user