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

Linux Shell ϵÄÊä³öÖض¨Ïò


Linux Shell »·¾³ÖÐÖ§³ÖÊäÈëÊä³öÖض¨Ïò£¬Ó÷ûºÅ<ºÍ>À´±íʾ¡£0¡¢1ºÍ2·Ö±ð±íʾ±ê×¼ÊäÈë¡¢±ê×¼Êä³öºÍ±ê×¼´íÎóÐÅÏ¢Êä³ö£¬¿ÉÒÔÓÃÀ´Ö¸¶¨ÐèÒªÖض¨ÏòµÄ±ê×¼ÊäÈë»òÊä³ö£¬±ÈÈç 2>a.txt ±íʾ½«´íÎóÐÅÏ¢Êä³öµ½Îļþa.txtÖС£
ͬʱ£¬»¹¿ÉÒÔÔÚÕâÈý¸ö±ê×¼ÊäÈëÊä³öÖ®¼äʵÏÖÖض¨Ïò£¬±ÈÈ罫´íÎóÐÅÏ¢Öض¨Ïòµ½±ê×¼Êä³ö£¬¿ÉÒÔÓà 2>&1À´ÊµÏÖ¡£
LinuxÏ»¹ÓÐÒ»¸öÌØÊâµÄÎļþ/dev/null£¬Ëü¾ÍÏñÒ»¸öÎ޵׶´£¬ËùÓÐÖض¨Ïòµ½ËüµÄÐÅÏ¢¶¼»áÏûʧµÃÎÞÓ°ÎÞ×Ù¡£ÕâÒ»µã·Ç³£ÓÐÓ㬵±ÎÒÃDz»ÐèÒª»ØÏÔ³ÌÐòµÄËùÓÐÐÅϢʱ£¬¾Í¿ÉÒÔ½«Êä³öÖض¨Ïòµ½/dev/null¡£
Èç¹ûÏëÒªÕý³£Êä³öºÍ´íÎóÐÅÏ¢¶¼²»ÏÔʾ£¬ÔòÒª°Ñ±ê×¼Êä³öºÍ±ê×¼´íÎó¶¼Öض¨Ïòµ½/dev/null£¬ ÀýÈ磺
# ls 1>/dev/null 2>/dev/null
»¹ÓÐÒ»ÖÖ×ö·¨Êǽ«´íÎóÖض¨Ïòµ½±ê×¼Êä³ö£¬È»ºóÔÙÖض¨Ïòµ½ /dev/null£¬ÀýÈ磺
# ls >/dev/null 2>&1
×¢Ò⣺´Ë´¦µÄ˳Ðò²»Äܸü¸Ä£¬·ñÔò´ï²»µ½ÏëÒªµÄЧ¹û£¬´ËʱÏȽ«±ê×¼Êä³öÖض¨Ïòµ½ /dev/null£¬È»ºó½«±ê×¼´íÎóÖض¨Ïòµ½±ê×¼Êä³ö£¬ÓÉÓÚ±ê×¼Êä³öÒѾ­Öض¨Ïòµ½ÁË/dev/null£¬Òò´Ë±ê×¼´íÎóÒ²»áÖض¨Ïòµ½/dev/null£¬ÓÚÊÇÒ»Çо²ÇÄÇÄ:-)


Ïà¹ØÎĵµ£º

linuxϵÄÔ¶³ÌͼÐÎ×ÀÃ棬VNCÅäÖÃ


ת×Ô£ºhttp://blog.itpub.net/post/33256/413374/
ÔõôÑùÔÚºìñÆóÒµLinux2.1ÉÏÅäÖÃVNC?
ÔõÑùÅäÖÃVNC·þÎñÆ÷ʹÆäÄÜÔÚºìñÆóÒµLinux3ϵͳÒýµ¼Ê±×Ô¶¯Æô¶¯?
Ôõ
ôÑùÔÚºìñÆóÒµLinux2.1ÉÏÅäÖÃVNC?
½â¾ö·½·¨:1. Ê×ÏÈ£¬ÎÒÃÇÐèÒª²é¿´ÊÇ·ñÒѾ­°²×°ÁËÐèÒªµÄVNC°ü¡£×÷Ϊ¸ùÓû§£¬ÔËÐÐÕâ¸öÃüÁ
rpm
-qa | grep vnc
Èç¹ûRPMÃ ......

ÔÚLinux»·¾³Ïµ÷ÊÔ¾²Ì¬¿â

      ÕâÁ½ÌìͬÊÂÔÚOcteon¿ª·¢°åÉϵ÷ÊÔLinux³ÌÐò£¬Óöµ½ÁËÒ»¸öÎÊÌ⣺ÎÞ·¨ÈÃgdbµ¥²½¸ú×Ù½øÈ뾲̬¿â£¨libcrypto.aºÍlibcvmx.a£©¶ÔÓ¦µÄÔ´Îļþ¡£
      ÎÒ×Ô¼ºÔÚPCÉÏдÁËÒ»¸öС³ÌÐò½øÐÐÑéÖ¤£¬·¢ÏÖ¹ûÈ»ÊÇÕâÑù¡£Èç¹û°ÑÈ«²¿.oÎļþ£¨ÓÃ-ggdb3Ñ¡Ïî±àÒ룬´øµ÷ÊÔÐÅÏ¢£©Ö±½Ó±àÒë³É¿É ......

linuxÄں˱àÒë¶þ

1.Äں˱àÒë±ØÐëÔÚroot»·¾³Ï£¬¶øUbuntu×°ºóûÓÐrootÓû§£¬ËùÒÔÉèÖÃrootÃÜÂë
 sudo passwd root
2.su»Ø³µ£¬ÊäÈëÃÜÂë¾ÍÊÇÒÔrootÉí·ÝÁË£¬
3.ÏÂÔØlinuxÄں˲¢½«ÆäתÒƵ½/usr/srcÎļþ¼Ð
cp Îļþ /usr/src
4.tar -jxvf linux-2.6.29.4.tar.bz2
  ......

LinuxÖкǫ́ÃüÁîµÄÖ´ÐÐ

LinuxÖжÔÓÚһЩ´óÈÎÎñÐèÒªÔÚºǫ́ÔËÐУ¬·ñÔò»áÒ»Ö±Õ¼ÓÃÆÁÄ»£¬·À°­Ê¹ÓÃÕßʹÓÃÖÕ¶ËÈ¥Íê³ÉÆäËüµÄÈÎÎñ¡£ÆäÖлáÌṩÈçϼ¸¸öÃüÁîÀ´½øÐкǫִ́ÐУº
1¡¢  ÉèÖÃcrontabÎļþ£¬²¢ÓÃËüÀ´Ìá½»×÷Òµ£»ÆäÖÐcron ϵͳµ÷¶È½ø³Ì£¬¿ÉÒÔʹÓÃËüÔÚÿÌìµÄ·Ç¸ß·å¸ººÉʱ¼ä¶ÎÔËÐÐ×÷Òµ£¬»òÔÚÒ»ÖÜ»òÒ»ÔÂÖеIJ»Í¬Ê±¶ÎÔËÐС£
2¡¢  ʹÓÃatÃüÁîÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ