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

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


   Ãû³Æ: dd
ʹÓÃȨÏÞ: ËùÓÐʹÓÃÕßdd Õâ¸öÖ¸ÁîÔÚ manual ÀïµÄ¶¨ÒåÊÇ convert and copy a file
ʹÓ÷½Ê½:
dd [option]
Èç¹ûÄãÏëÒªÔÚÏß¿´ manual, ¿ÉÒÔÊÔÊÔ:
dd --help
»òÊÇ
info dd
Èç¹ûÄãÏëÒª¿´¿´Õâ¸ö°æ±¾ÈçºÎ:
dd --version
ÊäÈë»òÊä³ö
dd if=[STDIN] of=[STDOUT]
Ç¿ÆÈÊäÈë»òÊä³öµÄSizeΪ¶àÉÙBytes
bs: dd -ibs=[BYTE] -obs=[SIZE]
Ç¿ÆÈÒ»´ÎÖ»×ö¶àÉÙ¸ö Bytes
cbs=BYTES
Ìø¹ýÒ»¶ÎÒÔºó²ÅÊä³ö
seek=BLOCKS
Ìø¹ýÒ»¶ÎÒÔºó²ÅÊäÈë
skip=BLOCKS
µ±È»Äã¿ÉÒÔÄÃÕâ¸öÀ´·½±ãµÄ¿½±´¹âµú(×¢Ò⣬ÄãµÄ¹âµúÊDZê×¼µÄ iso9660¸ñʽ²Å¿ÉÒÔÕâô×öà¡£¡)
dd if=/dev/cdrom of=cdrom.iso
ÆäÖÐ if ºóÃæÒÔ¼° of ºóÃæµÄÄÚÈÝÒÀÄãµÄÐèÇóµ÷Õû¡£
È»ºó¸øϵͳÕâ¸öÖ¸Áî¾Í¿ÉÒÔÉÕÁË:
cdrecord -v cdrom.iso
Õâƪ²»ÊÇÔÚ½² cdrecord µÄ£¬ËùÒÔÉÏÃæµÄÖ¸ÁîÊÇ×îΪ¼òµ¥µ«ÊDz»Ò»¶¨ÄÜ·ûºÏÄúµÄÓ²¼þ»·¾³...
¹¦ÄÜ£º°ÑÖ¸¶¨µÄÊäÈëÎļþ¿½±´µ½Ö¸¶¨µÄÊä³öÎļþÖУ¬²¢ÇÒÔÚ¿½±´¹ý³ÌÖпÉÒÔ½øÐиñʽת»»¡£¿ÉÒÔÓøÃÃüÁîʵÏÖ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×÷ΪÁÙʱ´æ´¢Çø¡£°ÑÔ´Å


Ïà¹ØÎĵµ£º

¡¾×ª¡¿ÔÚLinuxÏÂѹËõÎļþ tarÃüÁîµÄʹÓÃ

    ¶ÔÐí¶àÓû§À´Ëµ£¬ÔÚDOSºÍWindows»·¾³ÏÂÀûÓù¤¾ßÈí¼þWinZip¡¢ARJµÈѹËõ»ò½âѹÎļþÊDZȽÏÈÝÒ×µÄÊ¡£µ«ÊÇ£¬ÔÚLinuxÖÐÈçºÎ¶ÔÎļþ½øÐÐѹËõÓë½âѹÄØ£¿
    ÓÃtar½¨Á¢´æµµ
    tarÊÇ“tape archive”(´Å´ø´æµµ)µÄ¼ò³Æ£¬Ëü³öÏÖÔÚ»¹Ã»ÓÐÈíÅÌÇý¶¯Æ÷¡¢Ó²Å̺͹âÅÌÇý¶¯Æ÷µ ......

linux϶¨Ê±Æ÷µÄʹÓ㨶þ£©

 
¡¾ÕªÒª¡¿
±¾ÎÄÖ÷Òª½éÉÜÁËlinuxµÄʱ¼äºÍ¶¨Ê±Æ÷¡£
¡¾¹Ø¼ü´Ê¡¿
Linux ¶¨Ê±Æ÷ ʱ¼ä
Ò»¡¢ÎÊÌâµÄÌá³ö
ÎÒÃÇ¿ª·¢³ÌÐòʱ£¬¾­³£»áÓöµ½Ê±¼äºÍ¶¨Ê±Æ÷µÄÎÊÌ⣬ΪÁ˸üºÃµÄʹÓÃʱ¼äºÍ¶¨Ê±Æ÷£¬ÏÖÔÚÁоÙÒ»¸öһЩʱ¼ä½á¹¹Ìå¡¢º¯ÊýºÍ¶¨Ê±Æ÷¡£
¶þ¡¢½â¾ö˼·
1.ʱ¼äÀàÐÍ
1) time_tÊÇÒ»¸ö³¤ÕûÐÍ£¬Ò»°ãÓÃÀ´±íʾÓÃ1970ÄêÒÔÀ´µÄÃëÊ ......

LinuxÏÂÓÃCÓïÑÔAPIÁ¬½ÓMySQLÊý¾Ý¿â

 ÏñPHPºÍperlÒ»Ñù£¬MySQLÒ²ÌṩµÄCÓïÑÔʹÓõÄAPI. C´úÂëµÄAPIÊÇËæMySQLÒ»Æð·¢²¼µÄ¡£ Ëü°üº¬ÔÚmysqlclient¿âÖУ¬ ¿ÉÒÔʹC³ÌÐòÀ´·ÃÎÊÊý¾Ý¿â¡£
    MySQLÔ´Âë°üÖеÄÐí¶à¿Í»§¶Ë¶¼ÊÇÓÃCдµÄ¡£ Èç¹ûÄãÕýÔÚÕÒʹÓÃÕâЩC APIµÄÀý×Ó£¬ ¿ÉÒÔ¿´¿´¿Í»§¶ËµÄд·¨¡£Äã¿ÉÒÔÔÚMySQLÔ´Âë°üµÄclientsĿ¼ÕÒµ½ÕâЩÀý×Ó¡£
& ......

ÊÖ¶¯ÅäÖÃUbuntu LinuxÖ¸¶¨DNS·þÎñÆ÷µØÖ·

       ½éÉÜһϠUbuntu LinuxÖÐÈçºÎÖ¸¶¨DNS·þÎñÆ÷
µÄµØÖ·¡£
¡¡¡¡Ubuntu LinuxʹÓÃÎļþ"/etc/resolv.conf" ÎļþÅäÖÃDNS·þÎñÆ÷µÄµØÖ·£¬¿Éͨ¹ýnameserver ÅäÖÃÏîÉèÖÃDNS·þÎñÆ÷µÄIPµØÖ·£¬×î¶à¿ÉÒÔʹÓÃ3¸öDNS·þÎñÆ÷¡£
¡¡¡¡$ sudo vi /etc/resolv.conf
¡¡¡¡search localdomain
¡¡¡ ......

LinuxÖÐtty¡¢pty¡¢ptsµÄ¸ÅÄîÇø±ð

 LinuxÖÐtty¡¢pty¡¢ptsµÄ¸ÅÄîÇø±ð
»ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òÕßteletypewriters£¬Ô­À´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅÌÓëÏÔʾÆ÷È¡´ú£¬ËùÒÔÏÖÔÚ½ÐÖն˱ȽϺÏÊÊ¡£
ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËüÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ