Solaris --Find by date

Posted on 2007-10-16
Last Modified: 2013-12-27
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)
Question by:moto_sys
    1 Comment
    LVL 40

    Accepted Solution


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


    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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now