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
Why was unix created?
What is unix and its components?
Can you explain what does the kernel do?
What is page fault? Its types?
What are positional parameters in unix?
Describe file systems in unix?
Explain what is inode?
What is buffer header unix?
Explain how do we change file access permissions?
What is unix operating system explain various components of unix operating system?
What is tilde unix?
What is the chief difference between the –v and –x option s to set?
What is the difference between a single dot and double dot in unix?
What are drawbacks of ssh v2?
For which kind of fault the page is checked first?