CHANGETRACK(1)
π CHANGETRACK π
okay bestie, welcome to changetrack(1) from the General Commands Manual β she's in section 1 and she's here to spill the tea on your files π«Ά
β¨ NAME β¨
changetrack β track changes to files πΈ
π SYNOPSIS π
changetrack [-h] [-c configfile] [-d directory] [-e] [-r] [-q] [-m message] [-M message] [-v] [-u] [-o toaddress] [-f fromaddress]
π¦ DESCRIPTION π¦
so changetrack is literally a program that monitors changes to a bunch of files. here's the vibe: if some files get modified one day and then a few days later the machine starts acting up and working incorrectly, changetrack can hand you the info on which files were modified, and that helps you locate the problem. detective energy πβ¨
normally changetrack uses ed to keep track of the various revisions of the files, by maintaining an .ed script with the change history for each file. very old-school, very iconic.
alternatively, changetrack can use rcs to keep track of the various revisions of the files. each file is "installed" in the rcs system the first time that changetrack is run after that file is added to the config file. whenever changetrack is run after that, a copy of the file is made, which is 'checked in' and implicitly 'checked out' of the rcs system. if you wanna retrieve an old version of the file, go read the man page of co. π
backup files (ending in tilde ~) are ignored, unless they're explicitly included. no accidental backups sneaking into your tracking list, we don't do that here π
okay and here's a cute one: after each pattern in the file list, if you add white space, a colon (:) then more whitespace, followed by email addresses, separated by more whitespace β the changes to that file get emailed to that address. all changes from each run are expressed in one email, so it's not gonna spam you forty times. using the email feature requires Mail::SendMail to be installed; and if it does not work correctly, an error message will be printed to standard error. rude but fair π
π OPTIONS π
-hβ display a short help message, then exit. bye bestie π-cconfigfileβ get the list of files to track from configfile instead of from~/.changetrackrc(/etc/changetrack.conffor the super-user).-doutputdirectoryβ store output in outputdirectory instead of in~/.changetrack/(/var/lib/changetrack/for the super-user).-eβ keep a copy of the file from when it was first added to thechangetrackconfiguration, and keepedstyled changes to rebuild the file. this option is recommended only ifrcsdoes not work on the machine. to recover using this means, the.edfile should have the last several commands removed, to allow the file to be rebuilt to the appropriate state. a command likecat myfile.ed | ed myfile.originalshould be executed. yes, for real, that's the whole ritual π―οΈ-rβ disable thercsfacility.-qβ quiet mode; only print critical messages. good for scripts. main character silence β¨-mmessageβ print message on each file, after checking for any changes. good for indicating reboots or other system events.-Mmessageβ like-m, but message is only printed on modified files. selective, as she should be π-vβ print version and exit.-uβ use unified diffs (this only works with some implementations ofdiff.-oemailaddressβ mail output to emailaddress. this is supplementary to emails specified in the config file.-femailaddressβ set "From" header to emailaddress, which must be fully qualified.
π REQUIREMENTS π
this program requires diff. unless the -r switch is used, this program requires rcs to be installed. if the -e switch is used, ed is required. like, no ed, no -e, no exceptions π«Ά
π FILES π
~/.changetrackrcβ list of files to monitor. each line may start with#indicating a comment. if a line is not a comment, it contains a file/pattern to monitor, and optionally" : "followed by any email addresses to send changes to. the filename may be a pattern described in the same way as forls. Note: the default is/etc/changetrack.conffor root.~/.changetrack/β default directory in which to store output information. the default is/var/lib/changetrack/for root. allrcsfiles are stored in this directory, unless a subdirectory calledRCSexists, in which case thercsfiles are stored in that directory./etc/cron.daily/changetrackβ script that creates the list of all files monitor./etc/cron.hourly/changetrackβ script that invocateschangetrack./etc/default/changetrackβ configuration for the above two scripts.
π DIAGNOSTICS π
each filename is written to standard output. rcs will print errors if certain things go wrong. it will also print a few lines each time changetrack is run after a new file is added to the configuration. ngl, that's just her being chatty, it's fine π
π IDENTIFICATION π
- Author: Cameron J. Morland.
- Manual Page Revision: 2.1 Release Date: 2001-03-06.
- Copyright Β© 2001-2005 Cameron J. Morland.
- Changed by Jens Peter Secher to reflect the Debian modifications.
πΈ SEE ALSO πΈ
β TODO β
Automate removal of out-of-date changes, to save disk space and clarify the important changes. manifesting this fr fr β¨
π BUGS π
None known. she's flawless, periodt π
okay so that's the whole page bestie. now go track some files and slay π¦
and that's a wrap on changetrack(1) from the General Commands Manual β Manual Page Revision 2.1, Release Date 2001-03-06 π sending you off with so much love, go check your diffs π
π¦ where this page comes from
- debian bookworm: changetrack 4.7-8 Β· GPL-2.0-only
- debian trixie: changetrack 4.7-9 Β· GPL-2.0-only
- ubuntu jammy: changetrack 4.7-8 Β· GPL-2.0-only
- ubuntu noble: changetrack 4.7-8 Β· GPL-2.0-only
- ubuntu resolute: changetrack 4.7-9 Β· GPL-2.0-only
- ubuntu stonking: changetrack 4.7-11 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms