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

linux ³£ÓÃÃüÁî

 1,»ù±¾²Ù×÷
Ìí¼ÓÓû§
useradd
 
ɾ³ýÓû§
userdel
 
±ä¸üÃÜÂë
passwd username
 
 
 
 
²é¿´Ö´ÐÐÖнø³Ì
ps aux
ps auxf
ps
l  ³¤¸ñʽÊä³ö£»
u  °´Óû§ÃûºÍÆô¶¯Ê±¼äµÄ˳ÐòÀ´ÏÔʾ½ø³Ì£»
j  ÓÃÈÎÎñ¸ñʽÀ´ÏÔʾ½ø³Ì£»
f  ÓÃÊ÷ÐθñʽÀ´ÏÔʾ½ø³Ì£»
a  ÏÔʾËùÓÐÓû§µÄËùÓнø³Ì£¨°üÀ¨ÆäËüÓû§£©£»
x  ÏÔʾÎÞ¿ØÖÆÖն˵Ľø³Ì£»
r  ÏÔʾÔËÐÐÖеĽø³Ì£»
ww ±ÜÃâÏêϸ²ÎÊý±»½Ø¶Ï£»
ps f Ê÷ÐνṹÏÔʾ
½ø³ÌÒ»°ã·ÖΪ½»»¥½ø³Ì¡¢Åú´¦Àí½ø³ÌºÍÊØ»¤½ø³ÌÈýÀà¡£
STAT ½ø³Ì״̬
D    Uninterruptible sleep (usually IO)
R    ÕýÔÚÔËÐпÉÖÐÔÚ¶ÓÁÐÖпɹýÐеģ»
S    ´¦ÓÚÐÝÃß״̬£»
T    Í£Ö¹»ò±»×·×Ù£»
W    ½øÈëÄÚ´æ½»»»£¨´ÓÄÚºË2.6¿ªÊ¼ÎÞЧ£©£»
X    ËÀµôµÄ½ø³Ì£¨´ÓÀ´Ã»¼û¹ý£©£»
Z    ½©Ê¬½ø³Ì£»
<           ÓÅÏȼ¶¸ßµÄ½ø³Ì
N    ÓÅÏȼ¶½ÏµÍµÄ½ø³Ì
L    ÓÐЩҳ±»Ëø½øÄڴ棻
s    ½ø³ÌµÄÁìµ¼Õߣ¨ÔÚËüÖ®ÏÂÓÐ×Ó½ø³Ì£©£»
l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
+        λÓÚºǫ́µÄ½ø³Ì×飻
 
¼àÊÓ½ø³ÌÖ´ÐÐ״̬
top
-b  ÒÔÅúÁ¿Ä£Ê½ÔËÐУ¬µ«²»ÄܽÓÊÜÃüÁîÐÐÊäÈ룻
-c ÏÔʾÃüÁîÐУ¬¶ø²»½ö½öÊÇÃüÁîÃû£»
-d N  ÏÔʾÁ½´ÎË¢ÐÂʱ¼äµÄ¼ä¸ô£¬±ÈÈç -d 5£¬±íʾÁ½´Îˢмä¸ôΪ5Ã룻
-i ½ûÖ¹ÏÔʾ¿ÕÏнø³Ì»ò½©Ê¬½ø³Ì£»
-n NUM  ÏÔʾ¸üдÎÊý£¬È»ºóÍ˳ö¡£±ÈÈç -n 5£¬±íʾtop¸üÐÂ5´ÎÊý¾Ý¾ÍÍ˳ö£»
-p PID ½ö¼àÊÓÖ¸¶¨½ø³ÌµÄID£»PIDÊÇÒ»¸öÊýÖµ£»
-q  ²»¾­ÈκÎÑÓʱ¾ÍˢУ»
-s  °²È«Ä£Ê½ÔËÐУ¬½ûÓÃһЩЧ»¥Ö¸Á
-S ÀÛ»ýģʽ£¬Êä³öÿ¸ö½ø³ÌµÄ×ܵÄCPUʱ¼ä£¬°üÀ¨ÒÑËÀµÄ×Ó½ø³Ì£»
 


Ïà¹ØÎĵµ£º

linux socket¿ª·¢»ù´¡


 
 
¡¡¡¡ÕâÊǹØÓÚÈçºÎÓø÷ÖÖ¿ÉÒԵõ½µÄ½Ó¿ÚΪLinux¿ª·¢ÍøÂç³ÌÐòµÄϵÁÐÎÄÕµĵÚһƪ¡£¾ÍÏñ´ó¶àÊýUnix-basedµÄ²Ù×÷ϵͳһÑù£¬LinuxÖ§³Ö½«TCP/IP×÷Ϊ±¾µØµÄÍøÂç´«ÊäЭÒé¡£ÔÚÕâ¸öϵÁÐÖУ¬ÎÒÃǼٶ¨ÄãÒѾ­±È½ÏÊìϤLinuxÉϵÄC±à³ÌºÍLinuxµÄһЩϵͳ֪ʶÖîÈçsignals,forkingµÈµÈ¡£
¡¡¡¡ÕâƪÎÄÕÂÊǹØÓÚÈçºÎÓÃBSDÌ×½Ó¿ ......

Linux Socketѧϰ±Ê¼Ç£¨2£© SocketµÄ½éÉÜ

Socket ¾ÍÊÇÌ×½Ó×Ö¡£
Socket ¿ÉÒԺͱ¾µØĿ¼°ó¶¨£¬Ò²¿ÉÒÔºÍÒ»¸öIPµØÖ·°ó¶¨¡£
int socketpair(sa_family, socket_type, protocal,  int sz[2]);
sa_family: AF_LOCAL( ºÍ AF_UNIXÒ»Ñù) ±íʾ±¾µØµÄsocket Á¬½Ó
                 A ......

LinuxÖ¡»º³åÉ豸Çý¶¯³ÌÐò¿ò¼Ü¼°Í¼ÐνçÃæGUIµÄÒÆÖ²

Ó²¼þƽ̨
¡¡¡¡S3C2410XÊÇÈýÐǹ«Ë¾µÄ»ùÓÚARM920TµÄS3C2410XоƬ¡£S3C2410X¼¯³ÉÁËÒ»¸öLCD¿ØÖÆÆ÷(Ö§³ÖSTNºÍTFT´øÓд¥ÃþÆÁµÄÒº¾§ÏÔʾÆÁ)¡¢SDRAM¡¢´¥ÃþÆÁ¡¢USB¡¢SPI¡¢SDºÍMMCµÈ¿ØÖÆÆ÷£¬4¸ö¾ßÓÐPWM¹¦ÄܵļÆʱÆ÷ºÍ1¸öÄÚ²¿Ê±ÖÓ£¬8ͨµÀµÄ10λADC£¬117λͨÓÃI/O¿ÚºÍ24λÍⲿÖжÏÔ´£¬8ͨµÀ10λAD¿ØÖÆÆ÷£¬´¦ÀíÆ÷¹¤×÷ƵÂÊ×î¸ß´ïµ½203MH ......

LinuxÖÐRouteÃüÁî

ÔÚÅäÖÃÍøÂçʱ£¬ÒªÎª»úÆ÷Ö¸¶¨½ÓÊÕÊý¾Ý°üʱ¸Ã°üÒª¾­¹ýµÄ·¾¶¡£ÔÚLinuxϵͳÖУ¬Ìṩһ¸öÃüÁîroute£¬Õâ¸öÃüÁî¿ÉÒÔΪifconfigÃüÁîÅäÖõÄÍø¿¨ÉèÖþ²Ì¬Â·ÓÉ¡£ÕâÖÖÉèÖù¤×÷ͨ³£ÔÚ/etc/rc.d/rc.inet1ÖÐÒýÈ룬ÔÚϵͳÒýµ¼Ê±½øÐС£
¡¡¡¡ÎÒÃÇͨ¹ý¼¸¸öÀý×ÓÀ´ËµÃ÷ÈçºÎʹÓÃrouteÃüÁî:
¡¡¡¡¡¡¡¡routeadd-net127.0.0.0
¡¡¡¡Õâ¸öÃüÁÏòÂ·Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ