How to find unused files in a project?

1

We have a web project that has changed the layout several times and many files will no longer be used. However, as there are a number of developers using files at the same time, the old files were kept until the entire change was finalized.

I need a command for Linux in which it looks up the names of the image files, css, html and etc from within a specific folder and list all that are no longer used.

    
asked by anonymous 26.06.2014 / 18:53

1 answer

2

This should list for you files that have not been accessed or modified in the past 30 days:

ls -l 'find * -mtime +30'

You can change the number of days by modifying the "+30" of the example to the desired number of days.

Maybe finding the old files in this way might help you filter what you want.

    
26.06.2014 / 21:58