linuxµÄ¼òµ¥sh³ÌÐòÉè¼Æ
¸ÉÂïѧϰ Scripts
Õâ¸öÎÊÌâ¿ÉÓÐȤµÄºÜÁË£¬ÎÒΪʲôҪѧϰ scripts ÄØ£¿²»ÒªÑ§¿É²»¿ÉÒÔѽ£¡£¿ºÇºÇ£¡Èç¹ûÄúÖ»ÏëÒª¡º»áÓá» Linux ¾ÍºÃµÄ»°£¬ÄÇôÕâÒ»¸ö²¿·Öȷʵ¿ÉÒÔÏÈÌø¹ýÈ¥²»¿´Ò²Ã»¹Øϵ£¬²»¹ý£¬Èç¹ûÄúÏëÒª¸ü¼ÓµÄÁ˽âÓë¿ØÖÆ Linux £¬Ê¹ Linux ÔË×÷¸ü˳³©Ö®Í⣬»¹¿ÉÒÔ¸ßÕíÎÞÓǵÄÈÃÄãµÄ Linux Server ÔÚ Internet ÉÏÃæÌṩÏà¹Ø·þÎñµÄ»°£¬ÄÇô scripts »¹ÊǶàÉÙѧһѧ°É£¡ÎªÊ²Ã´ÄØ£¿ÒòΪ scripts ¿ÉÒÔÉè¼Æµ½¡ººÜ´ÏÃ÷µÄÖªµÀʲôÌõ¼þÖ®ÏÂÐèÒª½øÐÐʲô¶¯×÷£¡¡»²»ÒªÐ¡¿´Õâ¸ö¹¦ÄÜßÏ£¡µ±Äú²»ÔÚ¼ÆËã»úÇ°ÃæµÄʱºò£¬Í»È»Ö®¼ä£¬Ö÷»ú±»Ò»Ð©²»Ã÷·â°üÊÔͼÈëÇÖÁË£¬Õâ¸öʱºòÈç¹ûÄãµÄ Linux Ö÷»ú¿ÉÒÔ͸¹ý¡ºµ±¸Ã·â°ü³¢ÊÔ¼¸´Î»¹ÊÇÁª»úʧ°ÜÖ®ºó£¬¾ÍÓèÒÔµÖµ²×¡¸Ã IP ¡»£¬Èç¹û¿ÉÒÔÉè¼Æµ½Èç´Ë¹¦ÄܵĻ°£¬ºÇºÇ£¡ÄÇô¿É¾Í²»µÃÁËÁË£¡ÄúµÄ Linux Ö÷»ú¾Í¿ÉÒÔ˵ÊÇ¡ººÃ´ÏÃ÷ѽ£¡ smart!¡»
³ýÁËÕë¶ÔÖ÷»úÖ®Í⣬Æäʵ scripts »¹ÓÐÏ൱¶àµÄÔËÓù¦ÄÜßÏ£¡ÀýÈçÄúÏëÒªÔÚ Linux ÉÏÃæ×÷ÄãµÄ×÷Òµ£¬¶øÕâ¸ö×÷ÒµÊÇһЩÊýÖµ·½ÃæµÄ¼ÆË㣬Õâ¸öʱºò Scripts Ò²¿ÉÒÔ°ïÄú¼ÆËãßÏ£¡»¹²»ÐèÒªÓõ½ fortran, c ÕâÀà¸ß½×µÄ³ÌÐòÓïÑÔÄØ£¡ scripts ±¾Éí¾ÍÊÇÒ»¸ö¿ÉÒÔÓÃµÄ program 啰£¡Ï൱µÄ°ô°É£¡Æäʵ£¬ scripts ×ʼ±»ÐÂÊÖʹÓõŦÄܾÍÊÇ¡º»ãÕûһЩÔÚ command line Ï´ïµÄÁ¬ÐøÖ¸Á½«ËûдÈë scripts µ±ÖУ¬¶øÓÉÖ±½ÓÖ´ÐÐ scripts À´Æô¶¯Ò»Á¬´®µÄ command line Ö¸ÁîÊä³öÈ룡¡»ÀýÈ磺 ·À»ðǽÁ¬Ðø¹æÔò ( iptables )£¬¿ª»ú¼ÓÔسÌÐòµÄÏîÄ¿ ( ¾ÍÊÇÔÚ /etc/rc.d/rc.local ÀïÍ·µÄ×ÊÁÏ ) £¬µÈµÈ¶¼ÊÇÏàËƵŦÄÜÀ²£¡ Æäʵ£¬Ëµ´©ÁË£¬Èç¹û²»¿¼ÂÇ program µÄ²¿·Ö£¬ÄÇô scripts Ò²¿ÉÒÔÏë³É£¬½öÊÇ°ïÎÒÃÇ°ÑÒ»´ó´®µÄÖ¸Áî»ãÕûÔÚÒ»¸öµµ°¸ÀïÃ棬¶øÖ±½ÓÖ´Ðиõµ°¸¾Í¿ÉÒÔÖ´ÐÐÄÇÒ»´®ÓÖ³ôÓÖ³¤µÄÖ¸Áî¶Î£¡¾ÍÊÇÕâô¼òµ¥À²£¡
ÁíÍâµÄÁíÍ⣬ÔÚ±àд scripts ʱ£¬ÔÚ Linux µ±ÖУ¬×ʹÓõľÍÊÇ vi ÕâÒ»Ì×ÎÄÊé±à¼Æ÷ÁË£¬ËùÒÔ啰£¬ÎªÁ˸ü¼òÒ׵ĿعÜÎÒÃÇµÄ Linux £¬àÅ£¡»¹ÊÇѧϰһϺÃÁËÀ²£¡ºÃ²»ºÃѽ£¡ ^_^
scripts µÄÖ´ÐÐÓëµÚÒ»Ö§ scripts
scripts µÄÖ´ÐУº
àÅ£¡ÔÚÉÏÒ»Õ bash shell µ±ÖÐ˵ÁËÒ»¶Ñ±äÊýÀ²£¡¹ÜÏßÖ¸ÁîÀ²£¡µÈµÈµÄ£¬¶¼ÊÇΪÁ˽Ó×ŶøÀ´µÄ scripts µÄßËßËÀ²£¡Ê²Ã´ÊÇ script °¡£¿ÓÉ×ÖÃæÉϵÄÒâ˼À´Ëµ£¬ script ¾ÍÊÇ¡º½Å±¾¡¢¾ç±¾¡»µÄÒâ˼£¬Äǹ»Çå³þÁË°É£¡¾ÍÊǽ«ÎÒÃÇÒªÖ´ÐеÄÄÚÈÝд³ÉÒ»¸ö¡º½Å±¾¡»£¬ÈÃϵͳÒÀ¾ÝÕâ¸ö¡º½Å±¾¡»À´Ö´ÐÐÎÒÃÇÏëÒªµÄ¶«Î÷£¡ºÃÁË£¡ÏÖÔÚÎÒÃÇÀ´ÌÖÂÛÒ»ÏÂÔõôд scripts ºÃÁË£¡»ù±¾ÉÏ£¬Ò»¸ö script ±»Ö´ÐеÄʱºò
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
ת×Ôhttp://blog.chinaunix.net/u3/105004/showart_2088056.html
Êý¾Ý½ÓÊÕ
Íø¿¨Çý¶¯µÄÊý¾Ý½ÓÊÕ£¬Êµ¼ÊÉÏÊÇÒ»¸öÉú²úÕß/Ïû·ÑÕßÄ£ÐÍ¡£ºËÐÄÊÇÊäÈë¶ÓÁУ¨È«¾ÖµÄ£¬»òÕßÍø¿¨Ë½Óеģ©¡£Íø¿¨ÊÕµ½Êý¾Ýʱ£¬´¥·¢Öжϡ£ÔÚÖжÏÖ´ÐÐÀý³ÌÖУ¬°Ñskb¹ÒÈëÊäÈë¶ÓÁУ¬²¢³ö·¢ÈíÖжϡ£ÉÔºóµÄij¸öʱ¿Ì£¬µ±ÈíÖжÏÖ´ÐÐʱ£¬ÔٴӸöÓÁÐÖаÑskbÈ¡ÏÂÀ´£¬Í ......
1¡¢Æô¶¯emulator(Ä£ÄâÆ÷)
ÔÚDosÖÐÊäÈëemulatorºó»Ø³µ¼´¿ÉÆô¶¯emulator£¬Ç°ÌáÊÇÄã°Ñandroid sdk µÄtoolsĿ¼Ìí¼Óµ½ÁË»·¾³±äÁ¿ÀïÃ棻·ñÔòµÄ»°£¬Äã±ØÐëÏȽøÈëandroid sdkµÄtoolsĿ¼Ï£¬ÔÙÊäÈëemulatorÃüÁî¡£
2¡¢²é¿´androidÖ§³ÖµÄlinux ÃüÁî
´ýÄ£ÄâÆ÷Æô¶¯ºÃÖ®ºó£¬ÔÚDosÖÐÊä ......
$ kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE
9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD
18) SIGCONT 19) SIGSTOP 20) ......
Spool³£ÓõÄÉèÖÃ
set colsep' ';¡¡¡¡¡¡ //ÓòÊä³ö·Ö¸ô·û
set echo off;¡¡¡¡¡¡¡¡//ÏÔʾstartÆô¶¯µÄ½Å±¾ÖеÄÿ¸ösqlÃüÁȱʡΪon
set feedback off;¡¡¡¡//»ØÏÔ±¾´ÎsqlÃüÁî´¦ÀíµÄ¼Ç¼ÌõÊý£¬È±Ê¡Îªon
set heading off;¡¡¡¡ //Êä³öÓò±êÌ⣬ȱʡΪon
set pagesize 0;¡¡¡¡¡¡//Êä³öÿҳÐÐÊý£¬È±Ê¡Îª24,ΪÁ˱ÜÃâ·ÖÒ³£¬ ......