Boise, Idaho
Or Remote

Recursively Touch All Files

I like to use touch to set the same timestamp on files and folders. It makes it easier to quickly identify a file that has changed.

But how do you do this recursively? Easily:

$ find . -exec touch {} \;

You can then list all of the files, ordered by timestamp.

$ ls -lt

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>