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
- In Linux. The -p does the trick in Linux. -p is the same as –preserve=mode,ownership,timestamps . …
- In FreeBSD. The -p also do the trick in FreeBSD. …
- 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
- Press Windows key + R.
- Input “CMD” and hit enter to open Command prompt. Click OK when Windows User Control pops up.
- Type Robocopy commands to copy files while preserving timestamp.