Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux Ö® ifconfig ÃüÁ

Ò»°ãÔÚlinuxϲ鿴ÍøÂçÅäÖÿÉÒÔʹÓÃifconfigÃüÁ¿ÉÒÔÏÔʾµ±Ç°Íø¿¨µÄ»ù±¾ÅäÖÃÐÅÏ¢¡£
ÖÕ¶ËÊäÈëifconfig »á³öÏÖÒ»ÏÂÄÚÈÝ£º
eth0
Link encap:Ethernet HWaddr 00:0C:29:0C:4B:0F
inet addr:192.168.37.128 Bcast:192.168.37.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2823 (2.7 Kb)
TX bytes:2722 (2.6 Kb)
Interrupt:10 Base address:0x1080
ËûÃÇ·Ö±ð±íʾ£º
Eth0£ºÍøÂç½Ó¿Ú
link encap:ÍøÂçÀàÐÍ
HWaddr:Íø¿¨ÎïÀíµØÖ·
Inet addr £ºIPµØÖ·
Bcast£º¹ã²¥µØÖ·
Mask£º×ÓÍøÑÚÂë
UP£ºÕýÔÚʹÓõÄÍøÂç½Ó¿Ú
RX packets,TX packets½ÓÊպʹ«ÊäµÄÊý¾Ý°ü¸öÊý
RX byte£¬TX byte±íʾ½ÓËѺʹ«ÊäµÄ¾ßÌåÊýÄ¿
Interrupt£ºÖÕ¶ËÐÅÏ¢
Base address£ºÄÚ´æµØÖ·
»¹¿ÉÒÔÆô¶¯ºÍ¹Ø±ÕÍø¿¨ÒÔ¼°Ìí¼ÓIPµÈ
Ifconfig eth0 down\up ¹Ø±ÕºÍÆô¶¯ÍøÂç½Ó¿Ú
Ifconfig»ù±¾Óï·¨
ifconfig Íø¿¨±êʶ ipµØÖ· ×ÓÍøÑÚÂë µØÖ· ¹ã²¥µØÖ·
ÀýÈ磺
Ifconfig eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.111
ÎÞÂÛÊÇLinux ×Ô¶¯°²×°»¹ÊÇÎÒÃÇÊÖ¹¤°²×°£¬Linux ¶¼»áÏòÄãѯÎÊÓйØÍøÂçµÄÎÊÌâ²¢ÅäÖÃÏà¹ØµÄÈí¼þ¡£Õâ¸öÓÃÓÚÅäÖÃÍø¿¨µÄ»ù±¾ÃüÁî¾ÍÊÇifconfig¡£
ÔÚÖ´ÐÐifconfig ÃüÁîºó£¬ÏµÍ³½«ÔÚÄں˱íÖÐÉèÖñØÒªµÄ²ÎÊý£¬ÕâÑùLinux ¾ÍÖªµÀÈçºÎÓëÍøÂçÉϵÄÍø¿¨Í¨
ÐÅ¡£ifconfig ÃüÁîÓÐÒÔÏÂÁ½ÖÖ¸ñʽ£º
¡ùifconfig [interface]
¡ùifconfig interface [aftype] option | address …
ifconfig µÄµÚÒ»ÖÖ¸ñʽ£¨»òʹÓò»´øÈκβÎÊýµÄifconfig ÃüÁ¿ÉÒÔÓÃÀ´²é¿´µ±Ç°ÏµÍ³µÄÍøÂçÅäÖÃÇé¿ö¡£
ÔÚ¸Õ¸Õ°²×°Íêϵͳ֮ºó£¬Êµ¼ÊÉÏÊÇÔÚûÓÐÍø¿¨»òÕßÍøÂçÁ¬½ÓµÄÇé¿öÏÂʹÓÃLinux£¬µ«Í¨¹ýifconfig ¿ÉÒÔʹÓûØÈÆ·½Ê½¹¤×÷£¬Ê¹¼ÆËã»úÈÏΪ×Ô¼º¹¤×÷ÔÚÍøÂçÉÏ¡£
ÏÖÔÚÎÒÃÇÔËÐÐÒ»ÏÂifconfig ÃüÁ²»´ø²ÎÊýµÄifconfig ÃüÁî¿ÉÒÔÏÔʾµ±Ç°Æô¶¯µÄÍøÂç½Ó¿Ú£¬ÆäÊä³ö½á¹û
Ϊ£º
-----------------------------------------------------------
[root@machine1 /sbin]#ifconfig
eth0 Link encap:Ethernet Hwaddr 52:54:AB:DD:6F:61
inet addr:210.34.6.89 Bcast:210.34.6.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46299 errors:0 dropped:0 overruns:0 frame:18


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LinuxÏÂij¸öĿ¼ÏµÄÎļþ°´´óСÅÅÐò

1. df -lh
²é´ÅÅÌʹÓÃÇé¿ö
2. du -s /usr/* | sort -rn
ÕâÊÇ°´×Ö½ÚÅÅÐò
3. du -sh /usr/* | sort -rn
ÕâÊÇ°´Õ×£¨M£©À´ÅÅÐò
4.Ñ¡³öÅÅÔÚÇ°ÃæµÄ10¸ö
du -s /usr/* | sort -rn | head
5.Ñ¡³öÅÅÔÚºóÃæµÄ10¸ö
du -s /usr/* | sort -rn | tail
˵Ã÷£º/usr/*Ò²¿ÉÒԸijÉÄãÏëµ½´ïµÄÈκÎĿ¼
Èç/usr/local/zhou/r ......

Linux Ó²Á´½ÓºÍÈíÁ¬½ÓÇø±ð

תÔØ
£¨1£©ÈíÁ¬½Ó¿ÉÒÔ ¿çÎļþϵͳ £¬Ó²Á¬½Ó²»¿ÉÒÔ ¡£Êµ¼ùµÄ·½·¨¾ÍÊÇÓù²ÏíÎļþ°ÑwindowsÏ嵀 aa.txtÎı¾ÎĵµÁ¬½Óµ½linuxÏÂ/rootĿ¼ Ï bb,cc . ln -s aa.txt /root/bb Á¬½Ó³É¹¦ ¡£ln aa.txt /root/bb ʧ°Ü ¡£
£¨2£©¹ØÓÚ I½ÚµãµÄÎÊÌâ ¡£Ó²Á¬½Ó²»¹ÜÓжàÉÙ¸ö£¬¶¼Ö¸ÏòµÄÊÇͬһ¸öI½Úµã£¬»á°Ñ ½áµãÁ¬½ÓÊýÔö¼Ó £¬Ö»Òª½áµãµÄÁ¬½Ó ......

LINUX¼ÆËãCPU¡¢ÄÚ´æµÄʹÓÃÂÊ

"procÎļþϵͳÊÇÒ»¸öαÎļþϵͳ£¬ËüÖ»´æÔÚÄÚ´æµ±ÖУ¬¶ø²»Õ¼ÓÃÍâ´æ¿Õ¼ä¡£ËüÒÔÎļþϵͳµÄ·½Ê½Îª·ÃÎÊϵͳÄÚºËÊý¾ÝµÄ²Ù×÷Ìṩ½Ó¿Ú¡£Óû§ºÍÓ¦ÓóÌÐò¿ÉÒÔͨ¹ýprocµÃµ½ÏµÍ³µÄÐÅÏ¢£¬²¢¿ÉÒԸıäÄں˵ÄijЩ²ÎÊý¡£"
    ÕâÀォ½éÉÜÈçºÎ´Ó/procÎļþϵͳÖлñÈ¡Óë·À»ðǽÏà¹ØµÄһЩÐÔÄܲÎÊý£¬ÒÔ¼°ÈçºÎͨ¹ý/procÎļþϵͳÐÞ¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ