Linux ϵͳĿ¼¹¦ÄÜ˵Ã÷
“/”¸ùĿ¼
°üº¬»ù±¾µÄ²Ù×÷ϵͳºÍά»¤¹¤¾ß¡£Õâ¸öĿ¼µÄÎļþ¿ÉÒÔÆô¶¯ÏµÍ³£¬²¢ÇÒÐèÒªµÄ»°£¬¿ÉÒÔÍê³É½ô¼±Î¬»¤ºÍÐÞ¸´µÄ¹¦ÄÜ¡£
“/usr”Ŀ¼
°üº¬ËùÓеÄÃüÁî¡¢³ÌÐò¿â¡¢ÎĵµºÍÆäËüÎļþ¡£ÕâЩÎļþÔÚÕý³£²Ù×÷Öв»»á±»¸Ä±äµÄ¡£
Õâ¸öĿ¼Ҳ°üº¬ÄãµÄLinux·¢Ðа汾µÄÖ÷ÒªµÄÓ¦ÓóÌÐò£¬Æ©È磬Netscape¡£
“/var”Ŀ¼
°üº¬ÔÚÕý³£²Ù×÷Öб»¸Ä±äµÄÎļþ£º¼ÙÍÑ»úÎļþ¡¢¼Ç¼Îļþ¡¢¼ÓËøÎļþ¡¢ÁÙʱÎļþºÍÒ³¸ñʽ»¯ÎļþµÈ¡£
“/home”Ŀ¼
°üº¬Óû§µÄÎļþ£º²ÎÊýÉèÖÃÎļþ¡¢¸öÐÔ»¯Îļþ¡¢Îĵµ¡¢Êý¾Ý¡¢EMAIL¡¢»º´æÊý¾ÝµÈ¡£Õâ¸öĿ¼ÔÚϵͳʡ¼¶Ê±Ó¦¸Ã±£Áô¡£
“/proc”Ŀ¼
Õû¸ö°üº¬Ðé»ÃµÄÎļþ¡£ËüÃÇʵ¼ÊÉϲ¢²»´æÔÚ´ÅÅÌÉÏ£¬Ò²²»Õ¼ÓÃÈκοռ䡣£¨ÓÃls -l ¿ÉÒÔÏÔʾËü
ÃǵĴóС£©µ±²é¿´ÕâЩÎļþʱ£¬Êµ¼ÊÉÏÊÇÔÚ·ÃÎÊ´æÔÚÄÚ´æÖеÄÐÅÏ¢£¬ÕâЩÐÅÏ¢ÓÃÓÚ·ÃÎÊϵͳ¡£
“/”¸ùĿ¼²¿·ÖÓÐÒÔÏÂ×ÓĿ¼£º
/bin ϵͳÆô¶¯Ê±ÐèÒªµÄÖ´ÐÐÎļþ£¨¶þ½øÖÆ£©£¬ÕâЩÎļþ¿ÉÒÔ±»ÆÕͨÓû§Ê¹Óá£
/sbin ϵͳִÐÐÎļþ£¨¶þ½øÖÆ£©£¬ÕâЩÎļþ²»´òËã±»ÆÕͨÓû§Ê¹Óᣣ¨ÆÕͨÓû§ÈÔÈ»¿ÉÒÔ
ʹÓÃËüÃÇ£¬µ«ÒªÖ¸¶¨Ä¿Â¼¡££©
/etc ²Ù×÷ϵͳµÄÅäÖÃÎļþĿ¼¡£
/root ϵͳ¹ÜÀíÔ±£¨Ò²½Ð³¬¼¶Óû§»ò¸ùÓû§£©µÄHomeĿ¼¡£
/dev É豸ÎļþĿ¼¡£LINUXÏÂÉ豸±»µ±³ÉÎļþ£¬ÕâÑùÒ»À´Ó²¼þ±»³éÏ󻯣¬±ãÓÚ¶Áд¡¢ÍøÂç
¹²ÏíÒÔ¼°ÐèÒªÁÙʱװÔص½ÎļþϵͳÖС£Õý³£Çé¿öÏ£¬É豸»áÓÐÒ»¸ö¶ÀÁ¢µÄ×ÓĿ¼¡£ÕâЩÉè
±¸µÄÄÚÈÝ»á³öÏÖÔÚ¶ÀÁ¢µÄ×ÓĿ¼Ï¡£LINUXûÓÐËùνµÄÇý¶¯·û¡£
/lib ¸ùÎļþϵͳĿ¼Ï³ÌÐòºÍºËÐÄÄ£¿éµÄ¹²Ïí¿â¡£
/boot ÓÃÓÚ×Ô¾Ù¼ÓÔسÌÐò£¨LILO»òGRUB£©µÄÎļþ¡£µ±¼ÆËã»úÆô¶¯Ê±£¨Èç¹ûÓжà¸ö²Ù×÷ϵ
ͳ£¬ÓпÉÄÜÔÊÐíÄãÑ¡ÔñÆô¶¯ÄÄÒ»¸ö²Ù×÷ϵͳ£©£¬ÕâЩÎļþÊ×Ïȱ»×°ÔØ¡£Õâ¸öĿ¼Ҳ»á°üº¬
LINUXºË£¨Ñ¹ËõÎļþvmlinuz£©£¬µ«LINUXºËÒ²¿ÉÒÔ´æÔڱ𴦣¬Ö»ÒªÅäÖÃLILO²¢ÇÒLILOÖªµÀ
LINUXºËÔÚÄĶù¡£
/opt ¿ÉÑ¡µÄÓ¦ÓóÌÐò£¬Æ©È磬REDHAT 5.2ϵÄKDE £¨REDHAT 6.0Ï£¬KDE·ÅÔÚÆäËüµÄXWINDOWS
Ó¦ÓóÌÐòÖУ¬Ö÷Ö´ÐгÌÐòÔÚ/usr/binĿ¼Ï£©
/tmp ÁÙʱÎļþ¡£¸ÃĿ¼»á±»×Ô¶¯ÇåÀí¸É¾»¡£
/lost+found ÔÚÎļþϵͳÐÞ¸´Ê±»Ö¸´µÄÎļþ¡£
“/usr”Ŀ¼Ï±ȽÏÖØÒªµÄ²¿·ÖÓУº
/usr/X11R6 X-WINDOWSϵͳ£¨version 11, release 6)
/usr/X11 ͬ/usr/X11R6 £¨/usr/X11R6µÄ·ûºÅÁ¬½Ó£©
/usr/X11R6/bin ´óÁ¿µÄСX-WINDOWSÓ¦ÓóÌÐò£¨Ò²¿ÉÄÜÊÇһЩÔÚÆäËü×ÓĿ¼Ï´óÖ´ÐÐÎļþ
µÄ·ûºÅÁ¬½Ó£©¡
Ïà¹ØÎĵµ£º
nmÃüÁî
[
ÔÚGNU CÓïÑÔ¿âÌṩµÄÄÚÈÝÖУ¬ÓнӿڿÉÒÔÓÃÀ´×öÕâ¼þÊ¡£ÓÃÏÂÃæµÄÃüÁî²é¿´£º
nm -D /lib/libc.so.6 | grep log
]
nmÃüÁÊDZȽϼòµ¥¶øÇÒÇ¿´óµÄ¡£ËüÓÃÀ´ÁгöÒ»¸öÄ¿±êÎļþÖеĸ÷ÖÖ·ûºÅ¡£·ûºÅµÄÖÖÀàºÜ¶à£¬ÒÔÏÂÊÇһЩ³£¼ûµÄ·ûºÅÀàÐÍ
nmÊä³ö×Ö·û
º¬Òå
R
Read only symbol. ±ÈÈçÔÚ´úÂëÖÐÓÐÒ»¸öconst MAXDATA ......
½ø³ÌÔÚ²Ù×÷ϵͳÖж¼ÓÐÒ»¸ö»§¿Ú£¬ÓÃÓÚ±íʾÕâ¸ö½ø³Ì¡£Õâ¸ö»§¿Ú²Ù×÷ϵͳ±»³ÆΪPCB£¨½ø³Ì¿ØÖƿ飩£¬ÔÚlinuxÖоßÌåʵÏÖÊÇ
task_structÊý¾Ý½á¹¹£¬Ëü¼Ç¼ÁËһϼ¸¸öÀàÐ͵ÄÐÅÏ¢£º
1.״̬ÐÅÏ¢£¬ÀýÈçÕâ¸ö½ø³Ì´¦ÓÚ¿ÉÖ´ÐÐ״̬£¬ÐÝÃߣ¬¹ÒÆðµÈ¡£
2.ÐÔÖÊ£¬ÓÉÓÚunixÓкܶà±äÖÖ£¬½ø³ÌÓÐ×Ô¼º¶ÀÌصÄÐÔÖÊ¡£
3.×ÊÔ´£¬×ÊÔ´µÄÁ´½Ó±ÈÈçÄڴ棬 ......
RHEL5´î½¨DNS·þÎñÆ÷ʵÏÖÃû³Æ½âÎö ËÄ
(1)ÉèÖÃÕýÏò½âÎöÇøÓò
ÕýÏò½âÎöÇøÓòÓÃÓÚʵÏÖÓòÃûµ½IPµØÖ·Ö®¼äµÄת»»¡£ÏÂÃæÊÇÒ»¸öÕýÏò½âÎöÇøÓòµÄÅäÖÃÄÚÈݾÙÀý£º
zone “my.internal.com” {
type master;
&nbs ......
ÓÉÓÚÔÚ°²×°rhel5µÄʱºòûӴ°²×°µ½ºÃSamba£¬ÏÖÔÚÖ»ÄÜ´Óа²×°ÁË¡£ÓôÃÆ°¡£¡£¨ÔÚinit.dÖÐûÓз¢ÏÖsmbºÍnmbÕâÁ½¸öÎļþ£©
»¹ºÃÔÚ°²×°ÅÌÀïÄܹ»ÕÒµ½°²×°Îļþ¡£ÕâÀï¾Í²»ËµÁË£¨Ò»¶Ñsamba¿ªÍ·µÄÎļþ¡£Ò»Õó¿ñµã¾ÍÐÐÁË¡£ºÇºÇ……£©
Samba Á½¸ö·þÎñÆ÷Ïà¹ØÆô¶¯³ÌÐò¡¢¿Í»§¶Ë¼°·þÎñÆ÷ÅäÖÃÎļþ
Samba ÓÐÁ½¸ö·þÎñÆ÷£¬Ò»¸öÊÇs ......
Õâ¸ö¶«¶«£¬ÂùºÃÍæµÄ¡£Æäʵ¾ÍÊǶÁÈ¡ÁË/proc/net/dev Îļþ¡£
struct netdev_stats {
unsigned long long rx_packets_m; /* total packets received */
unsigned long long tx_packets_m; &nbs ......