Visit Jeremy's Blog.
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 02-27-2009, 07:20 PM   #1
Registered: Sep 2004
Posts: 30

Rep: Reputation: 15
What's the difference between dd and cat > ?

Hi there,

So I went to VMWare training this week and one of the processes for P2V conversion involves booting to a Linux live CD on the physical server and executing:

cat /dev/[Pdisk1] > //[NFS server]:/[share]/[temp]

and then booting to the Linux CD on the VM and executing:

cat //[NFS server]:/[share]/[temp] > /dev/[Vdisk1]

I never knew you could use cat and redirection to clone a device, so my question is what's the difference between cat > and dd?

Old 02-27-2009, 07:24 PM   #2
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,227

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
my guess is dd is more precise
Old 02-27-2009, 07:28 PM   #3
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Cat is meant for Catenation, it's meant for merging multiple files together.

Cat file1 file2 > mergedfile

DD is meant for proper low level copying of data as such for turning a CD into an .iso.


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
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 05:26 AM
cat onelinefile.txt >> newfile.txt; cat twofile.txt >> newfile.txt keep newline? tmcguinness Programming 4 02-12-2009 07:38 AM
Using cat readline within cat readline while loop demxkn66 Programming 5 12-16-2007 06:10 PM
cat in asm/ cat --show-all option Tux Linux - Software 1 09-02-2006 10:31 PM
what's the difference between cat /proc/cpuinfo and x86info jayeola Linux - Hardware 1 12-15-2005 08:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 AM.

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