# logsave(8) - man - phpMan

[LOGSAVE(8)](https://www.chedong.com/phpMan.php/man/LOGSAVE/8/markdown)                             System Manager's Manual                            [LOGSAVE(8)](https://www.chedong.com/phpMan.php/man/LOGSAVE/8/markdown)



## NAME
       logsave - save the output of a command in a logfile

## SYNOPSIS
       **logsave** [ **-asv** ] _logfile_ _cmd_prog_ _[_ _..._ _]_

## DESCRIPTION
       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
              current contents.

### -s
              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

## AUTHOR
       Theodore Ts'o (<tytso@mit.edu>)

## SEE ALSO
       [**fsck**(8)](https://www.chedong.com/phpMan.php/man/fsck/8/markdown)



E2fsprogs version 1.46.5                    December 2021                                 [LOGSAVE(8)](https://www.chedong.com/phpMan.php/man/LOGSAVE/8/markdown)
