Frequent Question: How Copy File Without Changing Date in Linux?

Frequent Question: How Copy File Without Changing Date 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 without changing the mode, ownership and timestamps.

How do I copy a file without changing the date stamp in Linux?

Answer

  1. In Linux. The -p does the trick in Linux. -p is the same as –preserve=mode,ownership,timestamps . …
  2. In FreeBSD. The -p also do the trick in FreeBSD. …
  3. In Mac OS. The -p also do the trick in Mac OS.

How do I copy files without changing date?

How to Copy Files without Changing Date Stamp

  1. Press Windows key + R.
  2. Input “CMD” and hit enter to open Command prompt. Click OK when Windows User Control pops up.
  3. Type Robocopy commands to copy files while preserving timestamp.
Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.