[olug] Unix Tip: KEEPING THE TIME

Ryan rps at willconsult.com
Tue Dec 31 18:58:01 UTC 2002


>$ mv foo.conf foo.conf.orig
>$ cp foo.conf.orig foo.conf
>$ vi foo.conf
>
>If you hsve to restore the
>original file:
>
>$ mv foo.conf.orig foo.conf

You can also just cp -p it (preserve), to save a step.

cp -p foo.conf foo.conf.org
vi foo.conf

-Ryan





More information about the OLUG mailing list