Re: How can I determine which files are used?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> make clean
> find . | xargs touch -t 198001010101
> make
> find . -not atime -1 | xargs rm $i
> 
> Which would set all of the access times to be really old, 
> rebuild everything, and then remove all files which weren't
> touched during the build.

Slight correction: make that last command

find . -not -atime -1 | xargs rm $i

and the last sentence "which weren't accessed during the build".
Still untested though :)

-jim


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux