What linux command do I use to find how many accesses were m
What linux command do I use to find how many accesses were made to a file in January 2014?
Solution
Command:
find /home/abc -iname \"a.txt\" -newermt \"2016-01-01\" ! newermt \"2016-01-31\"|wc-l
Firstly provide the path of the file. Here iname is used to find the file (i.e \"a.txt\") and to find the file in particular date range \"newermt\" is used.And then wc-l is used to count the number or access made for the file.
