¡¶Linux diffÓëpatchµÄÉîÈë·ÖÎö¡·
diffµÄÊä³ö¸ñʽ·ÖΪ´«Í³¸ñʽºÍͳһ¸ñʽ
1)diffµÄ´«Í³¸ñʽÊä³ö.
############################################
cat before.txt
Êä³ö:
This is a line to be deleted
This is a line that will be changed
This is a line that will be unchanged
cat after.txt
Êä³ö:
This is a line that has been changed
This is a line that will be unchanged
This is a line that has been added
############################################
diff before.txt after.txt
Êä ³ö:
1,2c1
< This is a line to be deleted
< This is a line that will be changed
---
> This is a line that has been changed
3a3
> This is a line that has been added
############################################
×¢ÊÍ:
´«Í³¸ñʽµÄÊä³ö
1,2c1ÊÇÖ¸Ìæ»»µÚ1¸öÎļþµÄµÚ1,2Ðе½µÚ2¸öÎļþµÄµÚ2ÐÐ,ÕâÀïµÄ1,2ÊÇÖ¸µÚ1¸öÎļþµÄµÚ1,2ÐÐ,cÊÇÌæ»»µÄÒâ˼,×îºóµÄ1ÊǵÚ2¸öÎļþµÄµÚ1ÐÐ
<ºÅÊÇÖ¸µÚ1¸öÎļþ¸ü¸Ä»òɾ³ýµÄÐÐ
---ºÅÊÇ·Ö¸îÁ½¸öÎļþ
>ºÅÊǵÚ2¸öÎļþÖÐÔö¼Ó»òɾ³ýµÄÐÐ
3a3ÊÇÖ¸½«µÚ2¸öÎļþµÄµÚ3ÐвåÈëµ½µÚÒ»¸öÎļþµÄµÚ3ÐÐ
Ò²¾ÍÊÇ˵µÚ1¸öÎļþµÄ:
< This is a line to be deleted
< This is a line that will be changed
±»Ìæ»»³ÉµÚ2¸öÎļþµÄ:
> This is a line that has been changed
ÓÉÓÚµÚ1¸öÎļþµÄµÚ3Ðк͵Ú2¸öÎļþµÄµÚ2ÐÐÒ»ÖÂ,ËùÒÔ²»×öÐÞ¸Ä.
ÓÉÓÚµÚ2¸öÎļþµÄµÚ3ÐÐÊǵÚ1¸öÎļþËù²»¾ßÓеÄ,ËùÒÔÔÚµÚ1¸öÎļþµÄ×îºóÒ»ÐÐÔö¼Ó:
> This is a line that has been added
2)patchÃüÁîµÄÓ¦ÓÃ
ÓÃdiffµÄ´«Í³¸ñʽÊä³ö:
#################################
diff before.txt after.txt >mypatch.txt
#################################
ÓÃpatchÐÞ²¹before.txtÎļþ,ʹbefore.txtºÍafter.txtÒ»ÖÂ.
#################################
cat mypatch.txt |patch before.txt
Êä³ö:
patching file before.txt
#################################
±È½ÏÁ½¸öÎļþ£¬ÏÖÔÚÊÇÒ»ÖµÄÁË.
#################################
cmp before.txt after.txt
#################################
ÓÃpatchÃüÁî»Ö¸´before.txt.
#################################
patch -R before.txt <mypatch.txt
Êä³ö:
patching file before.txt
#################################
×¢:-R±ê¼Ç¸æËßpatchÔÚ·´ÏòÉÏÓ¦ÓÃÇø±ð»òÕß³·Ïúpatch.
ÔÙ
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Linux »·¾³½ø³Ì¼äͨÐÅ£¨Áù£©
Ì×½Ó¿Ú
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width=" ......
Linux»·¾³ÏÂÅжϷþÎñÆ÷ÊÇ·ñÕý³£¹Ø»ú
2009-05-17 À´×Ô£ºZDNet ÊÕ²Ø
ϵͳÆô¶¯µÄʱºòÉú³ÉÒ»¸öÎļþ£¬Õý³£¹Ø»úµÄʱºòÔòɾ³ýÕâ¸öÎļþ£¬Ôò¿ÉÒÔ¸ù¾Ýϵͳ¿ª»úʱÓÐûÓÐÄǸöÎļþÀ´ÅжÏÊDz»ÊÇ·ÇÕý³£¹Ø»ú¡£
ϵͳÆô¶¯µÄʱºòÉú³ÉÒ»¸öÎļþ£¬Õý³£¹Ø»úµÄʱºòÔòɾ³ýÕâ¸öÎļþ£¬Ôò¿ÉÒÔ¸ù¾Ýϵͳ¿ª»úʱÓÐûÓÐÄǸöÎļþÀ´ÅÐ ......
Linux ±àÒë°²×° MYSQL 5.1 Óë Innodb
±àÒëmysql5
´úÂë:
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \
--with-extra-charsets=all \
--with-charset=utf8 \
- ......
Linux LVM µÄʹÓÃÏê½â
http://blog.csdn.net/icejadelove/archive/2009/10/30/4747657.aspx
ÕªÒª£ºLinuxÓû§°²×°Linux²Ù×÷ϵͳʱÓöµ½µÄÒ»¸ö×î³£¼ûµÄÄÑÒÔ¾ö¶¨µÄÎÊÌâ¾ÍÊÇÈçºÎÕýÈ·µØ¸øÆÀ¹À¸÷·ÖÇø´óС£¬ÒÔ·ÖÅäºÏÊʵÄÓ²Å̿ռ䡣¶øÓöµ½³öÏÖij¸ö·ÖÇø¿Õ¼äºÄ¾¡Ê±£¬½â¾öµÄ·½·¨Í¨³£ÊÇʹÓ÷ûºÅÁ´½Ó£¬»òÕßʹÓõ÷Õû·ÖÇø´óСµÄ¹¤¾ß(±ÈÈçP ......