Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÇëÎÊ£¬ÔõôÔÚÂÛ̳ÇóÖú£¿linuxºÍcygwinµÄ

 ÓÐÁ½¶Î´úÂ룺
#!/bin/sh
if [ $#=0 ]
then
    echo "Name not provided"
else
    echo "You name is $1"
fi
#!/bin/sh
if [ $#=0 ]; then echo "Name not provided"
else  echo "You name is $1"
fi
Ãû×ÖΪmypgm1
µÚÒ»¶Î´úÂëÔÚcygwinϲ»ÄÜÕýÈ·ÔËÐÐ
±¨´í£º
mypgm1: line 2: [: missing `]'
mypgm1: line 5: $'\r': command not found
µÚ¶þ¶Î´úÂë¾Í¿ÉÒÔÔËÐÐÁË
µ«ÊÇÁ½¶Î´úÂëÔÚ´¿linuxµÄ»·¾³¶¼ÄÜÔËÐС£
ÇëÎÊÕâÊÇÓï·¨²»¼æÈݵÄÎÊÌâÂð£¿
cygwinµÄÓï·¨ÒªÇóÊÇ·ñ±Èlinux¸üÑϸñ£¿==ÔÚcgywinÏÂÄÜÔËÐеĴúÂëÔÚlinuxÀïÃæÒ»¶¨ÄÜÔËÐУ¬·´Ö®²»È»


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

linuxÖÐselect()º¯Êý·ÖÎö

linuxÖÐselect()º¯Êý·ÖÎö
SelectÔÚSocket±à³ÌÖл¹ÊDZȽÏÖØÒªµÄ£¬¿ÉÊǶÔÓÚ³õѧSocketµÄÈËÀ´Ëµ¶¼²»Ì«°®ÓÃSelectд³ÌÐò£¬ËûÃÇÖ»ÊÇϰ¹ßдÖîÈçconnect¡¢accept¡¢recv»òrecvfromÕâÑùµÄ×èÈû³ÌÐò£¨Ëùν×èÈû·½Ê½block£¬¹ËÃû˼Ò壬¾ÍÊǽø³Ì»òÊÇÏß³ÌÖ´Ðе½ÕâЩº¯Êýʱ±ØÐëµÈ´ýij¸öʼþµÄ·¢Éú£¬Èç¹ûʼþûÓз¢Éú£¬½ø³Ì»òÏ߳̾ͱ»×èÈû£¬º ......

linux²éÕÒÎļþÃüÁîfind

  ÿһÖÖ²Ù×÷ϵͳ¶¼ÊÇÓɳÉǧÉÏÍò¸ö²»Í¬ÖÖÀàµÄÎļþËù×é³ÉµÄ¡£ÆäÖÐÓÐϵͳ±¾Éí×Ô´øµÄÎļþ£¬Óû§×Ô¼ºµÄÎļþ£¬»¹Óй²ÏíÎļþµÈµÈ¡£ÎÒÃÇÓÐʱºò¾­³£Íü¼Çij·ÝÎļþ·ÅÔÚÓ²ÅÌÖеÄÄĸöµØ·½¡£ÔÚ΢ÈíµÄWINDOWS²Ù×÷ϵͳÖÐÒª²éÕÒÒ»·ÝÎļþÊÇÏ൱¼òµ¥µÄÊÂÇ飬ֻҪÔÚ×ÀÃæÉϵã»÷“¿ªÊ¼”£­“ËÑË÷”ÖоÍÄܰ´ÕÕ¸÷ÖÖ·½Ê½ÔÚ ......

LinuxÖÐfind³£¼ûÓ÷¨Ê¾Àý

 ·find   path   -option   [   -print ]   [ -exec   -ok   command ]   {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec   command   {} \;      -----½«²éµ½µÄÎļþÖ´ ......

LinuxϵͳÃüÁîTop/freeµÄʹÓü°²ÎÊýÏê½â

 ¡¡¡¡1.×÷ÓÃ
¡¡¡¡topÃüÁîÓÃÀ´ÏÔʾִÐÐÖеijÌÐò½ø³Ì£¬Ê¹ÓÃȨÏÞÊÇËùÓÐÓû§¡£
¡¡¡¡2.¸ñʽ
¡¡¡¡top [£­] [d delay] [q] [c] [S] [s] [i] [n]
¡¡¡¡3.Ö÷Òª²ÎÊý
¡¡¡¡d£ºÖ¸¶¨¸üеļä¸ô£¬ÒÔÃë¼ÆËã¡£
¡¡¡¡q£ºÃ»ÓÐÈκÎÑӳٵĸüС£Èç¹ûʹÓÃÕßÓг¬¼¶Óû§£¬ÔòtopÃüÁ»áÒÔ×î¸ßµÄÓÅÏÈÐòÖ´ÐС£
¡¡¡¡c£ºÏÔʾ½ø³ÌÍêÕûµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ