WindowsÓû§¿´LinuxĿ¼¼°ÄÚºËÔ´ÂëµÄĿ¼½á¹¹
Ò»£ºWindowsÓû§¿´LinuxĿ¼
ÓëWindows½«Ó²ÅÌ¿´×ö“CÅÌ”¡¢“DÅÌ”¼¸¸ö¶ÀÁ¢µÄ·ÖÇø²»Í¬£¬Linux½«Õû¸öÎļþϵͳ¿´×öÒ»¿ÃÊ÷£¬Õâ¿ÃÊ÷µÄÊ÷¸ù½Ð×ö¸ùÎļþϵͳ£¬ÓÃ/±íʾ¡£¸÷¸ö·ÖÇøͨ¹ý“¹ÒÔØ”£¨mount£©ÒÔÎļþ¼ÐµÄÐÎʽ·ÃÎÊ¡£
ÔÚ/ÖеÄÎļþ¼ÐºÜ¶à£¬±¾ÎĽéÉܳ£¼ûÎļþ¼ÐµÄÒâÒå¡£LinuxµÄĿ¼½á¹¹È·Êµ±È½Ï¸´ÔÓ£¬µ«ÉèÖúÏÀí¡¢²ã´ÎÏÊÃ÷¡£±¾ÎÄÒÔFHS 2.3ΪÀý½øÐнéÉÜ¡£
¸ùÎļþϵͳ
/bin
ÕâһĿ¼Öдæ·ÅÁ˹©ËùÓÐÓû§Ê¹ÓõÄÍê³É»ù±¾Î¬»¤ÈÎÎñµÄÃüÁî¡£ÆäÖÐbinÊÇbinaryµÄËõд£¬±íʾ¶þ½øÖÆÎļþ£¬Í¨³£Îª¿ÉÖ´ÐÐÎļþ¡£Ò»Ð©³£ÓõÄϵͳÃüÁÈçcp¡¢lsµÈ±£´æÔÚ¸ÃĿ¼ÖС£
/boot
ÕâÀï´æ·ÅµÄÊÇÆô¶¯LinuxʱʹÓõÄһЩºËÐÄÎļþ¡£Èç²Ù×÷ϵͳÄںˡ¢Òýµ¼³ÌÐògrubµÈ¡£
/dev
ÔÚ´ËĿ¼Öаüº¬ËùÓеÄϵͳÉ豸Îļþ¡£´Ó´ËĿ¼¿ÉÒÔ·ÃÎʸ÷ÖÖϵͳÉ豸¡£ÈçCD-ROM£¬´ÅÅÌÇý¶¯Æ÷£¬µ÷Öƽâµ÷Æ÷ºÍÄÚ´æµÈ¡£ÔÚ¸ÃĿ¼Öл¹°üº¬Óи÷ÖÖʵÓù¦ÄÜ£¬ÈçÓÃÓÚ´´½¨É豸ÎļþµÄMAKEDEV¡£ÓйØ/devÖÐÎļþµÄ¾ßÌ庬Ò壬Çë²Î¿¼/dev
/etc
¸ÃĿ¼Öаüº¬ÏµÍ³ºÍÓ¦ÓÃÈí¼þµÄÅäÖÃÎļþ¡£
/home
Ŀ¼/home´æ´¢ÆÕͨÓû§µÄ¸öÈËÎļþ¡£Ã¿¸öÓû§µÄÖ÷Ŀ¼¾ùÔÚ/homeÏÂÒÔ×Ô¼ºµÄÓû§ÃûÃüÃû¡£
/lib
Õâ¸öĿ¼Àï´æ·Å×Åϵͳ×î»ù±¾µÄ¹²ÏíÁ´½Ó¿âºÍÄÚºËÄ£¿é¡£¹²ÏíÁ´½Ó¿âÔÚ¹¦ÄÜÉÏÀàËÆÓÚWindowsÀïµÄ.dllÎļþ¡£
/lib64
64λϵͳÓÐÕâ¸öÎļþ¼Ð£¬64λ³ÌÐòµÄ¿â¡£
/lost+found
Õâ²¢²»ÊÇLinuxĿ¼½á¹¹µÄ×é³É²¿·Ö£¬¶øÊÇext3ÎļþϵͳÓÃÓÚ±£´æ¶ªÊ§ÎļþµÄµØ·½¡£²»Ç¡µ±µÄ¹Ø»ú²Ù×÷ºÍ´ÅÅÌ´íÎó¾ù»áµ¼ÖÂÎļþ¶ªÊ§£¬ÕâÒâζ×ÅÕâЩ±»±êעΪ“ÔÚʹÓÔ£¬µ«È´²¢Î´ÁÐÓÚ´ÅÅÌÉϵÄÊý¾Ý½á¹¹ÉÏ¡£Õý³£Çé¿öÏ£¬Òýµ¼½ø³Ì»áÔËÐÐfsck³ÌÐò£¬¸Ã³ÌÐòÄÜ·¢ÏÖÕâЩÎļþ¡£³ýÁË“/”·ÖÇøÉϵÄÕâ¸öĿ¼Í⣬ÔÚÿ¸ö·ÖÇøÉϾùÓÐÒ»¸ölost+foundĿ¼¡£
/media
¿ÉÒƶ¯É豸µÄ¹ÒÔص㣬µ±Ç°µÄ²Ù×÷ϵͳͨ³£»á°ÑUÅ̵ÈÉ豸×Ô¶¯¹ÒÔص½¸ÃÎļþ¼ÐÏ¡£
/mnt
ÁÙʱÓÃÓÚ¹ÒÔØÎļþϵͳµÄµØ·½¡£Ò»°ãÇé¿öÏÂÕâ¸öĿ¼Êǿյģ¬¶øÔÚÎÒÃǽ«Òª¹ÒÔØ·ÖÇøʱÔÚÕâ¸öĿ¼Ï½¨Á¢Ä¿Â¼£¬ÔÙ½«ÎÒÃǽ«Òª·ÃÎʵ
Ïà¹ØÎĵµ£º
±¾ÎĽéÉÜÔÚGNU/Linux»·¾³ÏÂÒ»¸öC³ÌÐòÓÉÔ´´úÂëµ½³ÌÐò£¬µ½¼ÓÔØÔËÐУ¬×îºóÖÕÖ¹µÄ¹ý³Ì¡£Í¬Ê±ÒԴ˹ý³ÌΪÔØÌ壬½éÉÜGNU/Linuxƽ̨ÏÂÈí¼þ¿ª·¢¹¤¾ßµÄʹÓá£
±¾ÎÄÒÔÎÒÃÇ×î³£¼ûµÄhello, world!ΪÀý£º
#include <stdio.h>
main ()
{
printf(“hello, world!\n” ......
1£¬ Ê×ÏÈ×¼±¸Linux»·¾³£¬ RedHat5.3µÄϵͳ£¬ jdkÊÇ1.6°æ±¾µÄ£¬MyEclipseÊÇ7.0µÄ£¬ Á¬½Óʱ¿ÉÒÔʹÓÃssh»òÊÇcrt½øÐÐwindowsÓëLinuxµÄ½»Á÷¡£
2£¬ÎªÁËÉÏ´«·½±ã£¬ ÔÚʱʹÓÃcrt£¬Ëû¿ÉÒÔʹÉÏ´«£¬ÏÂÔصÄËٶȸü¿ì¡£
3£¬ ÔÚLinuxÏ´´½¨±ÈÈç˵ÊÇjdkĿ¼£¬ ʹÓÃrzÉÏ´«¹¤¾ß½øÐÐÉÏ´«£¬ ÉÏ´«ÒԺ󣬸³ÓèÎļþ¼ÐµÃȨÏÞ£¬²¢ÇÒ ......
zz http://yushan.javaeye.com/blog/261148
Ò».jdk1.4жÔØ
ÓÉÓÚredhat Enterprise 5 ÖÐ×Ô´ø°²×°ÁËjdk1.4µÄ£¬ËùÒÔÔÚ°²×°jdk1.6Ç°ÎÒ°Ñjdk1.4µÄжÁË£¬²½ÖèÈçÏ£º
1.´ò¿ªÖÕ¶ËÊäÈë#rpm -qa | grep gcj
£¬ÆäÏÖʵÄÚÈÝÓУº
java
-1.4.2-gci-compat.........
java
-1.4.2-gcj-compat-devel.....(¾ßÌåÍüÁËÊÇʲà ......
³ÉΪһÃû¾«Í¨ Linux
³ÌÐòÉè¼ÆµÄ¸ß¼¶³ÌÐòÔ±Ò»Ö±ÊDz»ÉÙÅóÓÑ×Î×ÎÒÔÇóµÄÄ¿±ê¡£¸ù¾ÝÖлªÓ¢²ÅÍøͳ¼ÆÊý¾Ý£¬±±¾©µØÇø Linux ³ÌÐòÔ±ÔÂнƽ¾ùΪ Windows ³ÌÐòÔ±µÄ
1.8 ±¶¡¢Java ³ÌÐòÔ±µÄ 2.6 ±¶£¬ Linux ³ÌÐòÔ±ÄêÖÕ½±½ðƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 2.9
±¶¡£Í¬Ê±Êý¾ÝÏÔʾ£¬Ëæ׏¤×÷¾ÑéµÄÔö³¤£¬ Linux ³ÌÐòÔ±Óë Win ......
ÍƼöʹÓÃVMware Workstation(ÐéÄâ»ú),ÏÂÔصØÖ·£º
http://www.gd2.xdowns.com:8080/uploadFile/2008-3/ha_vmware_cn-v6.03.rar
Ó²¼þÒªÇó£ºÖ»ÒªÄÜÕý³£ÔËÐÐxpµÄ¾ÍÐУ¬ÄÚ´æ512M»ò¸ü´ó£¨ÏÖÔÚÂòµÄ»ú×ÓÓ¦¸ÃûÓеÍÓÚÕâ¸ö±ê×¼µÄÁË°É£©¡£
×îÖØÒªµÄÊÇÒªÓÐLinux°²×°ÅÌ£¨ÍøÉÏÏÂÔصľµÏóÎļþÒ²ÐУ¬·´Õý¿ÉÒÔÖ±½ÓʹÓã©¡£
¾ßÌå²Ù×÷È ......