¹ØÓÚLinux ÎļþϵͳÖз¾¶µÄÀí½â
¹ØÓÚLinux ÎļþϵͳÖз¾¶µÄÀí½â
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£ºLinuxSir.Org
ÕªÒª£ºÔÚLinux²Ù×÷ϵͳµÄÎļþ¹ÜÀíÖУ¬ÃüÁîÐÐģʽ£¨ÔÚ¿ØÖÆ̨»òÖÕ¶ËÏ£©µÄÎļþ»òĿ¼¹ÜÀí£¬ÒªÉ漰·¾¶ÕâÒ»¸ÅÄÕâÊÇLinuxÃüÁîÐвÙ×÷µÄ×î»ù´¡µÄ»ù´¡¡£Èç¹ûÎÒÃÇÁ˽âÁË·¾¶µÄ¸ÅÄ¾Í¿ÉÒÔËæÐÄËùÓûµÄ½øÈëÈκÎĿ¼£¬½øÐÐÎÒÃÇÒª×öµÄ¹¤×÷¡£
Ŀ¼
4.1 ¾ø¶Ô·¾¶£»
4.2 Ïà¶Ô·¾¶£»
5.1 ·ûºÅ.Ó¦ÓÃʾÀý£»
5.2 ·ûºÅ..Ó¦ÓÃʾÀý£»
5.3 ·ûºÅ~ºÍ~USERʾÀý£»
1¡¢LinuxÎļþϵͳÊÇ´Ó/¿ªÊ¼µÄ£»
2¡¢Àí½â·¾¶¸ÅÄîµÄÄ¿µÄ£»
3¡¢Â·¾¶µÄ¹¹³ÉÒªËØ£»
4¡¢Â·¾¶µÄ·ÖÀࣻ
5¡¢ÔÚ·¾¶ÖÐһЩÌØÊâ·ûºÅµÄ˵Ã÷£»
6¡¢Çл»Óû§µ±Ç°Ä¿Â¼µÄÖ¸Áî cd ;
7¡¢ÅжÏÓû§µ±Ç°Ëù´¦µÄ¹¤×÷Ŀ¼µÄÖ¸Áî pwd £»
8¡¢¹ØÓÚÓû§»·¾³±äÁ¿PATHµÄÉèÖÃ
9¡¢ÓйØĿ¼µÄ²Ù×÷Ö¸Á
10¡¢¹ØÓÚ±¾ÎÄ£»
11¡¢ºó¼Ç£»
12¡¢²Î¿¼Îĵµ£»
13¡¢Ïà¹ØÎĵµ£»
++++++++++++++++++++++++++++++++++++++
ÕýÎÄ
++++++++++++++++++++++++++++++++++++++
1¡¢LinuxÎļþϵͳÊÇ´Ó/¿ªÊ¼µÄ£»
ÔÚLinux²Ù×÷ϵͳµÄÎļþ¹ÜÀíÖУ¬ÃüÁîÐÐģʽ£¨ÔÚ¿ØÖÆ̨»òÖÕ¶ËÏ£©µÄÎļþ»òĿ¼¹ÜÀí£¬ÒªÉ漰·¾¶ÕâÒ»¸ÅÄÕâÊÇLinuxÃüÁîÐвÙ×÷µÄ×î»ù´¡µÄ»ù´¡¡£Èç¹ûÎÒÃÇÁ˽âÁË·¾¶µÄ¸ÅÄ¾Í¿ÉÒÔËæÐÄËùÓûµÄ½øÈëÈκÎĿ¼£¬½øÐÐÎÒÃÇÏëµÄ¹¤×÷¡£
Linux Îļþϵͳ£¬ÊÇÒ»¸ö³ÊÊ÷Ðνṹ£¬ÊÇ´Ó/×öΪÈë¿Ú£¬/£¨Ò²±»³ÆΪ¸ùĿ¼£©ÏÂÓÐ×ÓĿ¼£¬±ÈÈçetc¡¢usr¡¢libµÈ£¬ÔÚÿ¸ö×ÓĿ¼ÏÂÓÖÓÐÎļþ»ò×ÓĿ¼£¬ÕâÑù¾ÍÐγÉÁËÒ»¸öÊ÷Ðνṹ£¬ÕâÖÖÊ÷Ðνṹ±È½Ïµ¥Ò»¡£¶øWindowsÎļþϵͳÄØ£¿ËüÒýÈëÁËCÅÌ¡¢DÅÌÀàËƵĴÅÅ̸ÅÄʹµÃÏ°¹ßWindows²Ù×÷µÄÓû§ÔÚתÏòLinuxʱ£¬»á·¢ÏÖLinux¸ù±¾¾ÍÓÐCÅÌ¡¢DÅ̵ĸÅÄÓÐʱÉõÖÁ²»ÖªËù´ë¡£
2¡¢Àí½â·¾¶¸ÅÄîµÄÄ¿µÄ£»
ÒýÈë·¾¶¸ÅÄîÄ¿µÄ×îÖÕÊÇÕÒµ½ÎÒÃÇËùÐèÒªµÄĿ¼»òÎļþ¡£±ÈÈçÎÒÃÇÏëÒª±à¼ file.txt Îļþ£¬ÎÒÃÇÊ×ÏÈÒªÖªµÀËû´æ·ÅÔÚÄÄÀҲ¾ÍÊÇ˵ÎÒÃÇÒªÖ¸³öËûËùÔÚµÄλÖã¬Õâʱ¾ÍÒªÓõ½Â·¾¶ÁË¡£
3¡¢Â·¾¶µÄ¹¹³ÉÒªËØ£»
·¾¶ÊÇÓÉĿ¼»òĿ¼ºÍÎļþÃû¹¹³ÉµÄ¡£±ÈÈç/etc/X11 ¾ÍÊÇÒ»¸ö·¾¶£¬¶ø/etc/X11/xorg.confÒ²ÊÇÒ»¸ö·¾¶¡£Ò²¾ÍÊÇ˵·¾¶¿ÉÒÔÊÇĿ¼µÄ×éºÏ£¬·Ö¼¶ÉîÈë½øÈ¥£¬Ò²¿ÉÒÔÊÇÎļ£«Îļþ¹¹³É¡£±ÈÈçÎÒÃÇÏëÓÃvi±à¼xorg.confÎļþ£¬ÔÚÃüÁîÐÐÏÂÊäÈë vi /etc/X11/xorg.conf £¬Èç¹ûÎÒÃÇÏë½øÈë/etc/X11Ŀ¼£¬¾Í¿ÉÒÔͨ¹ýcd /etc/X11À´ÊµÏÖ¡£
4¡¢Â·¾¶µÄ·ÖÀࣻ
·¾¶·ÖΪ¾ø¶Ô·¾¶ºÍÏà¶Ô·¾¶£»
4.1 ¾ø¶Ô·¾¶£»
ÔÚLinuxÖУ¬¾ø¶Ô·¾¶ÊÇ´Ó/£¨Ò²±»³ÆΪ¸ùĿ¼£©¿ªÊ¼µÄ£¬±ÈÈç/usr¡
Ïà¹ØÎĵµ£º
tar
-c: ½¨Á¢Ñ¹Ëõµµ°¸
-x£º½âѹ
-t£º²é¿´ÄÚÈÝ
-r£ºÏòѹËõ¹éµµÎļþĩβ׷¼ÓÎļþ
-u£º¸üÐÂÔѹËõ°üÖеÄÎļþ
ÕâÎå¸öÊǶÀÁ¢µÄÃüÁѹËõ½âѹ¶¼ÒªÓõ½ÆäÖÐÒ»¸ö£¬¿ÉÒԺͱðµÄÃüÁîÁ¬Óõ«Ö»ÄÜÓÃÆäÖÐÒ»¸ö¡£ÏÂÃæµÄ²ÎÊýÊǸù¾ÝÐèÒªÔÚѹËõ»ò½âѹµµ°¸Ê±¿ÉÑ¡µÄ¡£
-z£ºÓÐgzipÊôÐÔµÄ
-j£ºÓÐbz2ÊôÐÔµÄ
-Z£ºÓÐcompressÊôÐ﵀ ......
1.¼àÊÓÄÚ´æ
free -mt
total used free shared buffers cached
Mem: ......
LinuxÏÂSUNµÄJREÎÊÌâÈÕÖ¾ÊÕ¼¯
ÔÚLinuxÏÂʹÓÃSunÌṩµÄJRE£¬µ±·¢Éúcore dumpʱ£¬Èç¹ûÈ·ÈÏÊÇÓÉJREÔì³ÉµÄ£¬Sunͨ³£ÐèÒªÄãÌṩÈÕÖ¾ÒÔ¹©·ÖÎö¡£
ͨ³£ÊÇͨ¹ýÖ´ÐÐpkgapp½Å±¾À´ÊÕ¼¯¡£¸Ã½Å±¾¿ÉÔÚsunÍøÕ¾ÉÏÏÂÔØ£¬Ãû×ÖΪSUN-GDD_pkgapp_linux_redhat.tar.gz¡£
pkgapp¹¤¾ßÐèÒªkshµÄÖ§³Ö£¬Òò´ËÈç¹ûLinuxÉÏûÓа´ÕÕksh£¬±ØÐëÏÈ°²×°²Å¿É¡ ......
ÔÚ¿ª·¢¹ý³ÌÖУ¬±ØÈ»»á³öÏÖ¶àÈËͬʱ¹¤×÷¡¢Ð×ŵÄÇé¿ö£¬ÔÚǶÈëʽ¿ª·¢ÏîÄ¿ÖиüΪƽ³££¬ÕâÑù¿ÉÒÔ¼Ó¿ìÏîÄ¿ÖÜÆÚ£¬Îª²úÆ·ÉÏÊÐÕ¼µÃʱ¼äÏÈ»ú¡£Ä¿Ç°£¬Ê¹ÓÃlinux×÷Ϊ¿ª·¢²úÆ·µÄ²Ù×÷ϵͳÇé¿öÔ½À´Ô½¶à£¬Ê¹ÓÃÔ½À´Ô½¹ã·º¡£ÎªÁ˽»²æ±àÒ룬ΪÁË×î½Ó½ü¿ª·¢Ä¿±ê£¬ÎÒÃÇÒ»°ã¶¼»á×Ô¼º´î½¨Ò»Ì¨linux¿ª·¢·þÎñÆ÷¡£linux¿ª·¢·þÎñÆ÷ ......
LinuxϾ²Ì¬¿â.aÉú³É
1.½«¸÷º¯Êý´úÂëËùÔÚµÄÔ´Îļþ±àÒë³ÉĿ¼Îļþ¡£ÀýÈ磬¶ÔÓÚmyfunc.c£¬¿ÉÒÔÓÃÈçÏÂÃüÁî ½«Æä±àÒë³ÉÄ¿±êÎļþ£º
gcc -c myfunc.c
µ±È»ÔÚÓжà¸öÔ´Îļþʱ£¬Ö»ÐèÔÚgcc ÃüÁîÐÐÖн«Æä·Ö±ðÁÐÉϾͿÉÒÔÁË¡£¾´ËÒ»²½£¬½«Äܹ»µÃµ½¸÷Ô´ÎļþµÄÄ¿±êÎļþ¡£¶ÔÉÏÀý£¬½«µÃµ½myfunc.o
2.½«¸÷Ä¿±êÎļþÊÕ¼¯ÆðÀ´· ......