ҵͨ

Linuxѧϰ֮ѧϰshellű

Դ Linuxϵͳ ʱ 2012-04-13

һʱ,дͱȽϸȤ,Ȼ,дһIJͻһ,˱Ƚ,оĹҲͱȽ,ʱ,shellű,,˵,Ǹ,,۸ӵ,Ӧòǽűľ,ϣԼѧһЩԼҪյļ,һֱû̬ȥ,ʱRP,ͻȻ,˻Ͻʼȥ.

linux,űÿΪʡºܶ෽,Ȼ,Щ,Ҳǿ˵,ʵ,ѹҲô,иʦ,ʵĹȻ,ľ;,,Ǹ,Ҳλʦָ,ҲЩ,ѧϰű,ȻҪӵһűʼ,ű,ҶϤ,ɶ,,"hello world",û취,㷳,Ҳ,,û취,Ҷô,ο,һʼ,дЩܳܳĴ,Ц,,,ʵʵд,ȻԼһɽկ,û취,ɽկıȽ,Ҳӡ,,,ǵһlinuxµĽűд.

tmpĿ¼в,ȫ.,һ,Ŀ¼,Сɾ˹ؼļ鷳

1tmpдһĿ¼,ͬʱĿ¼--mkdir scripts;cd scripts

û,Ժôɵ,ȵڶcd ȥĿ¼,ֱ֮,ʹ;зָ

,ڿʼ,һűıд

һshűļvi sh01.sh

˱༭״̬,Ȼһa,༭ģʽ,ش,ͼ ӵе۹һУпܡӭphome.net

ʱ,㰴escƳ༭ģʽ,صһģʽʱ,룺wq,˳

Ȼ󰴻سͿ˳,, sh sh01.shͿԿ

OK,ʱ,ڶԴһ

ΪǵĴȽʶ,ҽvi sh01.sh֮,һģʽ,:set nu,в鿴

Խűи,ͷ

ӦעЩ,һ,ΪɶҪôд,õbash,ȻҪӦ,һDZ,õbash﷨.ע,ûһ,дij,п޷.

ڶ,д󲿷ǰ涼#,ע͵,㿴,Ҫ,Ȼ,鱾,ôһ˵,˵Ҫôһϰ

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ɷָһ,Ҫתر,뱣Ϣлл!

Copyright ©1999-2011 ڿƼ޹˾ ͨƼ޹˾ All rights reserved

ַ(ADD)԰·63701Eͨԣ ʱ(ZIP)361008

绰0592-5908028 棺0592-5908039 ѯ䣺web@lingzhong.cn ѯOICQ173723134

л񹲺͹ֵҵӪ֤B2-20100024  ICP:ICP05037997