ºìÁªLinuxÃÅ»§
Linux°ïÖú

½â¾öLinux³£¼ûÂÒÂëÎÊÌâ

·¢²¼Ê±¼ä:2012-10-11 21:16:36À´Ô´:ºìÁª×÷Õß:horsetornado
[i=s] ±¾Ìû×îºóÓÉ horsetornado ÓÚ 2012-10-23 17:04 ±à¼­ [/i]

½â¾öLinux³£¼ûÂÒÂëÎÊÌâ
³õѧLinux£¬ËùÒÔ»¹ÊÇÔÚÓÃÖÐÎĽçÃ棬¾­³£Åö¼ûÖÐÎÄÂÒÂëµÄÇé¿ö¡£ÏÂÃæÊÇѧϰÖÐÅö¼ûµÄ³£¼û¼¸ÖÖÂÒÂëÇé¿ö£¬¾­¹ý¶ÈÄïµÄ°ï棬ͨ¹ýʵÑéÕûÀíµÃ³ö½â¾ö°ì·¨¡£

1¡¢ssh»òÕßtelnetÔ¶³ÌµÇ¼ʱ
²é¿´»·¾³±äÁ¿LANG£¬¸Ä³ÉÖÐÎıàÂëutf8,ÎÒÊÔÁËÒ»ÏÂen_US.utf8ºÍzh_CN.utf8¶¼¿ÉÒÔ£¬²»ÖªµÀÕâÁ½ÖÖ±àÂëÔÚÄÄÓÐÇø±ð£¬²¢ÇÒÉèÖÃSSH»òÕßTelnet¿Í»§¶Ë¹¤¾ß±àÂ룬Ҫ±£³ÖÒ»ÖÂ
Èç³£¼ûµÄ¹¤¾ßSecureCRTÖÐÉèÖ㺻ỰѡÏî--Íâ¹Û--×Ö·û±àÂë--utf8

2¡¢Í¼Ðλ¯´°¿ÚÖеÄÖÕ¶ËÂÒÂë
¾ÍÊÇÎÒÃÇÓÃͼÐλ¯½çÃæ½øÈëlinux£¬È»ºóµã»÷½øÈë¡°Öնˡ±
ÕâÖÖ×îºÃ½â¾ö£¬Ð޸Ļ·¾³±äÁ¿LANG¼´¿É£¬ÃüÁîLANG=zh_CN.utf8,en_US.utf8Ò²¿ÉÒÔ£¬Ö»²»¹ýÓÐЩ×ÖÏÔʾµÄЧ¹û²»Ì«Ò»Ñù£¬ÓеĴó£¬ÓеÄ×ÖÌå²»Ò»Ñù
ÁíÍâÖÕ¶ËÆäʵҲÊÇÒ»¸öÈí¼þ£¬ËüµÄ±àÂëÒ²ÒªºÍ»·¾³±äÁ¿LANGµÄ±àÂëÒªÒ»Ö¡£ÔÚ¡°Öնˡ±µÄ²Ëµ¥Ñ¡ÏîÖÐÓÐÒ»¸ö¡°Öնˡ±-¡°É趨×Ö·û±àÂ롱ÉèÖÃ

3¡¢VIMÏÂÂÒÂë
Õâ¸öÖ÷ÒªºÍÁ½¸öÒòËØÓйأº
Ò»¾ÍÊÇÎļþԭʼµÄ±àÂ룬ԭʼ±àÂëµÄÉèÖÃÊÇÔÚVIMµÄÅäÖÃÎļþÀïÉèÖõÄ
¶þÖÕ¶ËÓйأ¬±ÈÈçÎÒÃÇÔÚÖÕ¶ËÏÔʾһ¸öÎļþ£¬cat /tmp/helloworld.txt,ËùÒÔÖն˵ıàÂëÒªºÍÎı¾Ô­Ê¼±àÂëÒªÒ»Ö£¬ÉèÖÃͬ2

4¡¢ttyµÇ¼
Õâ¸öÔÚÍøÉÏ°Ù¶ÈÁËÏ£¬ÐèÒª°²×°ÖÐÎĽӿÚÈí¼þµÄÖ§³Ö£¬Èçzhcon£¬ËùÒÔÐèÒª°²×°ÏàÓ¦µÄÈí¼þ£¬Õâ¸öÎÒÔÝʱ»¹Ã»ÓÐʵÑé¹ý£¬ËùÒÔ¾ßÌåÅäÖõÈÎÒʵÑéºó¸ø³ö

5¡¢½«manµÄÄÚÈÝÖض¨Ïò
ÀûÓÃman£¬ÎÒÃÇÄܹ»²é¿´µ½ºÃ¶àÓÐÓõÄÐÅÏ¢£¬µ«ÊÇÓÐʱºòÏë°ÑmanÖеÄÄÚÈݱ£´æÔÚÎı¾ÖУ¬·½±ãÒÔºó²é¿´¡£
±ÈÈç°ÑiptablesµÄÐÅÏ¢±£´æÔÚiptables.txtÖУºman iptables > iptables.txt
µ«ÊÇÕâÑù²Ù×÷µÄ½á¹ûÓÐʱºòÈ´²îÇ¿ÈËÒ⣬ÓкöàÂÒÂ룬½â¾öµÄ°ì·¨ÊÇ£ºman iptables | col -b > iptables.txt
colµÄ×÷ÓÃÊǽ«ÊäÈëµÄÄÚÈݽøÐÐת»»¹ýÂ˺óÊä³ö£¬-b¾ÍÊDz»ÏÔʾ»ØÍ˼ü

6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

7¡¢¹ÒÔØUÅ̺ó£¬UÅÌÖÐÖÐÎÄĿ¼Ãû»òÎļþÃûΪÂÒÂë
Õý³£¹ÒÔØ£ºmount /dev/sdb1 /mnt/usb £¬È»ºóʹÓÃls /mnt/usb·¢ÏÖUÅÌÉÏÖÐÎÄĿ¼ºÍÎļþÃû¶¼ÊÇÂÒÂë
½â¾ö°ì·¨£ºÔÚ¹ÒÔØʱ¼ÓÉÏ×Ö·û¼¯²ÎÊý mount -o iocharset=utf8 /dev/sdb1 /mnt/usb


ÆäËûÂÒÂ룬»áÔÚÒÔºóµÄѧϰÖÐÖð²½·¢ÏÖ½â¾ö£¬ÔÝʱÏȸø³öÕ⼸ÖÖ³£¼ûµÄÂÒÂëÇé¿ö£¬Î´Íê´ýÐø...
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 153 ÌõÆÀÂÛ

  1. xon_han ÓÚ 2013-08-14 10:53:18·¢±í:

    ÊÕ²Ø

  2. yutianedubest ÓÚ 2013-07-20 15:56:43·¢±í:

    лл¡£

  3. Î÷ºþÖ®Áµ ÓÚ 2013-07-19 20:28:01·¢±í:

    »¹ÓÐÏÂÔصÄÎļþ£¬ÎļþÃûÂÒÂëµÄ

  4. luke84 ÓÚ 2013-07-19 08:20:26·¢±í:

    ·¹ý£¡£¡£¡

  5. edan509 ÓÚ 2013-06-26 21:26:35·¢±í:

    ѧϰÁË

  6. xyg888126 ÓÚ 2013-06-03 21:28:30·¢±í:

    ¸Ð¾õÏëÓúÃlinux×îºÃ»¹ÊÇѧºÃÓ¢ÎÄ£¡

  7. a65182533 ÓÚ 2013-05-21 14:27:54·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  8. a65182533 ÓÚ 2013-05-21 14:26:27·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  9. a65182533 ÓÚ 2013-05-21 14:25:46·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  10. a65182533 ÓÚ 2013-05-21 14:25:31·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  11. a65182533 ÓÚ 2013-05-21 14:25:20·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  12. a65182533 ÓÚ 2013-05-21 14:25:14·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  13. a65182533 ÓÚ 2013-05-21 14:25:03·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  14. a65182533 ÓÚ 2013-05-21 14:24:54·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  15. a65182533 ÓÚ 2013-05-21 14:23:42·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  16. a65182533 ÓÚ 2013-05-21 13:25:04·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  17. a65182533 ÓÚ 2013-05-21 13:25:00·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  18. a65182533 ÓÚ 2013-05-21 13:24:42·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  19. a65182533 ÓÚ 2013-05-21 13:24:36·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  20. a65182533 ÓÚ 2013-05-21 13:24:31·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  21. a65182533 ÓÚ 2013-05-21 13:24:24·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  22. a65182533 ÓÚ 2013-05-21 12:36:24·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  23. a65182533 ÓÚ 2013-05-21 12:33:00·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  24. a65182533 ÓÚ 2013-05-21 12:27:34·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  25. a65182533 ÓÚ 2013-05-21 12:26:48·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  26. a65182533 ÓÚ 2013-05-21 12:26:45·¢±í:

    ·¹ý£¡£¡£¡
    °ï¶¥¡­¡­

  27. a65182533 ÓÚ 2013-05-21 12:25:13·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  28. a65182533 ÓÚ 2013-05-21 12:25:09·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  29. a65182533 ÓÚ 2013-05-21 12:25:05·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  30. a65182533 ÓÚ 2013-05-21 12:24:56·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  31. a65182533 ÓÚ 2013-05-21 12:24:50·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  32. a65182533 ÓÚ 2013-05-21 12:24:48·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  33. a65182533 ÓÚ 2013-05-21 12:24:42·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  34. a65182533 ÓÚ 2013-05-21 12:24:39·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  35. a65182533 ÓÚ 2013-05-21 12:24:37·¢±í:

    6¡¢´ÓwindowsÏ¿½¹ýÀ´µÄÎı¾ÎļþÔÚLinuxϳöÏÖÂÒÂëÖ®ËùÒÔ³öÏÖÂÒÂëÊÇÒòΪwindowsÏÂÖÐÎĵıàÂëÒ»°ãΪgbk£¬¶øLinuxÏÂÖÐÎıàÂëÒ»°ãΪ utf8£¬ËùÒÔÔÚ windowsÏÂÕý³£´ò¿ªµÄÎļþ£¬µ½LinuxϺܿÉÄܳöÏÖÂÒÂë¡£
    ½â¾ö°ì·¨ÊÇ£ºÊ¹ÓÃÃüÁîiconv¶ÔÎı¾ÄÚÈݱàÂë½øÐÐת»»
    iconv -f gbk -tutf8 Ô­Îı¾.txt > ÐÂÎı¾.txt

  36. ÈËÉúµÃÒâÉ˲»Æð ÓÚ 2013-05-20 23:21:33·¢±í:

    ¶¥

  37. chunpengkai ÓÚ 2013-05-09 15:49:59·¢±í:

    ѧϰÖУ¬Ð»Ð»

  38. myskymylove ÓÚ 2013-05-09 07:17:52·¢±í:

    ½â¾öLinux³£¼ûÂÒÂëÎÊÌâ

  39. 459312105 ÓÚ 2013-05-01 20:06:57·¢±í:

    ²»´í£¬¼ÇÏÂÁË

  40. Íô³É ÓÚ 2013-04-29 17:24:06·¢±í:

    0:w(5(