Using BASH to change timestamp Recursively


If you need to change the timestamp recursively, you may want to use the command. Change to the directory where you want to change.

$ cd ToBeChangedDir
$ find * -exec touch -t 202403011000 {} \;

Finally change the root directory itself

$ touch -t 202403011000 ToBeChangedDir

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.