Number of files - in start of year

Is there any way to find "Number of files" that exists on my solaris parition in the starting of 2009 year ?

I know ctime or mtime will not help and unix wouldnt store creation time.

Only hope i can see ( and i am not sure if that will help ) is that my system is up from last 2 years without reboot so any place in /proc where i can find this or any other idea ?

  • Rajwinder Singh

But ctime is the creation time. <-- Edit: Disregard this, it's not true, as pointed out by jlliagre

If you are asking how to find out how many files existed on the system on Jan 1st 2009, there's no way to tell unless you ran a backup on that day.

Or are you asking something else?

It isn't unless the file has never be modified.
"ctime" is defined as the last status change time. The creation time is usually not recorded on typical Unix filesystems, ZFS being an exception.

Ooh, you're absolutely right. No idea what I was thinking there sorry! :o

Thanks for replies guys ! was just curious as this sound like a pretty simple thing but somehow except backups i cant see any solution

A ZFS snapshot would also allow to answer to that question. Quite similar to a backup though.