Linux: Copying Files and Preserving Timestamps

To copy files and keep the original timestamp, use

cp --preserve=timestamps /path/to/source.txt /path/to/destination.txt

 

Leave a Reply

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.