On Tue, 3 Dec 2003, Zarick Lau wrote: > When I type date to check the time (just want to see whether I shall > sleep or not!) I find that, the system time is 12-03-2017. And a quick > look in the system reveal the fact that, near half of the system file > has the wrong date and the other half is correct! > > I think it may be my careless mistake made in some time before, anyway, > how can change the time of the file. > > first, is there a cmd/program to change the file's modified time?
'touch' will do this. I would recommend using 'find' to find all files far in the future (say, at least +1 year) and -exec touch on them. (But first -exec ls -l to make sure you're finding the right files.) > second, I think just changing the file's time will break portage db, how > to resolve it. I have take a look in > /var/db/pkg/sys-apps/coreutils/CONTENTS > and see that there are a few columns, is that related to the timestamp > of installed files which is kept inside portage DB? That, alas, I do not know. -- CAUTION: Product will be hot after heating -- [EMAIL PROTECTED] mailing list
