How to find when the last modification happened in a directory
Use the du command to scan a directory and find when the last modification was made. The related modification time will be displayed when using du with the --time option.
# du -sh --time /var
1.2G 2024-06-01 21:45 /var
The time option will show the last modification time of a file or subdirectory within the directory that was specified.