Linux Shell±Ê¼Ç £¨Ò»£©
1¡¢±äÁ¿ºÍÔËËã (×¢£º´ÓÉÏÍùÏÂÒ»²½Ò»²½Ö´ÐÐ)
1.±¾µØ±äÁ¿ÔÚÓû§ÏÖÔÚµÄshellÉúÃüÆڵĽű¾ÖÐʹÓÃ
variable-name=value ÀýÈ磺test="test"
2.setÏÔʾ±¾µØËùÓеıäÁ¿
3.Éè³ÉÖ»¶Á±äÁ¿£ºreadonly variable-name ÀýÈ磺test="cynric" »á³ö´í
readonlyÃüÁî¿ÉÒԲ鿴ËùÓеÄÖ»¶Á±äÁ¿
4.±äÁ¿Ìæ»»
${Variable name} ÏÔʾʵ¼ÊÖµµ½variable name
${Variable name:+value} Èç¹ûÉèÖÃÁËvariable name,ÔòÏÔʾvalue£¬·ñÔòΪ¿Õ
ÀýÈ磺echo ${test:+"abcd"} ÏÔʾabcd
echo ${cywosp:+"abcd"} ÏÔʾΪ¿Õ
${Variable name:?value} Èç¹ûδÉèÖÃvariable name,ÏÔʾÓû§¶¨ÒåµÄ´íÎóÐÅÏ¢value
ÀýÈ磺echo ${cywosp:?"no defined"} ÏÔʾno defined
echo ${test:?"no defined"} ÏÔʾtest
${Variable name:-value} Èç¹ûδÉèÖÃvariable name,ÔòÏÔʾÆäÖµvalue
ÀýÈ磺echo ${cywosp:-"no defined"} ÏÔʾno defined
echo ${test:-"no defined"} ÏÔʾtest
${Variable name:=value} Èç¹ûδÉèÖÃVarible name,Ôò½«ÆäÖµ¸³Îªvalue²¢ÏÔʾ
ÀýÈ磺echo ${cywosp:="cywosp"} ÏÔʾcywosp
echo ${test:="test"} ÏÔʾtest
5¡¢±äÁ¿µÄÇå³ý
unset variable-name ÀýÈ磺unset cywosp
×¢£ºreadonlyµÄ±äÁ¿²»ÄÜunset£¬ËùÒÔreadonlyÒª½÷É
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
source file :
http://hi.baidu.com/neugraduzyq/blog/item/5602432f6a1a755a4ec22666.html
ÎÒÏëÔÚPATHϼÓÒ»¸ö/tools/binµÄ·¾¶ÓÃexport PATH=$PATH:/tools/binºóÓ¦¸ÃÊǼÓÉÏÈ¥ÁË£¬µ«ÊÇÓà echo $PATH »¹ÊÇÏÔʾµÄÔÀ´µÄ$PATH±äÁ¿µÄÖµ£¬¸Ð¾õÓÃexport PATH=$PATH:/tools/binÖ»ÊÇÔÚÔÀ´µÄ$PATH±äÁ¿ºó¼ÓÁËÒ»¸ö·¾¶µ½µ±Ç°µ ......
ǰһƪ²©¿Í»¹Ð´ÁË×Ô¼ºÐ´µÄ¶Ë¿Úת·¢¹¤¾ß£¬½ñÌìżȻÔÚÍøÉÏ¿´µ½½²ÃüÃû¹ÜµÀºÍnetcatÅäºÏµÄÓ÷¨£¬±»³¹µ×À×µ¹ÁË¡£
ÔÀ´ÒÔΪnetcat×ö²»µ½£¬ÔÀ´ÊÇ×Ô¼ºÏë²»µ½£¬¶ø²»ÊÇnetcat×ö²»µ½……
·½·¨ÈçÏ£º
$ mknod backpipe p
&n ......
дµÃÂùºÃµÄlinuxѧϰ±Ê¼Ç
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/grub/menu.lst GRUBÉèÖÃ
/boot/vmlinuz& ......