% find . -mtime 7 -print
An alternate way is to specify a range of times:
% find . -mtime +6 -mtime -8 -print
mtime is the last modified time of a file. If
you want to look for files that have not been used, check the access
time with the -atime argument. Here is a command
to list all files that have not been read in 30 days or more:
% find . -type f -atime +30 -print
It is difficult to find directories that have not been accessed
because the find command modifies the
directory's access time.