Ubuntu文件管理可通过以下方式记录日志:
tail -f /var/log/syslog实时查看。sudo apt-get install auditd。auditctl -w /path/to/file -p wa -k file-change。ausearch -k file-change。inotify-tools。inotifywait -m /path/to/dir -e modify。说明:默认文件系统(如ext4)不直接记录删除日志,需通过审计工具或快照(如Btrfs)实现。