LOGSAVE(8)
๐พ LOGSAVE(8) โ the system manager's manual, but make it cute
okay bestie, welcome to logsave, section 8 of the manual (that's the sysadmin zone, we love it here) ๐
โจ NAME โจ
logsave โ save the output of a command in a logfile ๐ซถ
๐ธ SYNOPSIS ๐ธ
logsave [ -asv ] logfile cmd_prog [ ... ]
๐ฆ DESCRIPTION ๐ฆ
okay so here's the tea, bestie: logsave runs cmd_prog with all the argument(s) you handed it, and it saves a whole copy of that program's output into logfile. iconic behaviour, honestly. ๐
and the way it handles the directory situation?? if the containing directory for logfile doesn't exist yet, logsave doesn't just give up โ it accumulates the output in memory until it can actually be written out. main character energy fr fr. ๐
oh and also? a copy of the output gets written to standard output too. so you get it twice, no cap. ๐
if cmd_prog is a single hyphen (-), then instead of executing a program, logsave takes its input from standard input and saves it in logfile. ๐ง
so why do we care?? 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. literally built for the early-boot era. ๐
๐ OPTIONS ๐
-aโ this option will cause the output to be appended tologfile, instead of replacing its current contents. (no deleting your old receipts, we preserve ๐ซถ)-sโ this option will causelogsaveto skip writing to the log file any text which is bracketed with a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of Text). this lets progress bar information stay visible to the user on the console, while not being written to the log file. so the vibes stay on screen, the logs stay clean โจ-vโ this option will makelogsaveto be more verbose in its output to the user. chatty. we love a talkative icon ๐ญ
๐ AUTHOR ๐
Theodore Ts'o (tytso@mit.edu)
๐ฅ SEE ALSO ๐ฅ
ok that's the whole page bestie, go log something ๐
E2fsprogs version 1.47.4 โ March 2025. that's the source and the date, mwah, signing off ๐๐โจ
๐ฆ where this page comes from
- alpine 3.24: e2fsprogs-doc 1.47.4-r0 ยท GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT
- arch rolling: e2fsprogs 1.47.4-1 ยท GPL AND LGPL AND MIT
- nixpkgs unstable: e2fsprogs 1.47.4
- ubuntu stonking: logsave 1.47.4-1 ยท GPL-2.0-only
- Copyright 2003 by Theodore Ts'o. All Rights Reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms