Make all files in dir same date time
Hi, i just started a developement area on my web server (shared hosting) and i would like to make all of the files the same date and time starting off so i know what has changed since the beginning.
I used to work on them on the PC but now i want to move the dev area to a protected area on the server. And i want to have all the files in the dir have the same date and time as i begin.
Is there a way to do this on a dir?
Thanks
-
cd /to_to the_directory_you_want_to set_the_date find -print | while read filename; do touch -t 201905291500 "$filename"; done the above will edit the date of all files in the directory to May 29 15:00 0 -
Thanks ill ask my host to do that for me as i dont have root access, appreciate that :) 0 -
Hello, I've marked this thread as solved. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments