logsave(8)

logsave8

Save the output of a command in a logfile

Usage

logsave [-asv] logfile cmd_prog []

Overview

The logsave program will execute cmd_prog with the specified argument(s), and save a copy of its output to logfile. If the containing directory for logfile does not exist, logsave will accumulate the output in memory until it can be written out. A copy of the output will also be written to standard output.

If cmd_prog is a single hyphen ('-'), then instead of executing a program, logsave will take its input from standard input and save it in logfile

logsave is useful for saving the output of initial boot scripts until the /var partition is mounted, so the output can be written to /var/log.

Options

-a

This option will cause the output to be appended to logfile, instead of replacing its current contents.

-s

This option will cause logsave to skip writing to the log file text which is bracketed with a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of Text). This allows progress bar information to be visible to the user on the console, while not being written to the log file.

-v

This option will make logsave to be more verbose in its output to the user.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 11 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

Author

Theodore Ts'o ([email protected])

From e2fsprogs 1.47.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.