#forensics
5 one-liners with this tag.
All one-liners tagged forensics
Detect modified files of installed packages
#dpkg --verify
Find files modified between two dates
$find /var/www/vhosts/example.com/httpdocs -type f -newermt '2026-10-01' ! -newermt '2026-10-08' -printf '%TY-%Tm-%Td %TH:%TM %p\n' | sort
Find files modified in the last minutes
$find /var/www/vhosts/example.com/httpdocs -type f -mmin -60 -printf '%TY-%Tm-%Td %TH:%TM %p\n' | sort -r
Find recently modified PHP files
$find /var/www/vhosts/example.com/httpdocs -type f -name '*.php' -mtime -7 -printf '%TY-%Tm-%Td %TH:%TM %p\n' | sort -r
Show all timestamps and permissions of a file
$stat /var/www/vhosts/example.com/httpdocs/wp-config.php