GNU bug report logs - #7715
cp command on Linux

Previous Next

Package: coreutils;

Reported by: "Hemant Rumde" <Hemant.Rumde <at> us.ing.com>

Date: Wed, 22 Dec 2010 23:49:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Hemant Rumde" <Hemant.Rumde <at> us.ing.com>
To: 7715 <at> debbugs.gnu.org
Subject: bug#7715: cp command on Linux 
Date: Wed, 22 Dec 2010 16:07:20 -0500
[Message part 1 (text/plain, inline)]
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.

============================================================================================
[Message part 2 (text/html, inline)]

This bug report was last modified 14 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.