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Òª½÷É
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
1. useradd Óû§Ãû
useraddÃüÁÔðÌí¼ÓÓû§µ½Linuxϵͳ£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
useradd tom
2.userdel Óû§Ãû
userdelÃüÁîɾ³ýÒ»¸öÓû§ÕË»§£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
userdel tom
3.passwd Óû§Ãû
µ±´´½¨Ò»¸öÓû§Ö®ºóÐèҪΪÓû§ÉèÖÃÃÜÂ룬passwd ¿ÉÒÔÍê³É´Ë¹¦ÄÜ¡£µ±passwdºóÃæÃ»ÓвΠ......
Linux±ØÑ§µÄ60¸öÃüÁî
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò ......