Home » Infrastructure » Linux » Verify file copy into the linux (Redhat Linux.)
Verify file copy into the linux [message #555804] Tue, 29 May 2012 01:47 Go to next message
chintan.patel
Messages: 131
Registered: July 2008
Location: Ahmedabad
Senior Member
Hi Friends

I would like to verify the copy of the file.

For Example
The comman is,
Quote:

cp -pfu x.doc /x.doc


Size of "x.doc" is 72 mb. Now i want to verify that the destination file and source file has the same size and timestamp.
Is it possible with cp command?

I know the command in windows but dont know in linux, So please help me in it.

Thanks
Chintan
Re: Verify file copy into the linux [message #555807 is a reply to message #555804] Tue, 29 May 2012 01:57 Go to previous messageGo to next message
Michel Cadot
Messages: 59276
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
I know the command in windows


What is it?

Regards
Michel
Re: Verify file copy into the linux [message #555838 is a reply to message #555807] Tue, 29 May 2012 05:37 Go to previous messageGo to next message
chintan.patel
Messages: 131
Registered: July 2008
Location: Ahmedabad
Senior Member
It means there is one command in windows (From DOS Prompt).

Quote:

copy /v x.doc x1.doc


"/V" means "Verifies that new files are written correctly."
Re: Verify file copy into the linux [message #555841 is a reply to message #555838] Tue, 29 May 2012 05:53 Go to previous messageGo to next message
Michel Cadot
Messages: 59276
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I don't think there is such thing in Unix "cp" command.
Verify size and md5 sum at noth sides.

Regards
Michel
Re: Verify file copy into the linux [message #555884 is a reply to message #555841] Tue, 29 May 2012 11:25 Go to previous message
BlackSwan
Messages: 22839
Registered: January 2009
Senior Member
man cksum
Previous Topic: oracle 10g installation Why ORAINSTROOT.SH & ROOT.SH scripts to be executed ... on OEL 4.5
Next Topic: Oracle 11gR2 Installation on RHEL 6.2 with VMWARE
Goto Forum:
  


Current Time: Tue Sep 30 10:02:45 CDT 2014

Total time taken to generate the page: 0.13546 seconds