LinuxÏ°²×°telnet·þÎñ±Ê¼Ç£¨×ª£©
°²×°telnet-server…,±ØÐëÏÈ×°xinetd
°²×°telnet·þÎñ:rpm -ihv telnet-server…
Æô¶¯:service xinetd start
¿ª»úÆô¶¯:setup->system services-¹´ÉÏtelnet»òchkconfig telnet on
´íÎó Temporary failure in name resolution:Illegal seek
½â¾ö 1.ÉèÖÃÕýÈ·µÄDNS·þÎñÆ÷/etc/resolv.conf
"2¡¢É趨ָ¶¨µÄ¿Í»§Ö÷»úºÍIP
³öÏָôíÎ󣬿ÉÒÔ˵ҲÊÇÒ»ÖÖ°²È«ÏÞÖÆ°É¡£Ê¹ÓÃtelnet·ÃÎÊ·þÎñ¶ËµÄ¿Í»§¶ËÐèÒªÔÚ·þÎñÆ÷ÉÏÓÐÖ÷»úÃûºÍIP¶ÔÓ¦ÐÅÏ¢¡£¼ÈÈ»ÕâÑù£¬Èç¹ûÄãûÓÐÅäÖÃDNS·þÎñÆ÷£¬ÄÇÖ»Òª°ÑÒª·ÃÎÊtelnetµÄ¿Í»§¶ËµÄIPºÍÖ÷»úÃû¼Óµ½/etc/hostsÎļþÖУ¬ÀýÈ磺
# cat /etc/hosts
192.168.48.1 test
ÕâÑù£¬¸Ã¿Í»§¶ËIPΪ192.168.48.1µÄ»úÆ÷¾Í¿ÉÒÔͨ¹ýtelnet·ÃÎÊ·þÎñÆ÷ÁË¡£"
"3¡¢ÐÞ¸ÄNISÉ趨Îļþ
ÈôÓдóÁ¿µÄ¿Í»§¶ËÐèÒª·ÃÎÊ·þÎñÆ÷£¬µÚ¶þÖÖ·½·¨¾ÍºÜÂé·³ÁË¡£Õâʱ£¬Ö»ÒªÐÞ¸Ä/etc/nsswitch.confÎļþ£¬ÕÒ£º
ÒýÓÃ
#hosts: db files nisplus nis dns
hosts: files dns
ÐÞ¸ÄΪ£º
ÒýÓÃ
#hosts: db files nisplus nis dns
hosts: files
±£´æºó£¬¾ÍÔÙÒ²²»»á³öÏÖ¿ªÍ·µÄ´íÎóÁË¡£
¡ù ×¢Ò⣬¸ÃÐ޸ĻᵼÖÂÔÚ/etc/resolv.confÖÐÉèÖõÄDNSʧЧ¡£Çë¸ù¾Ýʵ¼ÊÇé¿öÑ¡ÔñÉÏÊöÆäÖÐÒ»¸ö·½·¨¡£ "
Ïà¹ØÎĵµ£º
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 Ê ......
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
Thi ......
Ò». ÎļþÒ»´Î¶ÁÈëËÙ¶È
linux϶ÁÎļþÕⶫÎ÷×îºó¶¼ÊÇҪͨ¹ýϵͳµ÷ÓÃsys_read(fd,buf,count)À´ÊµÏֵģ¬ËùÒÔÈç¹ûÒªÌá¸ßËٶȣ¬¾ÍÊÇ×î¼òµ¥µØµ÷ÓÃsys_readµÄ·â×°£¬±ÈÈçÖ±½ÓÓÃread()»òfread()¡£ÏÂÃæÊÇÎÒÔÚlinuxϵļ¸¸ö²âÊÔ¡£
Ê×ÏÈ´´½¨Ò»¸ö130MÊý¾ÝÎļþ dd if=/dev/zero of=data bs=1024k count=130
[dd if=/dev/zero of=data b ......
ÉîÈëÀí½âlinuxϵͳµ÷ÓÃÓëʹÓÃÖ®ÕûÀíƪ
Ò»¡¢ ʲôÊÇϵͳµ÷ÓÃ
ÔÚLinuxµÄÊÀ½çÀÎÒÃǾ³£»áÓöµ½ÏµÍ³µ÷ÓÃÕâÒ»ÊõÓËùνϵͳµ÷Ó㬾ÍÊÇÄÚºËÌṩµÄ¡¢¹¦ÄÜÊ®·ÖÇ¿´óµÄһϵÁеĺ¯Êý¡£ÕâЩϵͳµ÷ÓÃÊÇÔÚÄÚºËÖÐʵÏֵģ¬ÔÙͨ¹ýÒ»¶¨µÄ·½Ê½°Ñϵͳµ÷ÓøøÓû§£¬Ò»°ã¶¼Í¨¹ýÃÅ(gate)ÏÝÈë(trap)ʵÏÖ¡£ÏµÍ³µ ......