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


Please Help Members By Posting Answers For Below Questions

How to null a file in unix?

639


Explain the terms links and symbolic links with respect to unix?

555


Is unix a kernel?

517


In what way the validity fault handler concludes?

554


What are system variables in unix?

682






What is unix for?

524


What is dot profile in unix?

532


What is the explanation for protection fault?

517


What is process termination in unix?

474


What is .login file in unix?

563


How zip the file in unix?

535


What are the four components of the unix file system?

505


What are the components of unix kernel?

562


Is unix is a programming language?

516


Explain how do you create special files like named pipes and device files?

535