From 414bdc2405f02fb6c3657013911789feff19398f Mon Sep 17 00:00:00 2001 From: teeteejo <72230915+teeteejo@users.noreply.github.com> Date: Mon, 5 Oct 2020 16:30:14 +0100 Subject: [PATCH] logsave: add page (#4486) --- pages/linux/logsave.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/logsave.md diff --git a/pages/linux/logsave.md b/pages/linux/logsave.md new file mode 100644 index 0000000000..7b9b82d6c0 --- /dev/null +++ b/pages/linux/logsave.md @@ -0,0 +1,20 @@ +# logsave + +> Save the output of a command in a logfile. +> More information: . + +- Execute command with specified argument(s) and save its output to log file: + +`logsave {{path/to/logfile}} {{command}}` + +- Take input from standard input and save it in a log file: + +`logsave {{logfile}} -` + +- Append the output to a log file, instead of replacing its current contents: + +`logsave -a {{logfile}} {{command}}` + +- Show verbose output: + +`logsave -v {{logfile}} {{command}}`