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 {} \;
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