1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:42:07 +02:00
tldr/pages/linux/script.md
Lena d427f333b2
pages/*: add backticks around I/O streams (#10436)
* as suggested in #10428
* standard input  => `stdin`
* standard output => `stdout`
* standard error  => `stderr`

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 10:59:02 +05:30

460 B

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}}