aide
TLDR
Initialize the database
$ sudo aide -i
Check the database for inconsistencies$ sudo aide -C
Compare two databases according to the config file$ sudo aide -E
Update the database non-interactively$ sudo aide -u
Define a config file to override the default aide.conf$ sudo aide -c [path/to/config_file]
Use regex to limit AIDE to a specific string$ sudo aide -l [regex]
Send reporter results to a URL$ sudo aide -r [reporterurl]
SYNOPSIS
aide [parameters] command
DESCRIPTION
AIDE (Advanced Intrusion Detection Environment) is an intrusion detection system for checking the integrity of files. It builds a database of file attributes and can later compare files against this database to detect changes.
PARAMETERS
-i, --init
Initialize the database; must be moved to the appropriate place before using --check-C, --check
Check the database for inconsistencies; requires an initialized database-u, --update
Check and update the database non-interactively; input and output databases must be different-E, --compare
Compare two databases as defined in config file-D, --config-check
Stop after reading configuration file to check for errors-c, --config file
Specify alternate configuration file (use '-' for stdin)-l, --limit regex
Restrict operations to entries matching a regex pattern-r, --report url
Specify output destination URL-V, --verbose
Control verbosity level (0-255; default: 5)-B, --before
Set config parameters before file reading-A, --after
Set config parameters after file reading
CAVEATS
Exit codes combine: 1 (new files), 2 (removed files), and 4 (changed files). The database must be stored securely, preferably on read-only media.
HISTORY
Originally developed as an open-source alternative to proprietary file integrity checkers like Tripwire.


