¹Ø±ÕLinux²Ù×÷ϵͳ¿ØÖÆ̨Ï·äÃùÉùµÄ·½·¨
ÏÖÏó˵Ã÷£º
ʹÓÃLinux¿ØÖÆ̨½øÐÐһЩ²Ù×÷£¬ÓÐʱ»áͨ¹ýTab¼ü²¹È«ÃüÁҲÓÐʱͨ¹ýBackspaceɾ³ý×Ö·ûµÈµÈ²Ù×÷£¬ÕâʱÈç¹û³öÏÖ´íÎó£¬ÏµÍ³»á·¢³ö“µÎµÎ”µÄÏìÉù£¬ºÜ´Ì¶ú£»
½â¾ö·½·¨£º
1. ÔÚÃüÁîÐÐÏÂÊäÈë xset b off
£¬¿ÉÒÔÁÙʱȥµô´íÎóÌáʾÉùÒô£¬µ«Ï´ÎÖØÆôºóÒÀ¾É»áÓУ»
2. °ÑÃüÁî
xset b off
·ÅÔÚ startx µÄÅäÖÃÎļþ $HOME/.xinitrc ÖУ¬¿ÉÒÔÓÀ¾Ã½â¾ö£»
3. ÔÚÃüÁîÐÐÏÂÊäÈë setterm -blength 0
£¬¿ÉÒÔÁÙʱȥµô´íÎóÌáʾÉùÒô£¬µ«Ï´ÎÖØÆôºóÒÀ¾É»áÓУ»
4. °ÑÃüÁî
setterm -blength 0
·ÅÔڵǽ shell µÄÅäÖÃÎļþÖУ¬ÀýÈç
Bash µÄ .bash_profile£¬¿ÉÒÔÓÀ¾Ã½â¾ö£»
5. ½«ÃüÁî setterm -blength 0
ÃüÁî¼ÓÈë/etc/bashrc
ÎļþÖУ¬¿ÉÒÔÓÀ¾ÃÈ¥µô´íÎóÌáʾÉùÒô£»
6. ÔÚ/etc/inputrc ÎļþÖУ¬½«set bell-style none
Ç°µÄ££È¥µô£¬½«set bell-style visible
Ç°µÄ#È¥µô£¬Èç¹ûûÓÐÔòÌí¼Ó£»
²¹³äÐÅÏ¢£º
1. /etc/inputrc ÖÐµÄ set bell-style none Ö»ÊÇÕë¶ÔTabµÄ´íÎó·¢Éù¶øÉèÖõģ»
# do not bell on tab-completion
# set bell-style none
2. setterm
-blength 0ºóÃæµÄÈ¡Öµ¿ÉÒÔÊÇ0-1000£¬´ú±íÉùÒô³¤¶È£»
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
LinuxÏÂCVS·þÎñÆ÷µÄ°²×°ÓëÅäÖÃ
1¡¢CVS·þÎñÆ÷µÄ°²×°
¡¡¡¡CVS·þÎñÆ÷°æ¿ÉÒÔ´ÓÍøÉϵĺܶàµØ·½ÏÂÔص½£¬Ò²¿ÉÒÔµ½CVSµÄ¹Ù·½ÍøÕ¾½øÐÐÏÂÔØ¡£¸ù¾ÝÄãËùʹÓõÄϵͳ£¬ÏÂÔØÏàÓ¦µÄ°æ±¾£¬È»ºó½øÐа²×°¡£ÒòΪµ±Ç°´ó²¿·ÖÈËÊÇÔÚLinuxÏÂʹÓÃCVS·þÎñÆ÷½øÐа汾¹ÜÀí£¬²¢ÇÒRedhat LinuxÊÇÄ¿Ç°×îÁ÷ÐеÄÒ»¸öLinux·¢ÐаæÖ®Ò»£¬ËùÒÔ±¾ÎĽ«Ö÷Òª»ùÓÚRe ......
Íز¨±ü³Ð²»¶Ï¿ªÍؽøÈ¡µÄ¾«Éñ£¬ÔÚ¼¼ÊõÑз¢ºÍÖ§³ÖÉϲ»¶ÏµÄͶÈëÈËÁ¦ÎïÁ¦£¬Á¦ÇóÔÚ²»¶Ï±ä»¯µÄÊг¡ÐèÇóÖУ¬´ïµ½100%µÄ¿Í»§ÂúÒâ¶È¡£ÔÚ¸Õ¸Õ̤Èë2010Ä꣬¸ù¾Ý¹ýÍùµÄÊг¡µ÷²é£¬½áºÏ¿Í»§µÄÐèÇóºÍ½¨Ò飬Íز¨ÓʼþϵͳÍƳöÁËLinux_°²ÌÚ°æ±¾£¬×÷ΪдºË͸ø¹ã´ó¿Í»§µÄµÚÒ»·ÝÀñÎï¡£
°²ÌÚ´¦ÀíÆ÷ÊÇ×î½üÊ®Äê²ÅÖð½¥·¢Õ¹ÆðÀ´µ ......
1.1.5 ShellÃüÁîºÍÁ÷³Ì¿ØÖÆ
ÔÚshell½Å±¾ÖпÉÒÔʹÓÃÈýÀàÃüÁ
1)Unix ÃüÁî:
ËäÈ»ÔÚshell½Å±¾ÖпÉÒÔʹÓÃÈÎÒâµÄunixÃüÁµ«ÊÇ»¹ÊÇÓÉһЩÏà¶Ô¸ü³£ÓõÄÃüÁî¡£ÕâЩÃüÁîͨ³£ÊÇÓÃÀ´½øÐÐÎļþºÍÎÄ×Ö²Ù×÷µÄ¡£
³£ÓÃÃüÁîÓï·¨¼°¹¦ÄÜ
echo "some text": ½«ÎÄ×ÖÄÚÈÝ´òÓ¡ÔÚÆÁÄ»ÉÏ
ls: ÎļþÁбí
wc –l filewc -w filewc -c fi ......
3) Á÷³Ì¿ØÖÆ
1.if
"if" ±í´ïʽ Èç¹ûÌõ¼þΪÕæÔòÖ´ÐÐthenºóÃæµÄ²¿·Ö£º
if ....; then
....
elif ....; then
....
else
....
fi
´ó¶àÊýÇé¿öÏ£¬¿ÉÒÔʹÓòâÊÔÃüÁîÀ´¶ÔÌõ¼þ½øÐвâÊÔ¡£±ÈÈç¿ÉÒԱȽÏ×Ö·û´®¡¢ÅжÏÎļþÊÇ·ñ´æÔÚ¼°ÊÇ·ñ¿É¶ÁµÈµÈ…
ͨ³£ÓÃ" [ ] "À´±íʾÌõ¼þ²âÊÔ¡£×¢ÒâÕâÀïµÄ¿Õ¸ñºÜÖØÒª¡£ÒªÈ·±£· ......