Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
|
feedback
|
|
Navigate to the folder in question, let's say, ~/Documents/myfiles.
Then do:
This will change the modification time to whenever you executed that command. Obviously you can make this more specific depending on your use case, e.g.
will only alter the modification time for files with the string '.doc' in their name. | ||||
|
feedback
|
|
In Linux, if you want to do some thing recursively in directory, or you want to apply some actions on files meeting some criterions,you should try Touch all files in ~/Documents/myfiles (including files in sub directory)
| |||
|
feedback
|
touchcommand, e.g.$ touch file1 file2 file3– boehj Jun 19 '11 at 0:46