Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

[תÌù]linuxÏÂcÓïÑÔǶÈë»ã±à

 ÍøÉÏ¿´µ½µÄÕâƪ¹ØÓÚLinuxÏÂCÓïÑÔǶÈë»ã±àµÄÎÄÕÂдµÄ·Ç³£È«£¬×ªÔعýÀ´¡£
Using Assembly Language in Linux.
IntelºÍAT&T»ã±àÓï·¨²îÒ죺
1¡£Ç°×º£º
Intel»ã±à¼Ä´æÆ÷ºÍÁ¢¼´ÊýÎÞÐèǰ׺¡£ºóÕ߼ĴæÆ÷ǰ׺Ϊ%£¬Á¢¼´Êýǰ׺Ϊ$¡£
eg£º
   Intex Syntax
   mov eax,1
   mov ebx,0f ......

½â¾öRed Hat Enterprise Linux AS 4 ÖÐÎÄÂÒÂëÎÊÌâ

 ½â¾öRed Hat Enterprise Linux AS 4 ÖÐÎÄÂÒÂëÎÊÌâ
ÎÒÓõÄϵͳÊÇRed Hat Enterprise Linux AS 4£¬ÔÚX-windows×ÀÃæ»·¾³ÏµēÖն˔´°¿Ú²Ù×÷ÊÇÄÜÕýÈ·ÏÔʾºº×Ö£¬µ«ÊÇÔÚÓÃSSHµÇ½Linux²Ù×÷ϵͳ£¬ÎÒÓõÄÊÇputtyÔ¶³Ì¹ÜÀíLinux£¬·¢ÏÖ·µ»ØÖÐÎÄÌáʾÐÅϢȫ¶¼ÊÇÂÒÂ룬¼òµ¥µÄ½â¾ö°ì·¨¾ÍÊÇÔÚSSH¶ËÖ´ÐУº
export LC_ALL ......

·¢ÏÖselect×öÑÓʱwindowsûЧ¹û£¬LinuxÕý³£

 ÔÚÍêÉÆÎҵĿçƽ̨µÄ·¢ÓʼþÀà¿âʱ£¬select×öÑÓʱwindowsûЧ¹û£¬LinuxÕý³££¬»¹ÒÔΪÎÒ´úÂëд´íÁËÄØ£»ÔÚÍøÉÏËÑËØÏÂҲû·¢ÏÖÀàËÆ˵·¨£¬ÓÚÊÇÎÒ¾ÍдÁ˶ÎС²âÁË£¬¹ûÈ»selectÑÓʱÔÚwindowsÉÏËõË®ÁË
#include <iostream>
#include <time.h>
#ifdef WIN32
#include <winsock2.h>
#pragma comment(lib,"w ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ