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

LinuxÉÏÍø¿¨É趨


EthtoolÊÇÓÃÓÚ²éѯ¼°ÉèÖÃÍø¿¨²ÎÊýµÄÃüÁî¡£
¸ÅÒª£º
ethtool ethX      //²éѯethXÍø¿Ú»ù±¾ÉèÖÃ
ethtool –h        //ÏÔʾethtoolµÄÃüÁî°ïÖú(help)
ethtool –i ethX    //²éѯethXÍø¿ÚµÄÏà¹ØÐÅÏ¢
ethtool –d ethX    //²éѯethXÍø¿Ú×¢²áÐÔÐÅÏ¢
ethtool –r ethX    //ÖØÖÃethXÍø¿Úµ½×ÔÊÊӦģʽ
ethtool –S ethX    //²éѯethXÍø¿ÚÊÕ·¢°üͳ¼Æ
ethtool –s ethX [speed 10|100|1000]\         //ÉèÖÃÍø¿ÚËÙÂÊ10/100/1000M
[duplex half|full]\           //ÉèÖÃÍø¿Ú°ë/ȫ˫¹¤
[autoneg on|off]\            //ÉèÖÃÍø¿ÚÊÇ·ñ×ÔЭÉÌ
[port tp|aui|bnc|mii]\         //ÉèÖÃÍø¿ÚÀàÐÍ
[phyad N]\                
[xcvr internal|exteral]\
[wol p|u|m|b|a|g|s|d...]\
[sopass xx:yy:zz:aa:bb:cc]\
[msglvl N]
¾ÙÀý£º
1£©[root@linux /]# ethtool eth1
   Settings for eth1:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
            


Ïà¹ØÎĵµ£º

linux ³£ÓõĻù±¾ÏµÍ³Êý¾ÝÀàÐÍ

       caddr_t //ºËÐĵØÖ·
clock_t //ʱÖӵδð¼ÆÊýÆ÷
compt_t //ѹËõµÄʱÖӵδð
dev_t //É豸ºÅ£¨Ö÷ºÍ´Î£©
fd_set //ÎļþÃèÊö·û¼¯
fpos_t //ÎļþλÖÃ
gid_t //ÊýÖµ×éID
ino_t //i½Úµã±àºÅ
mode_t //ÎļþÀ ......

Linuxϵͳµ÷ÓÅ

1£¬ÏÔÖøÓ°ÏìϵͳÐÔÄܵÄ4ÖÖ×ÊÔ´
(1),CPUʱ¼ä
(2),ÄÚ´æ
(3),Ó²ÅÌI/O
(4),ÍøÂçI/O
2£¬·ÖÎöCPUʹÓÃÇé¿ö
ʹÓÃvmstat²É¼¯CPUµÄÐÔÄÜÆ¿¾±
[root@local]# vmstat 2
procs -----------memory----------      ---swap--           -----io-- ......

Linux ubuntuÉèÖÃrootÃÜÂë

Ubuntu 7.10
ÔÚ°²×°Ê±£¬Ã»ÓÐÉèÖÃrootÃÜÂ룬ËùÒÔÕâ¾Í±ØÐëÔÚ°²×°Íê³ÉºóÉèÖà ÃüÁîÈçÏ£º
$ sudo passwd root
ÊäÈëÄãÏ£ÍûµÄrootÓû§µÄÃÜÂë
ÆäËüÃüÁ
Ò»¡¢°²×°Grub
$ grub
$ find /boot/grub/stage1
(hd0,*)
$ root (hd0,*)
$ setup (hd0,*)
$ quit
$ sudo dd if=/de ......

LinuxÍøÂç±à³Ì ¿Í»§¶ËÓë·þÎñÆ÷¶ËÒ첽ͨÐÅ

#include <sys/select.h>
#include <sys/time.h>
#include
<sys/types.h>
#include <unistd.h>
int select(int
nfds,fd_set *readfds,fd_set *writefds, fd_set *except fds,struct timeval
*timeout)
void FD_SET(int fd,fd_set *fdset)
void FD_CLR(int fd,fd_set
*fdset)
void F ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ