Linuxѧϰ֮ѧϰshell½Å±¾
×î½üÒ»¶Îʱ¼ä,¶Ôд²©¿Í±È½Ï¸ÐÐËȤ,µ±È»,ÊÇдÕâÒ»ÀàµÄ²©¿Í»á¶àÒ»µã, ÔÚlinuxÖÐ,½Å±¾µÄÔËÓÿÉÒÔΪÄãʡϺܶ෽±ã,µ±È»,ÕâЩ¶«Î÷,ÎÒÒ²ÊÇ¿´Êé˵µÄ,¾ßÌåµÄʵ¼ÊÀûÓÃ,ÎÒѹ¸ùÒ²²»ÔõôÀí½â,Óиöʦ¸¸¸æËßÎÒ,ÄãÔÚʵ¼ùµÄ¹ý³ÌÖÐ×ÔÈ»»áÀí½âÃ÷°×,Õâ¸öµÄ¾ßÌåÓÃ;,ÐÅÈÎËû, ÎÒÃÇÔÚtmpĿ¼ÄÚÀ´½øÐвÙ×÷,°²È«. 1¡¢ÔÚtmpÖд´½¨Ò»¸öĿ¼,ͬʱ½øÈë¸ÃĿ¼--¡·mkdir scripts;cd scripts
¼ûµ½Ã»,ÒÔºó±ðÄÇôɵ,µÈµ½µÚ¶þÐÐÔÚÊäÈëcd ½øÈ¥Ïà¹ØĿ¼À²,Ö±½ÓÃüÁîÐÐÖ®¼ä,ʹÓÃ;À´½øÐÐ·Ö¸î ºÃ,ÏÖÔÚ¿ªÊ¼,µÚÒ»¸ö½Å±¾µÄ±àд£º ´´½¨Ò»¸ösh½Å±¾Îļþ£ºvi sh01.sh ½øÈëÁ˱à¼×´Ì¬,È»ºó°´Ò»ÏÂa,½øÈë±à¼Ä£Ê½,ÊäÈëÏà¹Ø´úÂë,Èçͼ ÓµÓе۹úÒ»ÇУ¬½ÔÓпÉÄÜ¡£»¶Ó·ÃÎÊphome.net
Õâ¸öʱºò,Äã°´escÍƳö±à¼Ä£Ê½,»Øµ½Ò»°ãģʽµÄʱºò,ÊäÈ룺wq,±£´æÍ˳ö
È»ºó°´»Ø³µ¾Í¿ÉÒÔÍ˳ö,½Ó×Å,ÄãÔÚÃüÁîÐÐÊäÈë sh sh01.sh¾Í¿ÉÒÔ¿´µ½½á¹û
OK,±àÒëʱÍê³ÉÁË,ÎÒÃÇÏÖÔÚ¶Ô´úÂë·ÖÎöһϠΪÁËÈÃÎÒÃǵĴúÂë±È½ÏÈÝÒ×ʶ±ð,ÎÒ½øÈëvi sh01.shÖ®ºó,ÔÚÒ»°ãģʽÏÂ,ÎÒÊäÈë:set nu,À´½øÐв鿴
ÕâÑù¶Ô½Å±¾Óиö±àºÅ,¾Í·½±ãµãÀ² Ó¦¸Ã×¢ÒâµÄÊÇÄÄЩÄØ,µÚÒ»¾ä,ΪɶҪÕâôд, µÚ¶þµã,Óд󲿷ÖÄÚÈÝÇ°Ã涼¼ÓÁË#ºÅ,Õâ¸öÊÇÓÃÀ´×¢Ê͵Ä,ÓÃÀ´¸øÄã¿´Çå³þ,Õâ¸ö³ÌÐòÖ÷ÒªÊÇÓÃÀ´¸ÉÂïµÄ,µ±È»,ÔÚÄñ¸çµÄÊé±¾Àï,ÓÐÕâôһ¸ö˵·¨,˵ÐèÒªÑø³ÉÕâôһ¸öÏ°¹ß 1¡¢ÄÚÈÝÓ빦ÄÜ 2¡¢°æ±¾ÐÅÏ¢ 3¡¢×÷ÕßÓëÁªÏµ·½Ê½ 4¡¢ÎļþµÄ´´½¨ÈÕÆÚ 5¡¢ÀúÊ·¼Ç¼ µÚÈýµã£ºÓ¦¸Ã¾ÍÊÇÕâ¸ö×µÄPATH·¾¶ÁË,¿´ÆðÀ´ËƺõºÜ¸´ÔÓ,Æäʵ,²¢²»ÊÇ,Õâ¸öÊÇÒýÓÃbashµÄ·¾¶,ÊÇ /bin:/sbin: / usr/bin: /usr/sbin: /usr/local/bin: /usr/local/sbin: ~/bin ¼ûµ½Ã»£¿·Ö¿ª¼ÇÒä,ÕâÑùµÄ»°,¾ÍÈÝÒ×ÁË,µ±È»,ÄãÒªÃ÷°×,²»ÒªÓпոñ,ÕâÀï,ÒÔÃâÔì³ÉÂé·³,ÎÒÕâÀïÕâÑù,ÊÇÏëÈôó¼Ò¿´Çå³þ,Ôõôȥ¼ÇÒäËü. ÓµÓе۹úÒ»ÇУ¬½ÔÓпÉÄÜ¡£»¶Ó·ÃÎÊphome.net Õâ¸ö¾ÍÊǵÚÒ»¸ö½Å±¾µÄ±àд,½ÓÏÂÀ´,ÎÒÃǽøÈëµÚ¶þ¸ö½Å±¾µÄѧϰ,Õâ¸öºÜʹÓÃŶ,ÎÒÃÇÔÚXP°²×°Èí¼þµÄʱºò,×ÜÊÇÎÊÎÒÃÇ,Äã°²×°µÄ·¾¶ÊÇÔÚÄÄÀÕâ¸öʱºòÄã¾Í»áÑ¡ÔñÒ»¸ö×Ô¶¨Òå»òÕßĬÈϵÄ,µ±ÄãÈ·¶¨Íê±ÏÖ®ºó,Èí¼þ»á¸æËßÄã,ÄãÑ¡ÔñµÄ·¾¶ÊÇÄÄÀï,ÄÇô,ÎÒÃǽñÌì¾ÍÀ´Ñ§Ï°Ò»ÏÂ,Õâ¸öËõ¼õ°æµÄÌáʾ,ÊÇÔõôÌáʾµÄ Õâ¸ö½Å±¾ÊÇ vi sh02.sh
OK,±àÒëÒ»ÏÂ,¾Í¿ÉÒÔÁË
±¾Îijö×Ô ¡°ÀÁèºáÐС± ²©¿Í,ÇëÎñ±Ø±£Áô´Ë³ö´¦http://jackicy.blog.51cto.com/422269/429017 ÓµÓе۹úÒ»ÇУ¬½ÔÓпÉÄÜ¡£»¶Ó·ÃÎÊphome.net |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |
- LinuxÏ°²×°MplayerÖ»ÓÐÉùÒô¶øûÓÐͼÏñµÄ½â¾ö
- SWTºÍJFace£¬µÚ3²¿·Ö: ¼ò½é - ±à³ÌÈëÃÅÍø
- ·ÓÉÆ÷µÄ¹Ø¼ü¼¼Êõ
- °Ù¶ÈÇ°¶Ë±ÊÊÔÃæÊÔ7¸öÊÔÌâ
- ÔËÓªÍøÕ¾¶Ô¿Í»§ÖÒ³Ï×î¹Ø¼ü£º¼ÍÄîËÀÈ¥µÄСº¢×ÓÍø
- ÀûÓÃThreadLocalģʽ¹ÜÀíSession - ±à³ÌÈëÃÅÍø
- µ±Unix±ÀÀ£Ö®ºó
- ÉñÆæµÄQQÁôÑÔ
- ѧϰcssÐèҪʲôÈí¼þ
- JavaÖеÄÎļþÓë´ÅÅ̲Ù×÷¼¼ÊõÏê½â - ±à³ÌÈëÃÅÍø