Computer Tips - Linux: Set the modify time of a file to the same as another

Date: 2025jan9 OS: Linux Language: bash Keywords: transfer/copy a modtime Q. Linux: Set the modify time of a file to the same as another A. Use the `touch` command like this:
touch -d "$(date -R -r source_filename.txt)" destination_filename.txt
This also works on Cygwin.