在 2003-12-03 Wed 的 10:04, Marshal Newrock 写道: > 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.) ar, right!! Thanks :) > > > 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. in the CONTENTS, there are four field, does the forth field is the unix timestamp of the file?
-- [EMAIL PROTECTED] mailing list
