linux»·¾³±äÁ¿Îļþ
¹ØÓÚlinux»·¾³±äÁ¿Îļþ
µÚÒ»ÄÚÈÝ£º
etc/profile:´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ.
²¢´Ó/etc/profile.dĿ¼µÄÅäÖÃÎļþÖÐËѼ¯shellµÄÉèÖÃ.
/etc/bashrc:Ϊÿһ¸öÔËÐÐbash shellµÄÓû§Ö´ÐдËÎļþ.µ±bash shell±»´ò¿ªÊ±,¸ÃÎļþ±»¶ÁÈ¡.
µÚ¶þÄÚÈÝ£º
~/.bash_profile:ÿ¸öÓû§¶¼¿ÉʹÓøÃÎļþÊäÈëרÓÃÓÚ×Ô¼ºÊ¹ÓõÄshellÐÅÏ¢,µ±Óû§µÇ¼ʱ,¸Ã
Îļþ½ö½öÖ´ÐÐÒ»´Î!ĬÈÏÇé¿öÏÂ,ËûÉèÖÃһЩ»·¾³±äÁ¿,Ö´ÐÐÓû§µÄ.bashrcÎļþ.
~/.bashrc:¸ÃÎļþ°üº¬×¨ÓÃÓÚÄãµÄbash shellµÄbashÐÅÏ¢,µ±µÇ¼ʱÒÔ¼°Ã¿´Î´ò¿ªÐµÄshellʱ,¸Ã
¸ÃÎļþ±»¶ÁÈ¡.
~/.bash_profile Êǽ»»¥Ê½¡¢login ·½Ê½½øÈë bash ÔËÐеÄ
~/.bashrc Êǽ»»¥Ê½ non-login ·½Ê½½øÈë bash ÔËÐеÄ
ͨ³£¶þÕßÉèÖôóÖÂÏàͬ£¬ËùÒÔͨ³£Ç°Õß»áµ÷ÓúóÕß¡£
/etc/profileÖÐÉ趨µÄ±äÁ¿(È«¾Ö)µÄ¿ÉÒÔ×÷ÓÃÓÚÈκÎÓû§,¶ø
~/.bashrcµÈÖÐÉ趨µÄ±äÁ¿(¾Ö²¿)Ö»Äܼ̳Ð/etc/profileÖеıäÁ¿,ËûÃÇÊÇ\"¸¸×Ó\"¹Øϵ.
µÚÈýÄÚÈÝ£º
~/.bash_logout:µ±Ã¿´ÎÍ˳öϵͳ(Í˳öbash shell)ʱ,Ö´ÐиÃÎļþ.
ִɨ˳Ðò×ܽ᣺
/etc/profile------ ~/.bash_profile£¨ ~/.bash_login»ò ~/.profile£¨linux°æ±¾¶ø¶¨£©£©-------~/.bashrc------/etc/bashrc------ ~/.bash_logout
--------------------------------------------------------------------------------
¾ßÌå
ÔڵǼLinuxʱҪִÐÐÎļþµÄ¹ý³ÌÈçÏ£º
ÔڸյǼLinuxʱ£¬Ê×ÏÈÆô¶¯ /etc/profile Îļþ£¬È»ºóÔÙÆô¶¯Óû§Ä¿Â¼Ï嵀 ~/.bash_profile¡¢ ~/.bash_login»ò ~/.profileÎļþÖеÄÆäÖÐÒ»¸ö(¸ù¾Ý²»Í¬µÄlinux²Ù×÷ϵͳµÄ²»Í¬£¬ÃüÃû²»Ò»Ñù)£¬
Ö´ÐеÄ˳ÐòΪ£º~/.bash_profile¡¢ ~/.bash_login¡¢ ~/.profile¡£
Èç¹û ~/.bash_profileÎļþ´æÔڵĻ°£¬Ò»°ã»¹»áÖ´ÐÐ ~/.bashrcÎļþ¡£
~/.bash_profileÎļþÖÐÒ»°ã»áÓÐÏÂÃæµÄ´úÂ룺
if [ -f ~/.bashrc ] ; then
. ./bashrc
fi
~/.bashrcÖУ¬Ò»°ã»¹»áÓÐÒÔÏ´úÂ룺
if [ -f /etc/bashrc ] ; then
. /bashrc
fi
ËùÒÔ£¬~/.bashrc»áµ÷Óà /etc/bashrcÎļþ¡£×îºó£¬ÔÚÍ˳öshellʱ£¬»¹»áÖ´ÐÐ ~/.bash_logoutÎļþ¡£
Ö´ÐÐ˳ÐòΪ£º/etc/profile -> (~/.bash_profile | ~/.bash_login | ~/.profile) -> ~/.bashrc -> /etc/bashrc -> ~/.bash_logout
¹ØÓÚ¸÷¸öÎļþµÄ×÷ÓÃÓò£¬ÔÚÍøÉÏÕÒµ½ÁËÒÔÏÂ˵Ã÷£º
£¨1£©/etc/profile£º ´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ. ²
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
1. ²é¿´Äں˰汾ÃüÁ
¡¡¡¡1) [root@q1test01 ~]# cat /proc/version
¡¡¡¡ Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005
¡¡¡¡2) [root@q1test01 ~]# uname -a
¡¡¡¡Linux q1test0 ......
ת×Ô£º http://www.diybl.com/course/6_system/linux/Linuxxl/20081124/152557.html
ºÃºÃѧϰ£¬ÌìÌìÏòÉÏ
ÒýÑÔ
¡¡¡¡ Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬ solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù ......
ÏîÄ¿Öг£Óöµ½ÐèÒª¶ÔÄ¿Ç°ÔËÐеÄϵͳ½øÐÐЧÂÊ·ÖÎö£¬»òÅöµ½¿Í»§×ÉѯÈçºÎÓÅ»¯ÏµÍ³µÄЧÂÊÎÊÌâ¡£¸ü¶àµÄÇé¿öÊÇ£¬ÔÚϵͳ³öÏÖÎÊÌâµÄʱºò£¬ÐèÒª·ÖÎöÔÒò£¬¶¨Î»ÏµÍ³ ¹ÊÕÏ»òÆ¿¾±£¬µ±È»£¬×îºÃÊÇ¿ÉÒÔÒ»²¢½â¾ö¹ÊÕÏ¡£µ«Êµ¼ÊÉÏ£¬²Ù×÷ϵͳÓÅ»¯ÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÎÊÌ⣬¿öÇÒlinuxÓÐ×Ô¼ºÒ»Ì×ÓбðÓÚÆäËû²Ù×÷ϵͳ¹ÜÀíµÄ»úÖÆ£¬ÓÉ´Ë »áÒýÆðºÜ¶à²»±ØÒ ......