LinuxÖÐ/procĿ¼ÏÂÎļþÏê½â (ת)
ÉùÃ÷
£º¿ÉÒÔ×ÔÓÉתÔر¾ÎÄ£¬µ«ÇëÎñ±Ø±£Áô±¾ÎĵÄÍêÕûÐÔ¡£
×÷Õß
£ºÕÅ×Ó¼á
email
:zhangzijian@163.com
˵Ã÷
£º±¾ÎÄËùÉ漰ʾÀý¾ùÔÚfedora core3ϵõ½¡£
--------------------------------------------------------------------------------
/proc
ÎļþϵͳϵĶàÖÖÎļþÌṩµÄϵͳÐÅÏ¢²»ÊÇÕë¶Ôij¸öÌض¨½ø³ÌµÄ£¬¶øÊÇÄܹ»ÔÚÕû¸öϵͳ·¶Î§µÄÉÏÏÂÎÄÖÐʹÓ᣿ÉÒÔʹÓõÄÎļþËæϵͳÅäÖõı仯¶ø±ä»¯¡£ÃüÁîprocinfoÄܹ»ÏÔʾ»ùÓÚÆäÖÐijЩÎļþµÄ¶àÖÖϵͳÐÅÏ¢¡£ÒÔÏÂÏêϸÃèÊö/procϵÄÎļþ¡£
--------------------------------------------------------------------------------
/proc/cmdlineÎļþ
Õâ¸öÎļþ¸ø³öÁËÄÚºËÆô¶¯µÄÃüÁîÐС£ËüºÍÓÃÓÚ½ø³ÌµÄcmdlineÏî·Ç³£ÏàËÆ¡£
ʾÀý£º
[root@localhost proc]# cat cmdline
ro root=LABEL=/ rhgb quiet
--------------------------------------------------------------------------------
/proc/cpuinfoÎļþ
Õâ¸öÎļþÌṩÁËÓйØϵͳCPUµÄ¶àÖÖÐÅÏ¢¡£ÕâЩÐÅÏ¢ÊÇ´ÓÄÚºËÀï¶ÔCPUµÄ²âÊÔ´úÂëÖеõ½µÄ¡£ÎļþÁгöÁËCPUµÄÆÕͨÐͺţ¨386£¬486£¬586£¬686
µÈ£©£¬ÒÔ¼°Äܵõ½µÄ¸ü¶àÌض¨ÐÅÏ¢£¨ÖÆÔìÉÌ£¬ÐͺźͰ汾£©¡£Îļþ»¹°üº¬ÁËÒÔbogomips±íʾµÄ´¦ÀíÆ÷Ëٶȣ¬¶øÇÒÈç¹û¼ì²âµ½CPUµÄ¶àÖÖÌØÐÔ»òÕßbug£¬
Îļþ»¹»á°üº¬ÏàÓ¦µÄ±êÖ¾¡£Õâ¸öÎļþµÄ¸ñʽΪ£ºÎļþÓɶàÐй¹³É£¬Ã¿ÐаüÀ¨Ò»¸öÓòÃû³Æ£¬Ò»¸öðºÅºÍÒ»¸öÖµ¡£
ʾÀý£º
[root@localhost proc]# cat cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : AMD Athlon(tm) XP 1800+
stepping : 1
cpu MHz : 1530.165
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips : 2998.27
--------------------------------------------------------------------------------
/proc/devicesÎļþ
Õâ¸öÎļþÁгö×Ö·ûºÍ¿éÉ豸µÄÖ÷É豸ºÅ£¬ÒÔ¼°·ÖÅäµ½ÕâЩÉ豸ºÅµÄÉ豸Ãû³Æ¡£
ʾÀý£º
[root@localhost /]# cat /proc/devices
Character devices:
1 mem
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
6 lp
7 vcs
10 misc
13 input
14 sound
29 fb
36 netlink
116 alsa
Ïà¹ØÎĵµ£º
ÔÚÏÖÐеÄlinux·¢²¼°æ±¾ÖУ¬Èí¼þ°ü¹ÜÀí¹¤¾ßʹÓÃ×î¶àµÄÊÇrpmºÍdpkg,µ«ÊÇÕâÁ½Õ߶¼²»Äܽâ¾öÈí¼þÖ®¼äµÄÒÀÀµ¹Øϵ£¬ËùÒÔÓÖÓÐÁËyumºÍapt£¬yumÆäʵÊǶÔrpmµÄ·â×°£¬¶øaptÊǶÔdkpgµÄ·â×°£¬Á½Õ߶¼ÔÚ·â×°µÄͬʱ£¬ºÜºÃµÄ½â¾öÁËÈí¼þÒÀÀµÎÊÌ⣬ʹÓÃÆðÀ´·Ç³£·½±ã¡£ÏÂÃæÊÇһЩÈí¼þ¹ÜÀí³£ÓõÄÃüÁ
¸üÐÂÈí¼þÁÐ±í£º
......
Ò»¡¢¸ÅÊö
ϵͳµ÷ÓÃÊÇÒ»¸öÈíÖжϣ¬ÖжϺÅÊÇ0x80£¬ËüÊÇÉϲãÓ¦ÓóÌÐòÓëLinuxϵͳÄں˽øÐн»»¥Í¨ÐŵÄΨһ½Ó¿Ú¡£Í¨¹ýint 0x80£¬¾Í¿ÉʹÓÃÄÚºË×ÊÔ´¡£²»¹ý£¬Í¨³£Ó¦ÓóÌÐò¶¼ÊÇʹÓþßÓбê×¼½Ó¿Ú¶¨ÒåµÄCº¯Êý¿â¼ä½ÓµÄʹÓÃÄں˵Äϵͳµ÷Ó㬼´Ó¦ÓóÌÐòµ÷ÓÃCº¯Êý¿âÖеĺ¯Êý£¬Cº¯Êý¿âÖÐ ......
NO
·ÖÀà
PS1
ÃüÁîÃû
Ó÷¨¼°²ÎÊý
¹¦ÄÜ×¢½â
1
ÏÔʾĿ¼ÐÅÏ¢
#
ls
ls -a
Áгöµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ.Í·µÄÒþº¬Îļþ
#
ls
ls -l»òll
Áгöµ±Ç°Ä¿Â¼ÏÂÎļþµÄÏêϸÐÅÏ¢
#
ls
ls -a
ÏÔʾËùÓÐÎļþ£¬°üº¬Òþ²Ø¡£
#
ls
ls -al
ÏÔʾËùÓÐÎļþµÄÏêϸÐÅÏ¢¡£
2
²é¿´Â·¾¶
#
pwd
pwd
²é¿´µ±Ç°ËùÔÚĿ¼µÄ¾ø ......
Ç°¶Îʱ¼ä°Ý¶Áfudan_abcµÄÎÄÕºó¸ù¾Ý×Ô¼ºµÄÀí½âдµÄһЩ·ÖÎö
[url=http://blog.chinaunix.net/u1/57901/showart.php?id=1855876][color=#02368d][size=10pt]LINUXÏÂUSB1.1É豸ѧϰС¼Ç(1) [/size][/color]
[url=http://blog.chinaunix.net/u1/57901/showart.php?id=1856447][color=#02368d][size=10pt]LINUXÏÂUSB1. ......
1.1 °²×°JDK
1.1.1 ÏÂÔØJDK
´ò¿ªhttp://java.sun.com/ÍøÕ¾£¬ÔÚĿ¼ÀïÃæÑ¡ÔñDownload£¬ÔÚÏÂÀ²Ëµ¥ÖÐÑ¡ÔñJava SE
½øÈëÏÂÒ»¸öÒ³Ã棬ҪѡÔñÏÂÔØJDK£¬¶ø²»ÒªÏÂÔØJRE£º
½ÓÏÂÀ´ÊÇÑ¡ÔñÔËÐеÄƽ̨£¬ÕâÀﵱȻÊÇÑ¡ÔñlinuxÁË£º
Ñ¡ÔñºÃƽ̨ºó£¬µã»÷continue:
ÕâÀï¿ÉÒÔÖ±½Óµ ......