Mailinglist Archive: opensuse (3351 mails)

< Previous Next >
Re: [opensuse] Retaining the correct timestamp
  • From: Basil Chupin <blchupin@xxxxxxxxxx>
  • Date: Sat, 17 Mar 2007 19:01:48 +1100
  • Message-id: <45FBA06C.1040209@xxxxxxxxxx>
Cristian Rodriguez R. wrote:
Basil Chupin escribió:

One undesirable effect is that the timestamp of the original file is
'destroyed' and overwritten by the timestamp when the copying occurs. I
want to be able to retain the original timestamp.

use the "-p" flag of the "cp" command.

Thanks for this.

I normally use mc (midnight commander) and unfortunately it doesn't have an option equivalent to -p so I now have to adapt myself to using a command line for copying <sigh...messy, with lots of typing.......>. (Anyone know of a 'fox' for mc to put in this cp's -p option?)

There is the 'noatime' parameter which can be added to the HD entries in
fstab but will this solve my problem (if I add this 'noatime' parameter
on all the computers)?

noatime will make your filesystem NOT to update the **access** time of
your files.
Ah, OK- it only works on the Accessed Date and not on the Modified(/Created) Date.

Thanks again.


Never believe anything until it's been officially denied.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >