We can change the time stamp of all the files in a directory with a simple command
For example below screen shot contains a directory with two files of different date
Syntax for changing the time stamp of files in a directory
$ find "PATH-TO-THE-FILES-DIRECTORY" -exec touch -t YYYYMMDDhhmm {} \;
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWbEtHY55c4fvmctJtuPb_Eyf4eGu5oPVkTPpymhKI2rEEE0YShchvvqchM8aP8GbC59o0i68hO9GYfWG1Xe90nkQz6hJrytKDZLCr6p3dOCfttK6nYntB5S9YnzBBFLOt9qrX_woje80/s400/1.JPG)
See in the above screen time stamp of the files changed to the date we mentioned in the screen
For example below screen shot contains a directory with two files of different date
Syntax for changing the time stamp of files in a directory
$ find "PATH-TO-THE-FILES-DIRECTORY" -exec touch -t YYYYMMDDhhmm {} \;
See in the above screen time stamp of the files changed to the date we mentioned in the screen
No comments:
Post a Comment