Carlos E. R. wrote on 2014-10-03 23:41 (UTC+0200):
Istvan Gabor wrote:
jdd wrote:
many copy utility changes the time stamp, for example if you copy from the camera (not from the sd card)
Those are the copy utilities I don't use. Those which I use preserve time stamps (creation time).
Are you sure? Look:
cer@Telcontar:~/tmp/date> l /home/cer-g/.xinitrc.template -rwxr-xr-x 1 cer-g users 1112 May 14 04:12 /home/cer-g/.xinitrc.template* cer@Telcontar:~/tmp/date> cp /home/cer-g/.xinitrc.template . cer@Telcontar:~/tmp/date> l .xinitrc.template -rwxr-xr-x 1 cer users 1112 Oct 3 23:39 .xinitrc.template* cer@Telcontar:~/tmp/date>
It's not clear to me what the above is supposed to demonstrate. Why would any file be given a name that includes a wildcard character (.xinitrc.template*), if even legal? $ ls -l ur* $ ls -l ztest/ur* -rw-r--r-- 1 abc xyz 1432 Aug 5 2009 url1.txt -rw-r--r-- 1 abc xyz 1234 Aug 6 2009 url2.txt $ cp ztest/url1.txt . $ cp -a ztest/url2.txt . $ ls -l ur* -rw-r--r-- 1 abc xyz 1432 Oct 3 23:54 url1.txt -rw-r--r-- 1 abc xyz 1234 Aug 6 2009 url2.txt On my initial Linux exposure, before discovering its ubiquitous OFM, the default behavior of cp was a turnoff that impeded my motivation to proceed with Linux use. Most of my individual and small group copying is done in an OFM. e.g. mc's <F5> (aka copy) apparently is configured by default on <F5> to preserve all attributes, including timestamp. It's what I expect every time I copy any normal file anywhere, regardless of copying tool used. To me, after decades of DOS and OS/2 use where such is the normal case, copying any regular file is equivalent to cloning it, making an exact duplicate. I find it inexplicable that gnu cp does not preserve all attributes by default, and little less difficult to comprehend how hard it can be in any exercise to make attribute preservation happen. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org