What will be the result if we run the command #find /tmp -
mtime -2 and #find /tmp -mtime +2
Answers were Sorted based on User's Feedback
Answer / sanjeev
find /tmp - mtime -2-----will display file modified in last
two days
find /tmp -mtime +2-----will display file modified in more
than two days
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / 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 |
Answer / supriya
#find /tmp -mtime -2 displays the file modified in the last
two days.
#find /tmp -mtime +2 displays the file modified in more
than two days.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / manikandan
find /tmp -mtime +2-----will display file modified in more
than three days
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the significance of the superuser?
Describe a link in unix.
What are links and symbolic links in UNIX file system?
How does unix pipe work?
What are positional parameters in unix?
Explain about the directory representation in UNIX?
Which data structure is used to maintain the file identification?
Why does the server parent need to close the connected socket returns from accept in a concurrent TCP server? What may happen if it does not do so?
What is .profile unix?
Where unix is used today?
How do I grep multiple patterns in unix?
What are the entities that are swapped out of the main memory while swapping the process out of the main memory?