LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   DD command in Linux (https://www.linuxquestions.org/questions/ubuntu-63/dd-command-in-linux-917663/)

livesimple 12-07-2011 11:20 PM

DD command in Linux
 
How to store the output of DD command in .txt file and read it in human readable language?

EricTRA 12-07-2011 11:52 PM

Hello and welcome to LinuxQuestions,

Although 'dd' can do conversion I doubt you can store all output in a human readable form since you don't know what's saved on the device blocks that you are 'duplicating'. Maybe the man page can help you out? It would be easier to answer if you'd provide more information about what you want to do.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric

fukawi1 12-08-2011 12:06 AM

I am not sure what you want to do exactly, or what you mean by "output".

you can redirect dd's stdout to a file with:
Code:

~ $ dd if=/dev/zero of=/dev/null bs=4096 count=2 > ddlog.txt 2>&1
~ $ cat ddlog.txt
2+0 records in
2+0 records out
8192 bytes (8.2 kB) copied, 2.0977e-05 s, 391 MB/s

Other than that suggestion, can you clarify your question.

livesimple 12-08-2011 02:29 AM

Quote:

Originally Posted by EricTRA (Post 4544819)
Hello and welcome to LinuxQuestions,

Although 'dd' can do conversion I doubt you can store all output in a human readable form since you don't know what's saved on the device blocks that you are 'duplicating'. Maybe the man page can help you out? It would be easier to answer if you'd provide more information about what you want to do.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric

Thank you for the reply.
I want to know more about the functionality of DD command.How it is useful in Linux?

fukawi1 12-08-2011 02:31 AM

Try a forum search...

http://www.linuxquestions.org/linux/...ything_With_DD
http://www.linuxquestions.org/questi...ommand-362506/

and
Code:

man dd


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