LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-07-2011, 11:20 PM   #1
livesimple
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
DD command in Linux


How to store the output of DD command in .txt file and read it in human readable language?
 
Old 12-07-2011, 11:52 PM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
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
 
Old 12-08-2011, 12:06 AM   #3
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
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.
 
1 members found this post helpful.
Old 12-08-2011, 02:29 AM   #4
livesimple
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
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?
 
Old 12-08-2011, 02:31 AM   #5
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
Try a forum search...

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

and
Code:
man dd
 
0 members found this post helpful.
  


Reply


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
[SOLVED] How does Linux cp command determine the source and destination locations in command? linuxman2 Linux - General 4 04-14-2011 07:13 PM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 02:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM
Translating windows pscp command to linux scp command help robward Linux - General 2 01-17-2008 06:02 AM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM


All times are GMT -5. The time now is 03:27 PM.

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