Skip to content
Advertisement

How to change the created and last modified date of a file to present time in Linux Shell? [closed]

I am looking for a command in bash to change the last modified and created timestamp to be changed to present time. How do I do it using shell command/script?

Thanks!

Advertisement

Answer

touch will update the access and modification times (or only one of the two with -a or -m respectively).

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement