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

Linuxϲ鿴CPUʹÓÃÂÊ!ϵͳ×ÊԴʹÓÃÇé¿ö£¡

topÃüÁîÊÇLinuxϳ£ÓõÄÐÔÄÜ·ÖÎö¹¤¾ß£¬Äܹ»ÊµÊ±ÏÔʾϵͳÖи÷¸ö½ø³ÌµÄ×ÊÔ´Õ¼ÓÃ×´¿ö£¬ÀàËÆÓÚWindowsµÄÈÎÎñ¹ÜÀíÆ÷¡£ÏÂÃæÏêϸ½éÉÜËüµÄʹÓ÷½·¨¡£ top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48
Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3% us, 1.0% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 191272k total, 173656k used, 17616k free, 22052k buffers
Swap: 192772k total, 0k used, 192772k free, 123988k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1379 root 16 0 7976 2456 1980 S 0.7 1.3 0:11.03 sshd
14704 root 16 0 2128 980 796 R 0.7 0.5 0:02.72 top
1 root 16 0 1992 632 544 S 0.0 0.3 0:00.90 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 ͳ¼ÆÐÅÏ¢Çø
Ç°ÎåÐÐÊÇϵͳÕûÌåµÄͳ¼ÆÐÅÏ¢¡£µÚÒ»ÐÐÊÇÈÎÎñ¶ÓÁÐÐÅÏ¢£¬Í¬ uptime ÃüÁîµÄÖ´Ðнá¹û¡£ÆäÄÚÈÝÈçÏ£º 01:06:48 µ±Ç°Ê±¼ä
up 1:22 ϵͳÔËÐÐʱ¼ä£¬¸ñʽΪʱ:·Ö
1 user µ±Ç°µÇ¼Óû§Êý
load average: 0.06, 0.60, 0.48 ϵͳ¸ºÔØ£¬¼´ÈÎÎñ¶ÓÁеÄƽ¾ù³¤¶È¡£
Èý¸öÊýÖµ·Ö±ðΪ 1·ÖÖÓ¡¢5·ÖÖÓ¡¢15·ÖÖÓÇ°µ½ÏÖÔÚµÄƽ¾ùÖµ¡£ µÚ¶þ¡¢ÈýÐÐΪ½ø³ÌºÍCPUµÄÐÅÏ¢¡£µ±Óжà¸öCPUʱ£¬ÕâЩÄÚÈÝ¿ÉÄܻᳬ¹ýÁ½ÐС£ÄÚÈÝÈçÏ£º Tasks: 29 total ½ø³Ì×ÜÊý
1 running ÕýÔÚÔËÐеĽø³ÌÊý
28 sleeping ˯ÃߵĽø³ÌÊý
0 stopped Í£Ö¹µÄ½ø³ÌÊý
0 zombie ½©Ê¬½ø³ÌÊý
Cpu(s): 0.3% us Óû§¿Õ¼äÕ¼ÓÃCPU°Ù·Ö±È
1.0% sy Äں˿ռäÕ¼ÓÃCPU°Ù·Ö±È
0.0% ni Óû§½ø³Ì¿Õ¼äÄڸıä¹ýÓÅÏȼ¶µÄ½ø³ÌÕ¼ÓÃCPU°Ù·Ö±È
98.7% id ¿ÕÏÐCPU°Ù·Ö±È
0.0% wa µÈ´ýÊäÈëÊä³öµÄCPUʱ¼ä°Ù·Ö±È
0.0% hi
0.0% si ×îºóÁ½ÐÐΪÄÚ´æÐÅÏ¢¡£ÄÚÈÝÈçÏ£º Mem: 191272k total ÎïÀíÄÚ´æ×ÜÁ¿
173656k used ʹÓõÄÎïÀíÄÚ´æ×ÜÁ¿
17616k free ¿ÕÏÐÄÚ´æ×ÜÁ¿
22052k buffers ÓÃ×÷Äں˻º´æµÄÄÚ´æÁ¿
Swap: 192772k total ½»»»Çø×ÜÁ¿
0k used ʹÓõĽ»»»Çø×ÜÁ¿
192772k free ¿ÕÏн»»»Çø×ÜÁ¿
123988k cached »º³åµÄ½»»»Çø×ÜÁ¿¡£
ÄÚ´æÖеÄÄÚÈݱ»»»³öµ½½»»»Çø£¬¶øºóÓÖ±»»»Èëµ½Äڴ棬µ«Ê¹ÓùýµÄ½»»»ÇøÉÐδ±»¸²¸Ç£¬
¸ÃÊýÖµ¼´ÎªÕâЩÄÚÈÝÒÑ´æÔÚÓÚÄÚ´æÖеĽ»»»Ç


Ïà¹ØÎĵµ£º

ѧϰlinuxµÄ¿àÄÕ

       ½Ó´¥LinuxÒ²ÊǺܾõÄÊÂÇéÁË£¬²»¹ý×ÔÎҸоõÈ´´ÓÀ´Ã»Óнҿª¹ýËüµÄÕæÃæÉ´¡£´ÓÎÒ¹¤×÷ÒÔÀ´µ½ÏÖÔÚ£¬¼¸ºõ×Ü»áÓõ½linux»òÔÚlinuxϵͳÉϽøÐй¤×÷£¬Ò²Ò»Ö±Ïë°Ñlinux¸ã¶®¡£µ«ÊÇ£¬ÓÉÓÚ×ܸоõLinuxµÄÅÓ´ó£¬Ó¢ÎÄ×ÊÁÏÄÑÒÔÔĶÁ£¬¼ÓÉÏ×ÔÉí·Ç³£µÄÀÁÉ¢£¬Òò´Ë¼¸´Î϶¨¾öÐÄ£¬×îÖÕ»¹ÊDz»ÁËÁËÖ®°É¡£ ......

LinuxÏ´´½¨Óë½âѹzip, tar, tar.gzºÍtar.bz2Îļþ


ÔÚLinuxÏÂÃæȥѹËõÎļþ»òÕßĿ¼¡£ÎÒÃǽ«Ñ§Ï°zip, tar, tar.gzºÍtar.bz2µÈѹËõ¸ñʽµÄ»ù±¾Ó÷¨¡£
zip¸ñʽÒѳÉΪѹËõÎļþµÄ±ê׼ѡÔñ£¬¶øÇÒËüÔÚwindowsÉÏÒ²ÄÜʹÓá£
¾­³£ÓÃzip¸ñʽѹËõÄÇЩÐèÒª¹²Ïí¸øwindowsÓû§µÄÎļþ¡£
Èç¹ûÖ»Êǹ²Ïí¸ølinuxÓû§»òÕßMacÓû§£¬Æ«ÏòÓÚÑ¡Ôñtar.gz¸ñʽ¡£
ZIP
zip¿ÉÄÜÊÇĿǰʹÓõÃ×î¶àµÄÎĵµ ......

linux tcʵÏÖipÁ÷Á¿ÏÞÖÆ

tcÊǸöÅäÖÃLinuxÄÚºËÁ÷Á¿¿ØÖƵŤ¾ß Ãû×Ö tc - ÏÔʾ£¯Î¬»¤Á÷Á¿¿ØÖÆÅäÖà ժҪ tc qdisc [ add | change | replace | link ] dev DEV [ parent qdisc-id | root ] [ handle qdisc-id ] qdisc [ qdisc specific parameters ] tc class [ add | change | replace ] dev DEV parent qdisc-id [ classid class-id ] qd ......

linux Òþʽµ÷Óà ×Ô¼ºÐ´µÄ¶¯Ì¬¿â

~/test
|
|
|------main.c
|------lib
|        |
|        |------StringLen.h
|        |------Strlen.c
|        |------Strnlen.c
----------------StringLen.h:
#ifndef _STRING ......

linux socketѧϰ±Ê¼Ç£¨µÚ¶þÕ£©


ÓòºÍµØÖ·×å
    ÓÐÒ»¸öºÜÇ¡µ±µÄ±ÈÓ÷˵Ã÷Ì×½Ó¿Ú±à³Ì£¬Ì׽ӿھͺñȵ绰£¬¶øµç»°ÍøÖеĵ绰ºÅÂë¾ÍºÃÏñÌ×½Ó¿ÚµØÖ·¡£ËµÃ÷Ì×½Ó¿Ú¿ÉÒÔÓÃÌض¨µÄµØÖ·À´±êʾ×Ô¼º¡£²¢²»ÊÇËùÓеÄÌ×½Ó¿Ú¶¼ÐèÒªµØÖ·£¬±ÈÈçÎÞÃûÌ׽ӿھͲ»ÐèÒªµØÖ·£¬ÀýÈ纯Êýsocketpair(2)¾ÍÉú³ÉÁËÒ»¶Ô»¥Ïà¿ÉÒÔÁ¬½Óµ«ÊÇȴûÓеØÖ·µÄÌ×½Ó¿Ú¡£ÊéÖбÈÓ÷˵¾Í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ