dd question
Hi,
I have read about DD command, what it means by "dd if=/dev/zero " , any explanation would be appriciated. Thanks |
/dev/zero and /dev/null
if means input file
/dev/zero and /dev/null are the same, the bit bucket or null device. If the input file is /dev/zero, it sounds like this command is for zeroing a file or device. |
/dev/null and /dev/zero are not the same.
While both can act as bit buckets, reading from /dev/null is equivalent to reading an empty file, while reading from /dev/zero results in an infinite stream of null bytes (bytes with value 0). |
Example:
1. dd if=/dev/null of=x count=1 bs=1024 Doesn't work. Created file 'x' has zero size 2. dd if=/dev/zero of=x count=1 bs=1024 Creates file 'x' of size 1024 filled with binary zeros. Check out this link: http://www.linuxquestions.org/questi...ommand-362506/ |
Hello Guys,
Thank you so much. Does it mean, it crates the file from /dev/zoero and copy it into file x ? Thanks in advance. |
When it creates file called X, what parttion it is using?
|
Quote:
Quote:
|
Thank you so much, I got it now.
|
All times are GMT -5. The time now is 06:45 PM. |