December 15, 2017, 06:00:28 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Find Command  (Read 5477 times)

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Find Command
« on: April 03, 2006, 09:23:46 PM »
Hi all

I want to know that wheather  the file are there using find command..
means i wana check   date of creation of file using find command

suppose i wana chek in directory /test that wheather the file of previous date i.e 3/4/2006 (Assuming the current date of system is 2/4/2006) is present or not...??
So how can i do using file command???? I wana do this only find command??
I have tried option find -mtime and  find -ctime but didn't get success..

Please help if anybody can.....

Thx in Advance

Gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Find Command
« Reply #1 on: April 05, 2006, 03:45:52 AM »
well, ..

see
dsl.org/cookbook/cookbook_10.html#SEC143

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Find Command
« Reply #2 on: April 05, 2006, 10:34:03 AM »
Thx Ricky

I will try this and let  you know
Thx again

Gaurav

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Find Command
« Reply #3 on: April 07, 2006, 01:46:56 PM »
Thx Ricky..
I have made the script with the tutorial you have provided to me, Still My script is not in full functionality.
 
But Really its very good tutorial...

Thanks
Gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Find Command
« Reply #4 on: May 14, 2007, 05:23:18 PM »
Hi Gaurav, after a year (almost) have same question here -->
Using commandline for searching & finding but story is same .

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Find Command
« Reply #5 on: May 15, 2007, 05:49:48 AM »
Yeah its somewhat same.............

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Find Command
« Reply #6 on: May 15, 2007, 09:29:57 AM »
So what do you think.. not really any way to find time of creation of file in Linux ?

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Find Command
« Reply #7 on: May 21, 2007, 06:04:55 AM »
Ricky

I have searched it but was not able to find relevant solution for that but there is command called status, but it doesn't give the required solution as it gives mtime or access time

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Find Command
« Reply #8 on: May 21, 2007, 07:29:55 PM »
Is it something missing in Linux or we donno the solution ?

Offline Arora

  • Linux Noob !
  • *
  • Posts: 19
Re: Find Command
« Reply #9 on: May 22, 2007, 11:46:09 AM »
I don't have ur email id , mail me

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Find Command
« Reply #10 on: May 24, 2007, 04:07:50 AM »
Ricky

I think its somewhat missing in linux but not sure..., searched for that but wasn't able to find appropriate solution......

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Find Command
« Reply #11 on: May 31, 2007, 05:13:19 PM »
@Gaurav

May be.

@Arora..
What are you talking about ?

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: Find Command
« Reply #12 on: December 26, 2007, 07:24:47 AM »
I believe it is not that Linux have no proper or missing proper solution. It is just that we have a phenomena called "So Near Yet So Far" :D

The answer to using Linux/Unix commands is 1 simple principle that adheres to standards wisely is
--> Use the "man" and "info" tool.

Most of the times Linux tool developers will either document their sample commands in "man" page or "info" page.

# man find
or
# info find

You follow this principle, u dont need 2 waste effort googling around at all. :P