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 to logfile, instead of replacing its current contents. (no deleting your old receipts, we preserve ๐Ÿซถ)
  • -s โ€” this option will cause logsave to 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 make logsave to be more verbose in its output to the user. chatty. we love a talkative icon ๐Ÿ˜ญ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Theodore Ts'o (tytso@mit.edu)


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

fsck(8)


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