Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are directories in unix?

930


Differentiate between absolute and related path?

1577


How does unix file system work?

1010


What is the file in unix?

923


How to install unix on windows 10?

1028


What can you tell about shell variables?

963


What is the difference between nfs 3 and nfs 4?

1079


What does ls lrt in unix?

942


How does unix pipe work?

977


Is mac unix based?

874


What is the full meaning of unix?

1047


What does tr H do in unix?

1059


What is difference between unix and windows operating system?

1011


Where is unix used?

976


Name the key features of the korn shell.

1004