ddÃüÁî
¹¦ÄÜ£º°ÑÖ¸¶¨µÄÊäÈëÎļþ¿½±´µ½Ö¸¶¨µÄÊä³öÎļþÖУ¬²¢ÇÒÔÚ¿½±´¹ý³ÌÖпÉÒÔ½øÐиñʽת»»¡£¿ÉÒÔÓøÃÃüÁîʵÏÖDOSϵÄdiskcopyÃüÁîµÄ×÷Óá£ÏÈÓÃddÃüÁî°ÑÈíÅÌÉϵÄÊý¾Ýд³ÉÓ²Å̵ÄÒ»¸ö¼Ä´æÎļþ£¬ÔÙ°ÑÕâ¸ö¼Ä´æÎļþдÈëµÚ¶þÕÅÈíÅÌÉÏ£¬Íê³ÉdiskcopyµÄ¹¦ÄÜ¡£ÐèҪעÒâµÄÊÇ£¬Ó¦¸Ã½«Ó²ÅÌÉϵļĴæÎļþÓÃrmÃüÁîɾ³ýµô¡£ÏµÍ³Ä¬ÈÏʹÓñê×¼ÊäÈëÎļþºÍ±ê×¼Êä³öÎļþ¡£
Óï·¨£ºdd [Ñ¡Ïî]
if =ÊäÈëÎļþ£¨»òÉ豸Ãû³Æ£©¡£
of =Êä³öÎļþ£¨»òÉ豸Ãû³Æ£©¡£
ibs = bytes Ò»´Î¶ÁÈ¡bytes×Ö½Ú£¬¼´¶ÁÈ뻺³åÇøµÄ×Ö½ÚÊý¡£
skip = blocks Ìø¹ý¶ÁÈ뻺³åÇø¿ªÍ·µÄibs*blocks¿é¡£
obs = bytes Ò»´ÎдÈëbytes×Ö½Ú£¬¼´Ð´È뻺³åÇøµÄ×Ö½ÚÊý¡£
bs = bytes ͬʱÉèÖöÁ/д»º³åÇøµÄ×Ö½ÚÊý£¨µÈÓÚÉèÖÃibsºÍobs£©¡£
cbs = byte Ò»´Îת»»bytes×Ö½Ú¡£
count=blocks Ö»¿½±´ÊäÈëµÄblocks¿é¡£
conv = ASCII °ÑEBCDICÂëת»»ÎªASCIlÂë¡£
conv = ebcdic °ÑASCIlÂëת»»ÎªEBCDICÂë¡£
conv = ibm °ÑASCIlÂëת»»Îªalternate EBCDICÂë¡£
conv = block °Ñ±ä¶¯Î»×ª»»³É¹Ì¶¨×Ö·û¡£
conv = ublock °Ñ¹Ì¶¨Î»×ª»»³É±ä¶¯Î»¡£
conv = ucase °Ñ×ÖĸÓÉСдת»»Îª´óд¡£
conv = lcase °Ñ×ÖĸÓÉ´óдת»»ÎªÐ¡Ð´¡£
conv = notrunc ²»½Ø¶ÌÊä³öÎļþ¡£
conv = swab ½»»»Ã¿Ò»¶ÔÊäÈë×Ö½Ú¡£
conv = noerror ³ö´íʱ²»Í£Ö¹´¦Àí¡£
conv = sync °Ñÿ¸öÊäÈë¼Ç¼µÄ´óС¶¼µ÷µ½ibsµÄ´óС£¨ÓÃNULÌî³ä£©¡£
¡¡
Àý1£ºÒª°ÑÒ»ÕÅÈíÅ̵ÄÄÚÈÝ¿½±´µ½ÁíÒ»ÕÅÈíÅÌÉÏ£¬ÀûÓÃ/tmp×÷ΪÁÙʱ´æ´¢Çø¡£°ÑÔ´Å̲åÈëÇý¶¯Æ÷ÖУ¬ÊäÈëÏÂÊöÃüÁ
$ dd if =/dev/fd0 of = /tmp/tmpfile
¿½±´Íê³Éºó£¬½«Ô´ÅÌ´ÓÇý¶¯Æ÷ÖÐÈ¡³ö£¬°ÑÄ¿±êÅ̲åÈ룬ÊäÈëÃüÁ
$ dd if = /tmp/tmpfile of =/dev/fd0
ÈíÅÌ¿½±´Íê³Éºó£¬Ó¦¸Ã½«ÁÙʱÎļþɾ³ý£º
$ rm /tmp/tmpfile
¡¡
Àý2£º°Ñnet.iÕâ¸öÎļþдÈëÈíÅÌÖУ¬²¢É趨¶Á/д»º³åÇøµÄÊýÄ¿¡£
£¨×¢Ò⣺ÈíÅÌÖеÄÄÚÈݻᱻÍêÈ«¸²¸Çµô£©
$ dd if = net.i of = /dev/fd0 bs = 16384
¡¡
Àý3£º½«Îļþsfile¿½±´µ½Îļþ dfileÖС£
$ dd if=sfile of=dfile
dert ÓÚ 2009-10-25 00:45:21·¢±í:
лл·ÖÏí
shenhao0129 ÓÚ 2009-09-16 21:14:05·¢±í:
Õâ¸öÃüÁîÔÝʱûÓÐÓõÄÉÏ£¬²»¹ýòËƺÜÇ¿´ó£¬ºÃÏñÖÆ×÷Æô¶¯Å̵ÄʱºòÓõıȽ϶à
Á÷ÔÆËÆË® ÓÚ 2009-09-15 20:53:37·¢±í:
ѧϰ!
ÃÎÐÑʱ·Ö ÓÚ 2009-09-12 21:03:36·¢±í:
ѧϰÁË!
bjxksy ÓÚ 2009-08-07 15:35:24·¢±í:
лл·ÖÏí
ssgdwvf ÓÚ 2009-08-05 16:03:36·¢±í:
ѧϰÁË¡£¡£¡£
kuaijiedu ÓÚ 2009-07-27 20:18:43·¢±í:
ddÊǸö·Ç³£ºÃµÄÃüÁî
feng_1206 ÓÚ 2009-05-30 16:35:59·¢±í:
ddÊǸö·Ç³£ºÃµÄÃüÁî¡¡
nokia4321 ÓÚ 2009-03-28 11:19:03·¢±í:
Ö§³ÖÏ¡£
cwqing1973 ÓÚ 2009-03-06 22:04:54·¢±í:
ѧϰÁË£¬LZ°¡¡£Ð»Ð»ÁË£¬ÓпնàÀ´Ö¸µ¼¡£