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

Why was unix created?

925


What is unix and its components?

965


Can you explain what does the kernel do?

923


What is page fault? Its types?

940


What are positional parameters in unix?

1023


Describe file systems in unix?

1035


Explain what is inode?

966


What is buffer header unix?

875


Explain how do we change file access permissions?

943


What is unix operating system explain various components of unix operating system?

912


What is tilde unix?

1036


What is the chief difference between the –v and –x option s to set?

985


What is the difference between a single dot and double dot in unix?

1203


What are drawbacks of ssh v2?

982


For which kind of fault the page is checked first?

960