From 80abec2c14a73b27bf2dc379113e87f19d15f94d Mon Sep 17 00:00:00 2001 From: lbonanomi <5369016+lbonanomi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:54:52 -0400 Subject: [PATCH] script: add page (#2918) --- pages/linux/script.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/script.md diff --git a/pages/linux/script.md b/pages/linux/script.md new file mode 100644 index 0000000000..d9bc4a0a3f --- /dev/null +++ b/pages/linux/script.md @@ -0,0 +1,19 @@ +# 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}}`