Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On OS X when you a copy a file using Finder, the target file has the same creation and modification times as the source file.

However when you do so using cp in Terminal both creation and modification times of the target are set to the time of copying. cp -p preserves modification time but not creation time - it is set to the value of the modification time.

Any one know of a command line tool in macs to accomplish the same behavior like in Finder when copying files?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Look at ditto(1).   

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.