touch -d "$(date -R -r source_filename.txt)" destination_filename.txtThis also works on Cygwin.
Computer Tips - Linux: set the modify time of a file to the same as another
Date: 2025jan9
OS: Linux
Language: bash
Q. Linux: set the modify time of a file to the same as another
A. Use the `touch` command like this: