What will be the result if we run the command #find /tmp -
mtime -2 and #find /tmp -mtime +2
Answer Posted / kuvaibhav
find /tmp -mtime n where n can be +ve or -ve
+n says, file modified in last n days
-n says, file modified more than n days ago
ex. if today is 5th of a month
file1 has mtime 3rd
file2 has mtime 2nd
then find . -mtime 2 will report file1
then find . -mtime -2 will report file2 only
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What are directories in unix?
Differentiate between absolute and related path?
How does unix file system work?
What is the file in unix?
How to install unix on windows 10?
What can you tell about shell variables?
What is the difference between nfs 3 and nfs 4?
What does ls lrt in unix?
How does unix pipe work?
Is mac unix based?
What is the full meaning of unix?
What does tr H do in unix?
What is difference between unix and windows operating system?
Where is unix used?
Name the key features of the korn shell.