Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-16-2004, 08:52 PM   #1
LQ Newbie
Registered: Jun 2004
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Help with FIND command please

I cant seem to locate which find attribute will display all the files that are X days old.

also, i'd like to also use the find command to find files accessed since the system was booted.

i know these are simple problems but I can't seem to find the answers in the MAN pages. Thanks a lot for your help
Old 06-16-2004, 09:16 PM   #2
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
find / -mtime -X

will perform a find from root for files have been modified in less then X days. If you substitute mmin for mtime it will be minutes vice days.

to narrow the search down you can put in a starting path in place of /, which can save you a good bit of time in search for a file. I am not aware of a find option that will search for a file since a system has been booted, but you can run a 'uptime' to determine how long ago that was, and convert the number to minutes as use the:

find . -mmin -<insert # of minutes box has been running>
Old 06-17-2004, 03:22 PM   #3
LQ Newbie
Registered: Jun 2004
Distribution: Redhat
Posts: 2

Original Poster
Rep: Reputation: 0
i'm sorry but i need to find files that are at least 'X days old' or are less than 'x days old' rather than files that have been modified.

basically, i need to find files based on their date of creation rather than their last date of modification. I sthis possible?
Old 06-17-2004, 03:43 PM   #4
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 05:30 PM
find command jch02140 Linux - Newbie 2 07-19-2005 12:21 AM
The find command Gins Linux - General 32 06-12-2005 02:20 PM
What is the FIND command Mic Q SUSE / openSUSE 1 04-07-2005 09:08 AM
find command... ultima Linux - Newbie 2 05-20-2004 04:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration