Recall & Review
beginner
What does the
find command option -mtime do?It finds files based on when they were last modified. You can specify how many days ago the file was changed.
Click to reveal answer
beginner
How do you find files modified exactly 3 days ago using
find?Use
find . -mtime 3. This finds files modified between 3 and 4 days ago.Click to reveal answer
beginner
What does
-mtime +5 mean in the find command?It finds files modified more than 5 days ago (older than 5 days).
Click to reveal answer
beginner
What does
-mtime -2 mean in the find command?It finds files modified less than 2 days ago (newer than 2 days).
Click to reveal answer
beginner
Why is
find . -mtime 0 useful?It finds files modified within the last 24 hours. This is helpful to see very recent changes.
Click to reveal answer
Which command finds files modified more than 7 days ago?
✗ Incorrect
-mtime +7 finds files modified more than 7 days ago.
What does
find . -mtime 1 find?✗ Incorrect
-mtime 1 finds files modified between 1 and 2 days ago.
How to find files modified within the last 24 hours?
✗ Incorrect
-mtime 0 finds files modified less than 1 day ago (within 24 hours).
What does
-mtime -3 mean?✗ Incorrect
-mtime -3 finds files modified less than 3 days ago.
If you want to find files modified between 2 and 3 days ago, which command is correct?
✗ Incorrect
-mtime 2 finds files modified between 2 and 3 days ago.
Explain how to use the
find command to locate files modified within the last 5 days.Think about how <code>-mtime</code> with a minus sign works.
You got /3 concepts.
Describe the difference between
-mtime 3, -mtime +3, and -mtime -3 in the find command.Consider how the plus and minus signs change the meaning.
You got /4 concepts.