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. Required fields are marked *