I am on a system which deletes files which haven't been modified in 30 days. I need some way to preserve important files by marking them as being recently modifed. What is the best way I can do this? Something like for d in *; do; cat $d > $d ; done
recursively mark all files in a directory as modified without changing file content
command line;files;timestamps;recursive
cd to that directory, then use this command to mark only the files :find . -type f -exec touch {} \;or this command to mark even the directories :find . -exec touch {} \;After the execution, the files (and folders if you choose the 2nd command) will be marked that they were just changed, and their content won't be changed.The advantage of this command that it will go recursive, even the subdirectories and the files under those subdirectories will be marked as changed.