Solaris --Find by date

I want to find all the logs using find , but i need to be from X date. it could be from a month or from 12 months( Solaris 5.9)
moto_sysAsked:
Who is Participating?
 
omarfaridConnect With a Mentor Commented:
Hi,

Your question is not so clear, but I will assume that you want to find a file that is older than one month.

Try:

find /path -ctime +30 -a -ctime -360

or you may use the -mtime in place of -ctime

The above command will search for files that were changed more than a month ago and less a year a go.

you may add the -name "*filename*" if  you are looking for a particular file name
/path is the dir under which to search
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.