Skip to content

Journey of Epsilon

  • Home
  • Log In

copy while preserving timestamps

Posted byepsilon May 22, 2013January 26, 2021

Sometimes, it is useful to copy files while preserving its timestamps.

cp -a source dest

scp -p source dest

To cp without replacement, we can use

rsync -au source/ dest/

Posted byepsilonMay 22, 2013January 26, 2021Posted inlinux

Post navigation

Previous Post Previous post:
replace a string in files, reload files in emacs, change files names in batch,
Next Post Next post:
display specific lines in a file

Recent Posts

  • Simple steps to create a static website
  • Migrate a WordPress Website from AWS to OCI
  • Graphic Design
  • argparse const vs default
  • avoid googlesheets to increase the dates

Recent Comments

    Archives

    • September 2025
    • September 2023
    • February 2023
    • March 2022
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • March 2021
    • January 2021
    • November 2020
    • October 2020
    • July 2014
    • January 2014
    • July 2013
    • June 2013
    • May 2013
    • April 2013
    • December 2012
    • November 2012

    Categories

    • general
    • latex
    • linux
    • Machine Leanring
    • math
    • numerical
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Journey of Epsilon, Proudly powered by WordPress.