1834829 Members
1619 Online
110070 Solutions
New Discussion

identify new file

 
prash_1
Frequent Advisor

identify new file

Dear
gurus,
1) how i can know new generated fils
in the system from last one day not updated files



thanks.
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: identify new file

1) You can't; UNIX has no concept of the creation time of a file. There is a file's ctime that indicates the last time a file was chmod'ed, chown'ed, or changed in size but if that happens to be a files creation time, it's only by accident.

If you really have to do this (and it really has to be correct) then you would have to do a full find today and compare that to the same command's output that was run yesterday.

If you don't like these answers then change the question.
If it ain't broke, I can fix that.
Stefan Schulz
Honored Contributor

Re: identify new file

Hi,

there is no easy way to differ between new and modified files. The file creation time is not registered seperately in the filesystem.

So the way to go is to generate a list of all files and compare it to a previous generated list. So you can register new and if you like deleted files.

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.