²é¿´linuxϵͳλÊý·½·¨£¨32£¿64£¿£©
1.Ö±½Ó¿´¿´ÓÐûÓÐ/lib64ĿĿ¼µÄ·½·¨¡£64λµÄϵͳ»áÓÐ/lib64ºÍ/libÁ½¸öĿ¼£¬32λֻÓÐ/libÒ»¸ö¡£
2.getconf LONG_BIT
£¨32λµÄϵͳÖÐintÀàÐͺÍlongÀàÐÍÒ»°ã¶¼ÊÇ4×Ö½Ú£¬64λµÄϵͳÖÐintÀàÐÍ»¹ÊÇ4×ֽڵ쬵«ÊÇlongÒѱä³ÉÁË8×Ö½ÚinuxϵͳÖпÉÓÃ"getconf WORD_BIT"ºÍ"getconf LONG_BIT"»ñµÃwordºÍlongµÄλÊý¡£64λϵͳÖÐÓ¦¸Ã·Ö±ðµÃµ½32ºÍ64¡££©
Ïà¹ØÎĵµ£º
²Ù×÷ϵͳÔÀí¼°Æ½Ì¨¿ª·¢£¨MS Win32 / BSD
Unix / GNU Linux£©
×÷Õß alvin_lee @ 2006-04-30 09:51:05
ÏàÐÅ´ó¼Ò¶ÔLinux°²×°Ó¦¸ÃÊǼҳ£±ã·¹ÁË,¶ø´ó¶àÊý·¢ÐаæµÄ°æ±¾¸üÐÂÒ²·Ç³£¿ì¡£Èç¹û
²»Ïëÿ´Î°²×°Ð°汾µÄʱºò¶¼Òª¿ÌÅÌ»òÕß°²×°µ½VMWareÉϵϰ£¬ÄÇôÄã¿ÉÒÔ¿¼ÂÇʹÓÃU ......
1. Sed¼ò½é
sed ÊÇÒ»ÖÖÔÚÏß±à¼Æ÷£¬ËüÒ»´Î´¦ÀíÒ»ÐÐÄÚÈÝ¡£´¦Àíʱ£¬°Ñµ±Ç°´¦ÀíµÄÐд洢ÔÚÁÙʱ»º³åÇøÖУ¬³ÆÎª“ģʽ¿Õ¼ä”£¨pattern
space£©£¬½Ó×ÅÓÃsedÃüÁî´¦Àí»º³åÇøÖеÄÄÚÈÝ£¬´¦ÀíÍê³Éºó£¬°Ñ»º³åÇøµÄÄÚÈÝËÍÍùÆÁÄ»¡£½Ó×Å´¦ÀíÏÂÒ»ÐУ¬ÕâÑù²»¶ÏÖØ¸´£¬Ö±µ½Îļþĩβ¡£ÎļþÄÚÈݲ¢Ã»ÓÐ
¸Ä±ä£¬³ý·ÇÄãʹÓÃÖØ¶¨Ïò´æ´¢Ê ......
ÔÚLINUX»·¾³¿ª·¢Çý¶¯³ÌÐò£¬Ê×ÏÈҪ̽²âµ½ÐÂÓ²¼þ£¬½ÓÏÂÀ´¾ÍÊÇ¿ª·¢Çý¶¯³ÌÐò¡£
³£ÓÃÃüÁîÕûÀíÈçÏ£º
ÓÃÓ²¼þ¼ì²â³ÌÐòkuduz̽²âÐÂÓ²¼þ£ºservice kudzu start ( or restart)
²é¿´CPUÐÅÏ¢£ºcat /proc/cpuinfo
²é¿´°å¿¨ÐÅÏ¢£ºcat /proc/pci
²é¿´PCIÐÅÏ¢£ºlspci (Ïà±Ècat /proc/pci¸üÖ±¹Û£©
²é¿´ÄÚ´æÐÅÏ¢£ºcat /proc/meminfo
......
1.BIOS×Ô¼ì
¼ÆËã»úÔÚ½ÓͨµçÔ´Ö®ºóÊ×ÏȽøÐÐBIOS×Լ죬¼´ÎÒÃÇËù˵µÄpost(power on self test).×Ô¼ìÍê³Éºó£¬È»ºó¸ù¾ÝBIOSÖеÄÉèÖõÄÒýµ¼Ë³Ðò£¬´ÓÓ²ÅÌ¡¢¹âÅÌÒýµ¼£¬Í¨³£ÎÒÃÇʹÓÃÓ²ÅÌÀ´Òýµ¼ÏµÍ³¡£ÔÚÓ²Å̵ĵÚÒ»¸öÉÈÇø£¨0´ÅµÀ0ÖùÃæ1ÉÈÇø£©ÓÐÒ»¶Î´úÂë½Ð×öMBR£¨Master Boot Record.Ö÷Òýµ¼¼Ç¼£©£©£ ......
GPIO£¨General Purpose Input/OutputµÄËõд£©¾ÍÊÇоƬµÄÒý½Å£¬Òý½ÅÊǿɱà³ÌµÄ¿É¶ÔÒý½ÅµÄ¹¤×÷ģʽ½øÐÐÉèÖãºÊäÈëģʽ(¼ì²âÊäÈëÐźÅ)£¬Êä³öģʽ(Êä³ö0»ò1)£¬¸ß×è״̬(³£ÓÃÓÚADת»»)£¬»¹ÓнûÖ¹»òÔÊÐíÉÏÄÚ²¿ÏÂÀµç×è(ÉÏÀ£º¹Ü½Åͨ¹ýµç×è½Ó¸ßµçƽ£¬ÏÂÀ£º¹Ü½Åͨ¹ýµç×è½ÓµØ£¬Ò²¿ÉÒÔÍⲿ½ÓÉÏÀ»òÏÂÀµç×è)£¬»¹ÓйܽŸ´Óõȹ¦ÄÜ£¬¼´ ......