linux ÃÜÂë»ØÏÔ
Ò»£¬Ð÷ÂÛ
1.¿ÎÌâ±³¾°
LinuxÏÂÓÐϵͳÌṩµÄgetpass()º¯Êý£¬¿ÉÓÉÓÚдµÄʱºòÌ«ÔçÁË£¬Ö»Ö§³Ö8λ×Ö·û£¬Í¬Ê±Óа²È«Òþ»¼£¨Òç³ö£¡£©£¬Linux³öÓÚ¶ÔÃÜÂëµÄ±£ÃÜ£¬ÊäÈëµÄ×Ö·ûÊDz»»áÏÔʾµ½ÆÁÄ»Éϵġ£Ôڵǽº¯ÊýºÍÃÜÂëÐ޸ĺ¯ÊýÄÚ¶¼Ã»ÓÐÌṩÃÜÂë»ØÏÔÌáʾ£¬µ«ÊÇ´ËÉè¼Æ¶ÔÓÚÒ»°ãµÄ×ÀÃ漶ӦÓõijõ¼¶Óû§´øÀ´ÁËÒ»¶¨µÄÂé·³£¬¶øÇÒ£¬Ã»ÓÐÈκÎÃÜÂëÒÅÍüÌáʾ¹¦ÄÜ£¬Ò»µ©ÒÅÍü£¬Ö»ÄÜÖØÉ裬×÷ΪÓû§¶¨Öƹ¦ÄÜ£¬ÈçºÎÔÚlinux cÏÂʵÏÖÃÜÂë»ØÏÔºÍÌáʾ¹¦ÄܵĵǼºÍÃÜÂëÐÞ¸ÄÄ£¿éÄØ¡£
2.²Î¿¼×ÊÁÏ
Linux±à³Ì¼¼ÊõÏê½â ¶Å»ª¡¡±àÖø ÈËÃñÓʵç³ö°æÉç
http://www.fanqiang.com
http://csdn.net/
¶þ£¬ÊµÏÖ¹ý³Ì
1.Ê×ÏÈ£¬ÎÒ±àдÁËÔÚwindows cϵÄÃÜÂë»ØÏԵĴúÂë
³ÌÐò1.c´úÂëÈçÏ£º
#include <stdio.h>
#include <conio.h>
#define TRUE 1
#define FALSE 0
#define MIN_INPUT 0x20
#define MAX_INPUT 0x7e
/*
* ËùÓй¦ÄÜÓд˺¯ÊýʵÏÖ£º
* pszPw £º ±£´æÃÜÂëµÄ»º³å
* iMaxSize £º×î´óµÄÃÜÂ볤¶È£¬¸Ã³¤¶È±ØÐëСÓÚ»º³åÇø´óС¡£
* ·µ»ØֵΪTRUEΪ³É¹¦»ñÈ¡ÃÜÂë¡£×ÜÊÇ·µ»ØTRUE
*/
int GetPassword(unsigned char* pszPw,int iMaxSize)
{
unsigned char ch;
int i=0;
int bIsEcho=TRUE;
//while( ! kbhit() && i<iMaxSize )
while( ( ch = (unsigned char)getch() ) && i < iMaxSize )
{
//ch = (unsigned char)getch();
bIsEcho=TRUE;
if ( ch == 13)
{
pszPw[i++]=0;
break;
}
else if ( ch >= MIN_INPUT && ch <= MAX_INPUT) /*ËùÓпɴòÓ¡×Ö·û*/
{
pszPw[i++]=ch;
}
else if ( ch == 8 && i> 0 ) /*Í˸ñ¼ü*/
{
pszPw[i--] = 0;
bIsEcho = FALSE;
putchar(
Ïà¹ØÎĵµ£º
È·¶¨Òª±¸·ÝµÄÄÚÈÝ
ÔÚ±¸·ÝºÍ»¹Ôϵͳʱ£¬Linux »ùÓÚÎļþµÄÐÔÖʳÉÁËÒ»¸ö¼«´óµÄÓŵ㡣ÔÚ Windows ϵͳÖУ¬×¢²á±íÓëϵͳÊǷdz£Ïà¹ØµÄ¡£ÅäÖúÍÈí¼þ°²×°²»½ö½öÊǽ«Îļþ·Åµ½ÏµÍ³ÉÏ¡£Òò´Ë£¬»¹Ôϵͳ¾ÍÐèÒªÓÐÄܹ»´¦Àí Windows ÕâÖÖÌØÐÔµÄÈí¼þ¡£ÔÚ Linux ÖУ¬Çé¿ö¾Í²»Ò»ÑùÁË¡£ÅäÖÃÎļþÊÇ»ùÓÚÎı¾µÄ£¬²¢ÇÒ³ýÁËÖ±½Ó´¦À ......
LinuxÈȲå°Î
from:
http://blog.chinaunix.net/u1/34190/showart_287894.html
½«¿ÉÒƶ¯É豸Á¬Èëϵͳʱ£¬ÏµÍ³µÄºǫ́ÖлáÒÀ´Î·¢ÉúÈçÏÂʼþ£º
l
Äں˼ì²âµ½ÐÂÓ²¼þ²åÈ룬Ȼºó·Ö±ð֪ͨ
hotplug
ºÍ
udev
¡£Ç°ÕßÓÃÀ´×°ÈëÏàÓ¦µÄÄÚºËÄ£¿é
(
Èç
usb-stora ......
GPIO£¨General Purpose Input/OutputµÄËõд£©¾ÍÊÇоƬµÄÒý½Å£¬Òý½ÅÊǿɱà³ÌµÄ¿É¶ÔÒý½ÅµÄ¹¤×÷ģʽ½øÐÐÉèÖãºÊäÈëģʽ(¼ì²âÊäÈëÐźÅ)£¬Êä³öģʽ(Êä³ö0»ò1)£¬¸ß×è״̬(³£ÓÃÓÚADת»»)£¬»¹ÓнûÖ¹»òÔÊÐíÉÏÄÚ²¿ÏÂÀµç×è(ÉÏÀ£º¹Ü½Åͨ¹ýµç×è½Ó¸ßµçƽ£¬ÏÂÀ£º¹Ü½Åͨ¹ýµç×è½ÓµØ£¬Ò²¿ÉÒÔÍⲿ½ÓÉÏÀ»òÏÂÀµç×è)£¬»¹ÓйܽŸ´Óõȹ¦ÄÜ£¬¼´ ......
Õâ½éÉܵÄLinuxË«Íø¿¨°ó¶¨ÊµÏÖ¾ÍÊÇʹÓÃÁ½¿éÍø¿¨ÐéÄâ³ÉΪһ¿éÍø¿¨£¬Õâ¸ö¾ÛºÏÆðÀ´µÄÉ豸¿´ÆðÀ´ÊÇÒ»¸öµ¥¶ÀµÄÒÔÌ«Íø½Ó¿ÚÉ豸£¬Í¨Ë׵㽲¾ÍÊÇÁ½¿éÍø¿¨¾ßÓÐÏàͬµÄIPµØÖ·¶ø²¢ÐÐÁ´½Ó¾ÛºÏ³ÉÒ»¸öÂß¼Á´Â·¹¤×÷¡£ÆäʵÕâÏî¼¼ÊõÔÚSunºÍCiscoÖÐÔçÒÑ´æÔÚ£¬±»³ÆΪTrunkingºÍEtherchannel ¼¼Êõ£¬ÔÚLinuxµÄ2.4.xµÄÄÚºËÖоͲÉÓÃÁËÕâÖÖ¼¼Êõ£¬±»³ÆΪ ......