Best Answer: How Do I Move a File Without Changing the Date Modified in Linux?
Contents How to Copy File Without Changing Last Modified Date, Time Stamp and Ownership in Linux / Unix? Cp Command Provides an Option –P for Copying the File...
How to Copy File without Changing Last Modified Date, Time stamp and ownership in Linux / Unix? cp command provides an option –p for copying the file without changing the mode, ownership and timestamps.
How do you modify a file without changing the timestamp in Unix?
The option -r (or –reference) uses file’s time instead of current time. You can use stat to check the timestamps of both files. Now edit the main file and make desired changes. Then use the touch command to touch the main file with timestamp of tmp file.
Must Read
Does moving a file change modified date?
If you move a file from D:NTFS to D:NTFSSUB, it keeps the same modified date and time and keeps the same created date and time. In all examples, the modified date and time of a file does not change unless a property of the file has changed.