LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Please advice (https://www.linuxquestions.org/questions/linux-general-1/please-advice-928038/)

rammohantv 02-07-2012 02:31 AM

Please advice
 
Could some one can explain what does the following command & what will be the expected out put from a new disk?

dd if=/dev/sdX bs=1024 count=1024|od
:cool:

fukawi1 02-07-2012 02:38 AM

It will display the first Megabyte of the partition specified in lace of sdX, in (according to "man od") octal.

You may also be interested to know, if you want to "dry run" a dd command, you can substitute the in file, with "if=/dev/random" and the outfile with "of=/dev/null".

onebuck 02-07-2012 06:58 AM

Moderator response
 
Hi,

Quote:

Originally Posted by rammohantv (Post 4595742)
Could some one can explain what does the following command & what will be the expected out put from a new disk?

dd if=/dev/sdX bs=1024 count=1024|od
:cool:

Sure smells like homework to me.
LQ Rules;
Quote:

Do not expect LQ members to do your homework - you will learn much more by doing it yourself.

rammohantv 02-07-2012 08:13 AM

Quote:

Originally Posted by onebuck (Post 4595893)
Hi,



Sure smells like homework to me.
LQ Rules;



Please do home work and reply to me....

onebuck 02-07-2012 09:13 AM

Moderator response
 
Hi,

Quote:

Originally Posted by rammohantv (Post 4595947)
Please do home work and reply to me....

May I suggest that you show what you have done then possibly we may help with the problem.


All times are GMT -5. The time now is 01:56 AM.