The Computer Oracle

How can I copy a file in Unix without altering its last modified time?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Question
00:28 Accepted answer (Score 127)
01:44 Answer 2 (Score 20)
02:22 Answer 3 (Score 15)
02:52 Thank you

--

Full question
https://superuser.com/questions/114195/h...

Accepted answer links:
[For Linux]: http://www.unix.com/man-page/Linux/1/cp/
[For FreeBSD]: http://www.unix.com/man-page/FreeBSD/1/c.../
[for OS X]: http://www.unix.com/man-page/OSX/1/cp/
[to which for macOS the birth time can be added using explicit formatting]: https://stackoverflow.com/questions/3412...

Answer 2 links:
[GNU Coreutils]: http://www.gnu.org/software/coreutils/ma...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#unix #timestamp

#avk47