Frequent Question: How Do I Copy a File Without Changing the Date Stamp 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 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.

8 авг. 2018 г.

How do I edit a file without changing the timestamp in Linux?

A file’s timestamps can be updated using touch command. The timestamps also gets updated when we manually add contents in a file or remove data from it. If you want change the contents of files without changing its timestamps, there is no direct way to do it.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest