Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÏÂddÃüÁîÏê½â

 
ÏȼòÒª½éÉÜÏÂddµÄ²ÎÊý£¬ºó±ßͨ¹ý¼¸¸öʵÀý½éÉÜddµÄÓ¦Ó㬲ο¼ÁËÆäËûÍøÓѵÄ×ÊÁÏ£¬ÔÚ´ËÒ»
²¢¸Ðл£¬Ë®Æ½ÓÐÏÞÎÄÖÐÓÐʲô´íÎóÇë´ó¼ÒÖ¸Õý¡£
dd ÊÇ Linux/UNIX ϵÄÒ»¸ö·Ç³£ÓÐÓõÄÃüÁ×÷ÓÃÊÇÓÃÖ¸¶¨´óСµÄ¿é¿½±´Ò»¸öÎļþ£¬²¢ÔÚ¿½±´
µÄͬʱ½øÐÐÖ¸¶¨µÄת»»¡£
1. ÃüÁî¼ò½é
dd µÄÖ÷ҪѡÏ
Ö¸¶¨Êý×ֵĵط½ÈôÒÔÏÂÁÐ×Ö·û½áβ³ËÒÔÏàÓ¦µÄÊý×Ö:
b=512, c=1, k=1024, w=2, xm=number m
if=file
ÊäÈëÎļþÃû£¬È±Ê¡Îª±ê×¼ÊäÈë¡£
of=file
Êä³öÎļþÃû£¬È±Ê¡Îª±ê×¼Êä³ö¡£
ibs=bytes
Ò»´Î¶ÁÈë bytes ¸ö×Ö½Ú(¼´Ò»¸ö¿é´óСΪ bytes ¸ö×Ö½Ú)¡£
obs=bytes
Ò»´Îд bytes ¸ö×Ö½Ú(¼´Ò»¸ö¿é´óСΪ bytes ¸ö×Ö½Ú)¡£
bs=bytes
ͬʱÉèÖöÁд¿éµÄ´óСΪ bytes £¬¿É´úÌæ ibs ºÍ obs ¡£
cbs=bytes
Ò»´Îת»» bytes ¸ö×Ö½Ú£¬¼´×ª»»»º³åÇø´óС¡£
skip=blocks
´ÓÊäÈëÎļþ¿ªÍ·Ìø¹ý blocks ¸ö¿éºóÔÙ¿ªÊ¼¸´ÖÆ¡£
seek=blocks
´ÓÊä³öÎļþ¿ªÍ·Ìø¹ý blocks ¸ö¿éºóÔÙ¿ªÊ¼¸´ÖÆ¡£(ͨ³£Ö»Óе±Êä³öÎļþÊÇ´ÅÅÌ»ò´Å´øʱ²ÅÓÐЧ)¡£
count=blocks
½ö¿½±´ blocks ¸ö¿é£¬¿é´óСµÈÓÚ ibs Ö¸¶¨µÄ×Ö½ÚÊý¡£
conv=conversion[,conversion...]
ÓÃÖ¸¶¨µÄ²ÎÊýת»»Îļþ¡£
ת»»²ÎÊý:
ascii ת»» EBCDIC Ϊ ASCII¡£
ebcdic ת»» ASCII Ϊ EBCDIC¡£
ibm ת»» ASCII Ϊ alternate EBCDIC.
block °ÑÿһÐÐת»»Îª³¤¶ÈΪ cbs µÄ¼Ç¼£¬²»×㲿·ÖÓÿոñÌî³ä¡£
unblock ʹÿһÐеij¤¶È¶¼Îª cbs £¬²»×㲿·ÖÓÿոñÌî³ä¡£
lcase °Ñ´óд×Ö·ûת»»ÎªÐ¡Ð´×Ö·û¡£
ucase °ÑСд×Ö·ûת»»Îª´óд×Ö·û¡£
swab ½»»»ÊäÈëµÄÿ¶Ô×Ö½Ú¡£
noerror ³ö´íʱ²»Í£Ö¹¡£
notrunc ²»½Ø¶ÌÊä³öÎļþ¡£
sync °Ñÿ¸öÊäÈë¿éÌî³äµ½ibs¸ö×Ö½Ú£¬²»×㲿·ÖÓÿÕ(NUL)×Ö·û²¹Æë¡£
2.ʵÀý·ÖÎö
2.1.Êý¾Ý±¸·ÝÓë»Ö¸´
2.1.1ÕûÅÌÊý¾Ý±¸·ÝÓë»Ö¸´
±¸·Ý
½«±¾µØµÄ/dev/hdxÕûÅ̱¸·Ýµ½/dev/hdy £ºdd if=/dev/hdx of=/dev/hdy
½«/dev/hdxÈ«ÅÌÊý¾Ý±¸·Ýµ½Ö¸¶¨Â·¾¶µÄimageÎļþ£ºdd if=/dev/hdx of=/path/to/image
±¸·Ý/dev/hdxÈ«ÅÌÊý¾Ý£¬²¢ÀûÓÃgzip¹¤¾ß½øÐÐѹËõ£¬±£´æµ½Ö¸¶¨Â·¾¶£ºdd if=/dev/hdx | gzip
>/path/to/image.gz
»Ö¸´
½«±¸·ÝÎļþ»Ö¸´µ½Ö¸¶¨ÅÌ£ºdd if=/path/to/image of=/dev/hdx
½«Ñ¹ËõµÄ±¸·ÝÎļþ»Ö¸´µ½Ö¸¶¨ÅÌ £ºgzip -dc /path/to/image.gz | dd of=/dev/hdx
2.1.2.ÀûÓÃnetcatÔ¶³Ì±¸·Ý
ÔÚÔ´Ö÷»úÉÏÖ´ÐдËÃüÁ·Ý/dev/hda£ºdd if=/dev/hda bs=16065b | netcat < targethost-IP >
1234
ÔÚÄ¿µÄÖ÷»úÉÏÖ´ÐдËÃüÁîÀ´


Ïà¹ØÎĵµ£º

»ùÓÚǶÈëʽLinuxµÄÊÓƵͼÏñ²É¼¯Óë´«Êä

 
ÕªÒª:ÊÓƵͼÏñ²É¼¯¼°´¦Àí¼¼ÊõÔÚÔ¶³ÌÊÓƵ¼à¿ØºÍ¿ÉÊӵ绰ÖÐÓÐ׏㷺µÄÓ¦ÓÃÇ°¾°£¬Çý¶¯ÊÓƵ²É¼¯É豸ºÍ»ñÈ¡ÊÓƵÊý¾Ý²¢½øÐÐÏàÓ¦µÄ´¦Àí£¬ÊÇʵÏÖÕâЩӦÓõĻù´¡¡£Õë¶ÔÕâЩӦÓ㬹¹½¨ÁËÒ»¸ö»ùÓÚǶÈëʽ LinuxºÍ PXA270΢´¦ÀíÆ÷µÄÊÓƵ²É¼¯Óë´«Êäϵͳ£¬ÀûÓà Video4LinuxʵÏÖ USBÉãÏñÍ·ÊÓƵÊý¾Ý²É¼¯£¬²É¼¯µÄÊÓƵÊý¾Ý¾­ JPEGѹËõº ......

LinuxÏ°²×°SVN·þÎñÆ÷

°²×°»·¾³
CentOS 4.3 Final
Èí¼þÁбí
httpd-2.0.61.tar.gz
db-4.3.29.tar.gz
subversion-1.3.2.tar.gz
Èí¼þλÖÃ
/data/software
°²×°²½Öè
#mkdir /data/software/pkg
-p
°²×°Berkeley DB
#cd
/data/software/pkg
#tar zxvf ../db-4.3.29.tar.gz
#cd
db-4.3.29/docs
#../dist/configure
#make &&am ......

linuxÏÂBRITEµÄ°²×°

ÎÒÓõÄJava°æ±¾Îª1.4£¬ÓÃ1.5µÄʱºò˵ÊÇÓв»°²È«µÄ²Ù×÷£¬ÎÞ·¨±àÒë¡¢ÔËÐС£
ÏÂÔØ×îа汾£¬BRITE.tar.gz
  $ gunzip BRITE.tar.gz
  $ tar xvf BRITE.tar
  $ cd BRITE/    
  $ make all 
±àÒëÍê³É£¬ÔËÐÐBRITE
  $ ./brite &    
Ö÷ÒªµÄÎÊÌâ ......

Ubuntu 10.04 brings Linux closer to the mainstream

Ubuntu 10.04 brings Linux closer to the mainstream
No Windows viruses. Free. Any questions?
Of course. Start with this one: How can an operation system with those virtues, the open-source Linux, remain confined to a tiny minority of desktop and laptop computers at home?
Linux may run TiVo video r ......

Linux °²×°SVN

ÆäʵLinuxÏÂSVN»¹ÊDZȽϼòµ¥£¬ ÔÚÍøÉÏ£¬ Ò»ËѾÍÊÇÒ»´ó°ÑµÄ×ÊÁÏ¡£ µ«ºÜÉÙÓÐÈËÒ»´Î°²×°³É¹¦£¬ ÒòΪLinuxÖеĻ·¾³Ì«¸´ÔÓ£¬
ºÜÈÝÒ×»·¾³³åÍ»¡£
linux svnÒ»°ãÒÀÀµÓÚhttpd£¨Apache Web·þÎñÆ÷£©.
svn¶ÀÁ¢·½Ê½
µ±È»svn»¹ÓжÀÁ¢·½Ê½£¬ ¼´²»ÐèÒªapache·þÎñÆ÷, ¼´Ìø¹ýÏÂÃæµÄapache°²×°£¬ ¼°ÅäÖÃÖйØÓÚhttpd.conf²¿·Ö¡£
ÔÚ±àÒës ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ