$linuxjunkies
>

aide(1)

Advanced Intrusion Detection Environment (AIDE) checks file integrity by comparing current file attributes against a previously generated database.

UbuntuDebianFedoraArch

Synopsis

aide [OPTION]... [--check|--init|--update]

Description

AIDE is a file integrity checker that maintains a database of file attributes (permissions, checksums, ownership, timestamps) and detects unauthorized changes. It's commonly used to monitor system files and directories for tampering or corruption.

AIDE creates an initial database with --init, then uses --check to compare current files against that baseline. The --update option creates a new baseline while keeping the old one for comparison.

Common options

FlagWhat it does
-i, --initInitialize the AIDE database (create new baseline from scratch)
-c, --checkCheck current system against the database for changes
-u, --updateUpdate the database with current file states while preserving old database for comparison
-C, --config=FILESpecify alternate configuration file (default: /etc/aide/aide.conf)
-B, --database=DIRSpecify database directory location
-r, --report=FILEWrite detailed report to specified file
-v, --verbosePrint verbose output during execution
-q, --quietSuppress unnecessary output
--config-checkCheck configuration file syntax and exit
-l, --limit=NUMLimit reported changes to NUM items per file

Examples

Create initial AIDE database from current filesystem state

aide --init

Check system for file changes since last database creation

aide --check

Run integrity check and save full report to file

aide --check > aide_report.txt 2>&1

Initialize database using custom configuration file

aide -C /etc/aide/custom.conf --init

Check system and show only newly added files

aide --check | grep added

Update database with new baseline while preserving old database for comparison

aide --update

Validate AIDE configuration file syntax without running checks

aide --config-check

Run check and write detailed report to specified path

aide -c -r /var/log/aide/last_check.txt

Related commands