Subject: cp command on Linux

From: "Hemant Rumde" <[email-masked]>
Date: Wed, 22 Dec 2010 16:07:20 -0500

Hi 

I do not log any bug for cp command. In our company, we copy huge Cobol
files before processing data. This is to rollback our data files. 
Suppose A1 is my huge file of 60GB and A1.bk is its backup file, before
we process ( change ) data into A1. Then which of our method
would be faster?

1. Method-1 ( A1.bk exists ) 
    $ cp  A1 A1.bk 

2. Method-2  
    $ rm -f A1.bk 
    $ cp A1 A1.bk 

3. Method-3 
    $ cp --remove-destination A1 A1,bk 

This operation is very simple. But our operators tell, in some cases cp
takes longer time. How can we reduce copying time?

Thanks 
Hemant Rumde 
ING US 
Boston US

---------------------------------------------------------

NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients.  If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited.  If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it.

============================================================================================