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

LinuxÄÚºËÇÀռʵÏÖ»úÖÆ·ÖÎö

LinuxÄÚºËÇÀռʵÏÖ»úÖÆ·ÖÎö
¡¾ÕªÒª¡¿±¾ÎÄÏê½âÁËLinuxÄÚºËÇÀռʵÏÖ»úÖÆ¡£Ê×ÏȽéÉÜÁËÄÚºËÇÀÕ¼ºÍÓû§ÇÀÕ¼µÄ¸ÅÄîºÍÇø±ð£¬½Ó×Å·ÖÎöÁ˲»¿ÉÇÀÕ¼Äں˵ÄÌص㼰ʵʱϵͳÖÐʵÏÖÄÚºËÇÀÕ¼µÄ±ØÒªÐÔ¡£È»ºó·ÖÎöÁ˽ûÖ¹ÄÚºËÇÀÕ¼µÄÇé¿öºÍÄÚºËÇÀÕ¼µÄʱ»ú£¬×îºó½éÉÜÁËʵÏÖÇÀÕ¼ÄÚºËËù×öµÄ¸Ä¶¯ÒÔ¼°ºÎʱÐèÒªÖØе÷¶È¡£
¡¾¹Ø¼ü×Ö¡¿ÄÚºËÇÀÕ¼£¬Óû§ÇÀÕ¼£¬Öжϣ¬ ʵʱÐÔ£¬×ÔÐýËø£¬ÇÀռʱ»ú£¬µ÷¶Èʱ»ú£¬schedule£¬preempt count
1       ÄÚºËÇÀÕ¼¸ÅÊö
2.6еĿÉÇÀռʽÄÚºËÊÇÖ¸ÄÚºËÇÀÕ¼£¬¼´µ±½ø³ÌλÓÚÄں˿ռäʱ£¬ÓÐÒ»¸ö¸ü¸ßÓÅÏȼ¶µÄÈÎÎñ³öÏÖʱ£¬Èç¹ûµ±Ç°ÄÚºËÔÊÐíÇÀÕ¼£¬Ôò¿ÉÒÔ½«µ±Ç°ÈÎÎñ¹ÒÆð£¬Ö´ÐÐÓÅÏȼ¶¸ü¸ßµÄ½ø³Ì¡£
ÔÚ2.5.4°æ±¾Ö®Ç°£¬LinuxÄÚºËÊDz»¿ÉÇÀÕ¼µÄ£¬¸ßÓÅÏȼ¶µÄ½ø³Ì²»ÄÜÖÐÖ¹ÕýÔÚÄÚºËÖÐÔËÐеĵÍÓÅÏȼ¶µÄ½ø³Ì¶øÇÀÕ¼CPUÔËÐС£½ø³ÌÒ»µ©´¦ÓÚºËÐÄ̬(ÀýÈçÓû§½ø³ÌÖ´ÐÐϵͳµ÷ÓÃ)£¬Ôò³ý·Ç½ø³Ì×ÔÔ¸·ÅÆúCPU£¬·ñÔò¸Ã½ø³Ì½«Ò»Ö±ÔËÐÐÏÂÈ¥£¬Ö±ÖÁÍê³É»òÍ˳öÄںˡ£Óë´ËÏà·´£¬Ò»¸ö¿ÉÇÀÕ¼µÄLinuxÄں˿ÉÒÔÈÃLinuxÄÚºËÈçͬÓû§¿Õ¼äÒ»ÑùÔÊÐí±»ÇÀÕ¼¡£µ±Ò»¸ö¸ßÓÅÏȼ¶µÄ½ø³Ìµ½´ïʱ£¬²»¹Üµ±Ç°½ø³Ì´¦ÓÚÓû§Ì¬»¹ÊǺËÐÄ̬£¬Èç¹ûµ±Ç°ÔÊÐíÇÀÕ¼£¬¿ÉÇÀÕ¼Äں˵ÄLinux¶¼»áµ÷¶È¸ßÓÅÏȼ¶µÄ½ø³ÌÔËÐС£
2       Óû§ÇÀÕ¼
Äں˼´½«·µ»ØÓû§¿Õ¼äµÄʱºò£¬Èç¹ûneed resched±êÖ¾±»ÉèÖ㬻ᵼÖÂschedule()±»µ÷Ó㬴Ëʱ¾Í»á·¢ÉúÓû§ÇÀÕ¼¡£ÔÚÄں˷µ»ØÓû§¿Õ¼äµÄʱºò£¬ËüÖªµÀ×Ô¼ºÊÇ°²È«µÄ¡£ËùÒÔ£¬ÄÚºËÎÞÂÛÊÇÔÚ´ÓÖжϴ¦Àí³ÌÐò»¹ÊÇÔÚϵͳµ÷Óú󷵻أ¬¶¼»á¼ì²éneed resched±êÖ¾¡£Èç¹ûËü±»ÉèÖÃÁË£¬ÄÇô£¬Äں˻áÑ¡ÔñÒ»¸öÆäËû(¸üºÏÊʵÄ)½ø³ÌͶÈëÔËÐС£
¼ò¶øÑÔÖ®£¬Óû§ÇÀÕ¼ÔÚÒÔÏÂÇé¿öʱ²úÉú£º
´Óϵͳµ÷·µ»ØÓû§¿Õ¼ä¡£
´ÓÖжϴ¦Àí³ÌÐò·µ»ØÓû§¿Õ¼ä¡£
3       ²»¿ÉÇÀÕ¼Äں˵ÄÌصã
ÔÚ²»Ö§³ÖÄÚºËÇÀÕ¼µÄÄÚºËÖУ¬Äں˴úÂë¿ÉÒÔÒ»Ö±Ö´ÐУ¬µ½ËüÍê³ÉΪֹ¡£Ò²¾ÍÊÇ˵£¬µ÷¶È³ÌÐòûÓа취ÔÚÒ»¸öÄں˼¶µÄÈÎÎñÕýÔÚÖ´ÐеÄʱºòÖØе÷¶È—ÄÚºËÖеĸ÷ÈÎÎñÊÇЭ×÷·½Ê½µ÷¶ÈµÄ£¬²»¾ß±¸ÇÀÕ¼ÐÔ¡£Äں˴úÂëÒ»Ö±ÒªÖ´Ðе½Íê³É(·µ»ØÓû§¿Õ¼ä)»òÃ÷ÏÔµÄ×èÈûΪֹ¡£
ÔÚµ¥CPUÇé¿öÏ£¬ÕâÑùµÄÉ趨´ó´ó¼ò»¯ÁËÄں˵Äͬ²½ºÍ±£»¤»úÖÆ¡£¿ÉÒÔ·ÖÁ½²½¶Ô´Ë¼ÓÒÔ·ÖÎö£º
Ê×ÏÈ£¬²»¿¼Âǽø³ÌÔÚÄÚºËÖÐ×ÔÔ¸·ÅÆúCPUµÄÇé¿ö(Ò²¼´ÔÚÄÚºËÖв»·¢Éú½ø³ÌµÄÇл»)¡£Ò»¸ö½ø³ÌÒ»µ©½øÈëÄں˾ͽ«Ò»Ö±ÔËÐÐÏÂÈ¥£¬Ö±µ½Íê³É»òÍ˳öÄںˡ£ÔÚÆäûÓÐÍê³É»òÍ˳öÄÚºË֮ǰ£¬²»»áÓÐÁíÍâÒ»¸ö½ø³Ì½øÈëÄÚº


Ïà¹ØÎĵµ£º

Linuxϱà³Ì£¬¼¼ÊõÎĵµ£¬error code²éѯ·½·¨

ÓùßÁËWindowsƽ̨¿ª·¢¹¤¾ßµÄÈË£¬×ªµ½Linuxƽ̨ÉϿ϶¨ÓÐÒ»¸öÊÊÓ¦µÄ¹ý³Ì¡£
WindowsÏÂÃæÖ±½ÓʹÓÃVS20....µÈµÈ£¬ÅäºÏMSDNÎĵµ£¬¿ª·¢²éѯÇáËÉ×ÔÈç¡£
¶øLinuxƽ̨£¬ÓÉÓÚÖÖÀà·±¶àûÓÐÏñMSDNÕâÑùÈ«ÃæµÄ¼¼ÊõÎĵµ£¬¶ÔÓÚ¼¼Êõ×ÊÁϵIJéѯ¾ÍÒªÒÀ¿¿
[root@localhost]#MAN [º¯ÊýÃû]
µÄ·½Ê½À´²éѯ¡£´ó²¿·ÖµÄC++º¯Êýʱ¿ÉÒÔ²éѯµ½µÃ£¬µ«ÊÇ ......

ʹÓÃscpÔÚlinuxÖ÷»úÖ®¼äÎÞÃÜÂ븴ÖÆÎļþ/Ŀ¼


µ±Á½Ì¨LINUXÖ÷»úÖ®¼äÒª»¥´«Îļþʱ¿ÉʹÓÃSCPÃüÁîÀ´ÊµÏÖ£¬½¨Á¢ÐÅÈιØϵ֮ºó¿É²»ÊäÈëÃÜÂë¡£
°ÑÄãµÄ±¾µØÖ÷»úÓû§µÄssh¹«³×Îļþ¸´ÖƵ½Ô¶³ÌÖ÷»úÓû§µÄ~/.ssh/authorized_keysÎļþÖÐ
¼ÙÉè±¾µØÖ÷»úlinux100,Ô¶³ÌÖ÷»úlinux200
Ò»£¬ÔÚlinux100Ö÷»úÀïµÄÓû§
ÔËÐÐ
#ssh-keygen -t rsa
½á¹ûÈçÏÂ
QUOTE:
Generating public/priv ......

ǶÈëʽLinux²Ù×÷ϵͳѧϰ¹æ»®

ǶÈëʽLinux²Ù×÷ϵͳѧϰ¹æ»®
ARM+LINUX·Ïߣ¬Ö÷¹¥Ç¶ÈëʽLinux²Ù×÷ϵͳ¼°ÆäÉÏÓ¦ÓÃÈí¼þ¿ª·¢Ä¿±ê£º 
£¨1£© ÕÆÎÕÖ÷Á÷ǶÈëʽ΢´¦ÀíÆ÷µÄ½á¹¹ÓëÔ­Àí£¨³õ²½¶¨Îªarm9£© 
£¨2£© ±ØÐëÕÆÎÕÒ»¸öǶÈëʽ²Ù×÷ϵͳ £¨³õ²½¶¨Îªuclinux»òlinux,°æ±¾´ý¶¨£© 
£¨3£© ±ØÐëÊìϤǶÈëʽÈí¼þ¿ª·¢Á÷³Ì²¢ÖÁÉÙ×öÒ ......

linux ͳ¼Æµ±Ç°Ä¿Â¼ÏÂÎļþÊý

²é¿´µ±Ç°Ä¿Â¼ÏÂÎļþµÄ¸öÊý
 
ls -l | grep "^-" | wc -l
²é¿´µ±Ç°Ä¿Â¼ÏÂÎļþµÄ¸öÊý£¬°üÀ¨×ÓĿ¼ÀïµÄ¡£
ls -lR| grep "^-" | wc -l
²é¿´Ä³Ä¿Â¼ÏÂÎļþ¼Ð£¨Ä¿Â¼£©µÄ¸öÊý£¬°üÀ¨×ÓĿ¼ÀïµÄ¡£
ls -lR| grep "^d" | wc -l
¼òҪ˵Ã÷£º
ls -l
³¤ÁбíÊä³ö¸ÃĿ¼ÏÂÎļþÐÅÏ¢(×¢ÒâÕâÀïµÄÎļþ£¬²»Í¬ÓÚÒ»°ãµÄÎļþ£¬¿ÉÄÜÊÇÄ ......

LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö

 
À´×Ô£ºhttp://www.linuxsir.org/main/?q=node/137#1.2
ÕªÒª£º ±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ