Re: [SLE] preserving files' creation time



Ken, Istvan,

On Wednesday 25 January 2006 11:45, ken wrote:
> ...
>
> This might be what you want:
>
> mv file.conf file.conf.orig; cp file.conf.orig file.conf
>
> ("mv" doesn't change the date of the file, but "cp" does, hence the
> "original" date will be preserved.)

Mv will change the ctime, since the link count changes transiently
during the move.

Cp can be told to preserve times. Check the options via --help or the
man page.


> hth,
> ken


Randall Schulz

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: [SLE] Thread Hijacking Protocol
    ... Meanwhile they're wasting more time on perfect formatting than they ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • [SLE] Juvenile antics on the list
    ... Check the headers for your unsubscription address For additional commands ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • Re: [SLE] what do you back-up and how?
    ... Years ago, with Windows, I messed with drive image ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • AW: [SLE] Suse 10 Installation impossible ;) FSC Celsius mobile H notebook
    ... The Labour party has changed their emblem from a rose to a condom as ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • [SLE] I have lost X, SUSE 10.1 x86_64
    ... exception of the printer, epson 925, and it only part of the time. ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)