Infrastructure Auditing
Audit AsciiDoc pages missing :description: header
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/pages -name "*.adoc" -type f \
-exec sh -c '
for f; do
if ! head -5 "$f" | grep -q ":description:"; then
echo "MISSING — $f"
fi
done
' _ {} +
Find empty directories in Antora module tree
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT -type d -empty
Discover certificate files across the system
find /etc/ssl /usr/share/ca-certificates -type f \
\( -name "*.pem" -o -name "*.crt" -o -name "*.key" -o -name "*.p12" \) \
2>/dev/null | head -20
Find stale log files older than 90 days
find /var/log -type f -name "*.log" -mtime +90 2>/dev/null | head -10
Compressed log rotation candidates
find /var/log -type f \( -name "*.gz" -o -name "*.xz" -o -name "*.bz2" \) \
-mtime +180 2>/dev/null | head -10
Find stale PID files (no matching process)
find /run -name "*.pid" -type f 2>/dev/null -exec sh -c '
for pidfile; do
pid=$(cat "$pidfile" 2>/dev/null)
if [ -n "$pid" ] && ! kill -0 "$pid" 2>/dev/null; then
echo "STALE PID $pid — $pidfile"
fi
done
' _ {} +
Orphaned config files — .rpmnew / .pacnew / .pacsave
find /etc -type f \( -name "*.pacnew" -o -name "*.pacsave" -o -name "*.rpmnew" \) 2>/dev/null
Pacman cache discovery — packages by size
find /var/cache/pacman/pkg -name "*.pkg.tar.zst" -type f -size +50M 2>/dev/null | \
xargs -I{} ls -lh {} | awk '{print $5, $NF}'
Find AsciiDoc files containing hardcoded IPs (attribute violation audit)
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT -name "*.adoc" -type f \
-exec grep -l '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' {} +
Disk usage report — top 10 largest files in a tree
find ~/atelier/_bibliotheca/domus-captures -type f -print0 | \
xargs -0 du -h | sort -rh | head -10