Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-31-2012, 02:47 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 6

Rep: Reputation: 1
Question Does Linux verify copy and save ?

Does Linux verify what is saved to the HD ?

I'm using Ubuntu + Gnome + Nautilus and copy files from directory to another.
I'm also using some applications and scripts and saving data there.

Sometimes the data is just _HUGE_ and every bit is extremely important (gene sequences).
I want to ge really sure the data gets saved right.

(I have had some complete katastrophs with M$ while saving data)
Old 01-31-2012, 03:16 AM   #2
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
You might want to give a deeper look into "cp" command.

Old 01-31-2012, 03:33 AM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
(I have had some complete katastrophs with M$ while saving data)
That sounds like an excellent example of why one should make regular backups, regardless of the OS one uses.

Last edited by bigrigdriver; 01-31-2012 at 03:34 AM.
Old 01-31-2012, 07:16 AM   #4
Registered: Mar 2006
Distribution: Funtoo
Posts: 124

Rep: Reputation: 25
If you want to check, you can use "md5sum":
md5sum your_huge_file where/you/copied/your_huge_file
If the hexadecimal numbers are the same, then the files are identical.

Or even simpler:
diff -qs your_huge_file where/you/copied/your_huge_file
Old 01-31-2012, 07:33 AM   #5
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
You could use rsync to do the copy. It does verify (and it accordingly takes longer than cp).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save mirror copy to pen-drive? palotronix Debian 3 11-20-2011 01:44 PM
openssl ssl error code 14090086 verify the CA cert is ok / certificate verify failed acummings Slackware 14 02-27-2009 02:51 AM
forward and save copy in exim adnanhasanz Linux - Newbie 1 11-27-2007 02:33 AM
How to copy/save a file from a Linux box to a local drive exl75 Linux - General 11 04-10-2007 01:52 PM
Cannot save copy of sent mails with mutt SlackN00b Linux - Software 1 06-09-2006 10:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration