1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:02:08 +02:00
tldr/pages/linux/script.md
2019-04-15 21:54:52 -03:00

19 lines
421 B
Markdown

# script
> Record all terminal output to file.
- 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 the standard error):
`script -t 2> {{path/to/timingfile}}`