Re: date hashlist

David Haller <[email protected]> Fri, 8 Apr 2011 17:11:43 +0200
Newsgroups gmane.linux.suse.programming
Organization What?
Message-ID <[email protected]>
Hallo,

Am Fri, 08 Apr 2011, Bernhard Walle schrieb:
>* Thomas Moritz <[email protected]> [2011-04-08 11:51]:
>> Hallo,
>> waehrend der Kernel baut, habe ich noch 2 Fragen.
>> 
>> 1)
>> Wie setze ich am einfachsten _alle_ Files des System auf
>> 1.1.1970 00:00
>
>Ungetestet:
>TZ=GMT find /path/to/root -type f -exec touch -D "1970-01-01 00:00" {} \;

TZ=UTC find /path/ -type f -exec touch -D "1970-01-01 00:00" {} +

>> 2)
>> Wie erstelle ich am einfachsten eine Liste mit den Hashes
>> _aller_ Files?
>
>Ungetestet:
>find /path/to/root -type f -exec md5sum {} \;

find /path/to/root -type f -exec md5sum -b {} + > MD5SUMS

-dnh

-- 
HTML ist eigentlich nur SGML das nicht validiert.   -- nach B. Wachter