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
Is unix the first operating system?
What is meant by unix operating system?
Is unix portable?
Is learning unix useful?
What are the layers of unix operating system?
Why kernel is known as the heart of unix os?
What is unix mtime?
How do I find a pattern in unix?
Differentiate multiuser from multitask.
What is unix environment?
Elucidate on the different ids used in the unix process?
How do we change file access permissions?
What are the three major components of any unix system?
What is buffer header unix?
Is windows a unix operating system?