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

LINUXÆÚÄ©¸´Ï° SHELL±à³Ì

Ò»¡¢SHELL¼ò½é ¢ÙʲôÊÇSHELL ´ð£ºÒ»¸ö×÷ΪÓû§ÓëLINUXϵͳ֮¼äµÄ²Ù×÷½Ó¿Ú³ÌÐò£¬ÔÊÐíÓû§Ïò²Ù×÷ϵͳÊäÈëÐèÒªÖ´ÐеÄÃüÁî¡£
      Ò»Öָ߼¶¡¢½âÊÍÐԵijÌÐòÓïÑÔ¡£     ¢ÚSHELLµÄÖÖÀà ¢ÛSHELLµÄÖ´ÐÐ
         .   *.sh ¢ÜÃüÁî±ðÃû¹¦ÄÜ
      ÉèÖñðÃû£ºalias
      È¡Ïû±ðÃû£ºunalias ¢Ý¹ÜµÀ
      1¡¢ ÀûÓùܵÀºÍwcÃüÁ¼ÆËãÎļþlistÖеÄÐÐÊý¡¢µ¥´ÊÊýºÍ×Ö·ûÊý:cat list | wc.
      2¡¢ÀûÓùܵÀºÍgrepÃüÁÔÚÉÏÃ潨Á¢µÄÎļþlistÖвéÕÒ×Ö·û´®list:cat list | grep list.
      3¡¢ÉèÖû·¾³±äÁ¿PATHµÄÖµ£¬°Ñµ±Ç°Ä¿Â¼¼ÓÈëµ½ÃüÁîËÑË÷·¾¶ÖÐÈ¥£ºPATH£½¡°$PATH:.¡± ¶þ¡¢SHELL³ÌÐòÉè¼ÆÓï·¨ £¨ËµÃ÷£º1¡¢Ê¹ÓÃÇ°²¿ÐèÒªÉùÃ÷¡£2¡¢Ä¬ÈÏÊÇ×Ö·û´®ÀàÐÍ¡£3¡¢Çø·Ö´óСд¡££© 1£©±äÁ¿ ¢Ù¸³ÖµµÄ·½·¨
·½·¨Ò»£ºa=9+1£¬a=guofeng,µÈºÅ×óÓÒʱ²»ÄÜÓпոñµÄ£¬ËûÃǶ¼ÊÇÒÔ×Ö·û´®µÄÐÎʽ¸³Öµ
·½·¨¶þ£ºread a £¬Í¨¹ý¼üÅ̵ÄÊäÈë ¢Ú±äÁ¿µÄÒýÓÃ
Ò»°ãÓá¯$¡¯,À´ÒýÓã¬ÈçÓÐÒ»¸ö guofeng ±äÁ¿£¬Êä³öËüΪ£¬echo $guofeng
¾ÙÀý£º
   1¡¢echo "Hello $LOGNAME, it's nice talking to you."     Êä³öÓû§Ãû
£¨ËµÃ÷£ºË«ÒýºÅÖÐµÄ ¡®$±äÁ¿¡¯ ÊǻᱻÌæ»»µÄ£¬ÏëÊä³ö¡®$±äÁ¿¡¯Ö»Òª¼ÓÒ»¸ö¡¯/¡¯×ªÒåһϡ£¡£¡£µ«Êǵ¥ÒýºÅÀïÃæµÄÄÚÈݶ¼Êǵ±×ö×Ö·û´®Êä³ö¡£¡£¡£¶øµ½ÒýºÅÔòÊÇ»ØÈ¥Ö´ÐÐÀïÃæµÄÃüÁî¡££©    2¡¢echo "Your present working directory is `pwd`."    Êä³öµ±Ç°µÄ¹¤×÷·¾¶(Óе½ÒýºÅ)    3¡¢echo "You are working on a machine called `uname -n`."     Êä³ö·þÎñÆ÷Ãû    4¡¢echo The name of this script is $0.    ÏÔʾÃüÁîÃû    5¡¢echo The arguments are $*.    ÏÔʾËùÓеIJÎÊýÐУ¬$? Ϊǰһ¸öÃüÁîµÄ·µ»Ø    6¡¢echo The first argument is $1.     ÏÔʾµÚÒ»¸ö²ÎÊý    7¡¢echo The number of arguments is $#.   ÏÔʾ²ÎÊýµÄ¸öÊý &


Ïà¹ØÎĵµ£º

ÅäÖñàÒëÄںˣ¨Linux kernel£©

       ËäÈ»ÒÔÇ°Ò²±àÒë¹ýÄںˣ¬µ«ÊǹØÓÚÄÚºËÅäÖÃÑ¡ÏîÌرðÊÇÓйر¾»úÇý¶¯Õâ¿é»¹ÊDz»ÊìϤ£¬ÒòΪûÓÐͨ¹ýÈ·¶¨ÓÐЧµÄ;¾¶ÖªµÀµ±Ç°¹¤×÷Õý³£µÄÄÚºËÖе½µ×ʹÓÃÁËʲôÇý¶¯Ä£¿éÀ´¿ØÖÆÓ²¼þ£¬×î½ü¿´µ½Ò»±¾Ê顶Linux kernel in a netshell¡·£¬¸Ð¾õ½²µÄ»¹²»´í£¬ËùÒÔ¼Çϱʼǡ£
1.±àÒëÄں˵Ť¾ß
 & ......

WindowsϵÄLinux¿ª·¢ Cygwin 1.7.1 ·¢²¼

CygwinÊÇÐí¶à×ÔÓÉÈí¼þµÄ¼¯ºÏ£¬×î³õÓÉCygnus Solutions¿ª·¢£¬ÓÃÓÚ¸÷ÖÖ°æ±¾µÄMicrosoft WindowsÉÏ£¬ÔËÐÐUNIXÀà
ϵͳ¡£CygwinµÄÖ÷ҪĿµÄÊÇͨ¹ýÖØбàÒ룬½«POSIXϵͳ£¨ÀýÈçLinux¡¢BSD£¬ÒÔ¼°ÆäËûUnix
ϵ
ͳ£©ÉϵÄÈí¼þÒÆÖ²µ½WindowsÉÏ¡£CygwinÒÆÖ²¹¤×÷ÔÚWindows NT¡¢Windows 2000¡¢Windows
XPÒÔ¼°Windows Server 2003ÉϱȽϺ ......

linux»·¾³±äÁ¿Ïà¹Ø


ÎÒÃÇÔÚLinuxÏ°²×°ÏµÍ³Èí¼þµÄʱºò,¾­³£Óöµ½Ò»Ð©ÏµÍ³»·¾³±äÁ¿ÅäÖõÄÎÊÌ⡣ʲôÊÇ»·¾³±äÁ¿£¿ÈçºÎ¶¨ÖÆ»·¾³±äÁ¿£¿ÎÒ½«ÔÚÏÂÃæ×öһЩ½éÉÜ¡£
Ò»¡¢Ê²Ã´ÊÇ»·¾³±äÁ¿£¿
LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ¡£¶àÓû§Òâζ×Åÿ¸öÓû§µÇ¼ϵͳºó£¬¶¼ÓÐ×Ô¼º×¨ÓõÄÔËÐл·¾³¡£¶øÕâ¸ö»·¾³ÊÇÓÉÒ»×é±äÁ¿Ëù¶¨Òå,Õâ×é±äÁ¿±»³ÆΪ»·¾³±äÁ¿¡£Óû§¿ÉÒÔ¶Ô×Ô ......

linux selectº¯ÊýÓ÷¨

ת×Ô£ºhttp://www.91linux.com/html/article/kernel/20090102/15232.html
      selectϵͳµ÷ÓÃÊÇÓÃÀ´ÈÃÎÒÃǵijÌÐò¼àÊÓ¶à¸öÎļþ¾ä±úµÄ״̬±ä»¯µÄ¡£³ÌÐò»áÍ£ÔÚselectÕâÀïµÈ´ý£¬Ö±µ½±»¼àÊÓµÄÎļþ¾ä±úÓÐÒ»¸ö»ò¶à¸ö·¢ÉúÁË״̬¸Ä±ä¡£¹ØÓÚÎļþ¾ä±ú£¬Æäʵ¾ÍÊÇÒ»¸öÕûÊý£¬ÎÒÃÇ×îÊìϤµÄ¾ä±úÊÇ0¡¢1¡¢2Èý¸ö£¬ ......

linuxϸ÷ÖÖ¸ñʽµÄѹËõ°üµÄѹËõ¡¢½âѹ·½·¨


.tar
½â°ü£ºtar xvf FileName.tar
´ò°ü£ºtar cvf FileName.tar DirName
£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
———————————————
.gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
.tar.gz º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ