A system administrator needs to find all files in /var/log that have been modified in the last 2 hours. Which command should be used?
Trap 1: find /var/log -amin -120
amin checks access time, not modification.
Trap 2: find /var/log -mtime -0.08
Invalid syntax; mtime expects integer days.
Trap 3: find /var/log -cmin -120
cmin checks inode change time, not modification.
- A
find /var/log -mmin -120
Correctly finds files modified in the last 120 minutes.
- B
find /var/log -amin -120
Why wrong: amin checks access time, not modification.
- C
find /var/log -mtime -0.08
Why wrong: Invalid syntax; mtime expects integer days.
- D
find /var/log -cmin -120
Why wrong: cmin checks inode change time, not modification.