Linux Commands Examples

A great documentation place for Linux commands


save the output of a command in a logfile

see also : fsck


logsave [ -asv ] logfile cmd_prog [ ... ]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


ssh $wanem service tc delay $delay
logsave $logfile time -p $basedir/runcontroller
#logsave $logfile time -p $basedir/runcontroller
ssh $wanem service tc stop


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.



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


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.


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

see also



Theodore Ts’o (tytso[:at:]mit[:dot:]edu)

How can this site be more helpful to YOU ?

give  feedback