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
How to null a file in unix?
Explain the terms links and symbolic links with respect to unix?
Is unix a kernel?
In what way the validity fault handler concludes?
What are system variables in unix?
What is unix for?
What is dot profile in unix?
What is the explanation for protection fault?
What is process termination in unix?
What is .login file in unix?
How zip the file in unix?
What are the four components of the unix file system?
What are the components of unix kernel?
Is unix is a programming language?
Explain how do you create special files like named pipes and device files?