Linux±à³ÌÔý¼Ç
1.“/bin”¡¢“/sbin”¡¢“/usr/bin”¡¢“/usr/sbin”¡¢“/usr/local/bin”µÈ·¾¶ÒѾÔÚϵͳ»·¾³±äÁ¿ÖÐÁË£¬Èç¹û¿ÉÖ´ÐÐÎļþ ÔÚÕ⼸¸ö±ê׼λÖã¬ÔÚÖÕ¶ËÃüÁîÐÐÊäÈë¸ÃÈí¼þ¿ÉÖ´ÐÐÎļþµÄÎļþÃûºÍ²ÎÊý£¬»Ø³µ¼´¿É¡£
2.Èç¹û²»ÔÚ±ê׼λÖã¬ÎļþÃûÇ°ÃæÐèÒª¼ÓÉÏÍêÕûµÄ·¾¶¡£²»¹ýÿ´Î¶¼ÕâÑùÅܾÍÌ«Âé·³ÁË£¬Ò»¸ö“Ò»ÀÍÓÀÒÝ”µÄ°ì·¨ÊÇ°ÑÕâ¸ö·¾¶¼Ó Èë»·¾³±äÁ¿¡£ÃüÁî “PATH=$PATH:·¾¶”¿ÉÒÔ°ÑÕâ¸ö·¾¶¼ÓÈë»·¾³±äÁ¿£¬µ«ÊÇÍ˳öÕâ¸öÃüÁîÐоÍʧЧÁË¡£ÒªÏëÓÀ¾ÃÉúЧ£¬ÐèÒª°Ñ ÕâÐÐÌí¼Óµ½»·¾³±äÁ¿ÎļþÀï.“/etc/profile”¶Ô ϵͳÀïËùÓÐÓû§¶¼ÓÐЧ£¬Óû§Ö÷Ŀ¼Ïµē.bash_profile”Ö»¶ÔÕâ¸öÓû§ ÓÐЧ
3.°²×°ÔÂë³ÌÐòʱ£¬¶¼ÒªÖ´ÐÐÈý²½£º
1./configure ÓÃÀ´¼ì²âÄãµÄ°²×°Æ½Ì¨µÄÄ¿±êÌØÕ÷
2 make ´ÓMakefileÖжÁÈ¡Ö¸Áî,±àÒ빤³Ì
3 make install ´ÓMakefileÖжÁÈ¡Ö¸Áî°²×°µ½Ö¸¶¨µÄλÖÃ
4.SourceÃüÁîÒ²³ÆΪ“µãÃüÁ¬Ò²¾ÍÊÇÒ»¸öµã·ûºÅ£¨.£©¡£sourceÃüÁîͨ³£ÓÃÓÚÖØÐÂÖ´ÐÐ¸Õ Ð޸ĵijõʼ»¯Îļþ£¬Ê¹Ö®Á¢¼´ÉúЧ£¬¶ø²»±Ø×¢Ïú²¢ÖØеǼ¡£
Ó÷¨£ºsource filename »ò . filename
5.ÔÚlinuxÎļþÖÐ
.soΪ¹²Ïí¿â
.aΪ¾²Ì¬¿â
.laΪlibtool×Ô¶¯Éú³ÉµÄһЩ¹²Ïí¿â
¾²Ì¬¿âµÄ´úÂëÔÚ±àÒëʱ¾ÍÒÑÁ¬½Óµ½¿ª·¢ÈËÔ±¿ª·¢µÄÓ¦ÓóÌÐòÖУ¬¶ø¹²Ïí¿âÖ»ÊÇÔÚ³ÌÐò¿ªÊ¼ÔËÐÐʱ²ÅÔØÈ룬ÔÚ±àÒëʱ£¬Ö»ÊǼòµ¥µØÖ¸¶¨ÐèҪʹÓõĿ⺯Êý
6.linuxµÄ¿âÎļþµÄĿ¼Ϊ/lib /usr/lib
°üº¬ÎļþµÄĿ¼Ϊ/usr/include /usr/local/include
7.windows±à¼µÄÎļþµ½linuxÖпÉÄÜÐÐÄ©·û²»Æ¥Å䣬¿ÉÒÔÔÙviÖÐÓÃset fileformat=unix±£´æ
8.ÔÚlinuxÖÐʹÓÃprintf´òӡʱÐèÒª¼Ó»»Ðзû£¬·ñÔòÈÝÒ×±»Ìáʾ·ûÑڸǵô
9.ÔÚlinuxÖÐÈç¹ûʹÓõÄÍ·ÎļþÊÇ¿âµÄÍ·Îļþ£¬±àÒëʱ(gcc»òg++)²»ÐèҪдÉÏÈ¥
ʹÓ÷½·¨£ºÈôÔÚϵͳusr/includeĿ¼ÏÂÔòÓÃ< >°üº¬,È»ºóÔÚmakefileÀïΪ±àÒëÆ÷¼Ó-IÑ¡Ïî
10.¶ÔÓÚlinuxÖÐ.zipµÄÎļþ²ÉÓÃunzip½âѹ;.tar.gzµÄÎļþ²ÉÓÃtar -zxvf ½âѹ£¬²ÉÓÃtar -zcvfѹËõÎļþ¼Ð
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
ת×Ô£º http://www.diybl.com/course/6_system/linux/Linuxxl/20081124/152557.html
ºÃºÃѧϰ£¬ÌìÌìÏòÉÏ
ÒýÑÔ
¡¡¡¡ Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬ solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù ......
´ÓUbuntu 8.04µ½9.10£¬ÎÒµÄAcer Aspire 4920±¾×ÓµÄýÌå´¥Ãþ¿ØÖƼüʼÖÕ²»ÄÜÕý³£¹¤×÷¡£×î½üÕÒµ½ÁË´ËÎÊÌâµÄ½â¾ö·½·¨£¬¹©Ê¹ÓÃLinux²Ù×÷ϵͳ¼°ÓµÓÐAcer±Ê¼Ç±¾µÄÓû§²Î¿¼¡£ ÔÚUbuntu 9.10Ï£¬ÎÒµÄýÌå¿ØÖƼü±»Ê¶±ðΪÁíÒ»¿éSynaptics´¥Ãþ°å£¬²¢ÇÒËĸö¼ü·Ö±ð±»Ê¶±ðΪÉÏ¡¢Ï¡¢×ó¡¢ÓÒ·Ò³¼ü£¬µ¼ÖÂÎÞ·¨Õý³£¹¤×÷¡£ÐèҪͨ¹ýÐ޸İ´¼üÓ³Éä ......
¹¦ÄÜÃèÊö£º
»ñÈ¡»òÕßÉèÖÃ
Óëij¸öÌ×½Ó×Ö¹ØÁªµÄÑ¡ ÏѡÏî¿ÉÄÜ´æÔÚÓÚ¶à²ãÐÒé
ÖУ¬ËüÃÇ×Ü»á³öÏÖÔÚ×îÉÏÃæµÄÌ×½Ó×ֲ㡣µ±²Ù×÷Ì×½Ó×ÖÑ¡Ïîʱ£¬Ñ¡ÏîλÓڵIJãºÍÑ¡ÏîµÄÃû³Æ±ØÐë¸ø³ö¡£ÎªÁ˲Ù×÷Ì×½Ó×Ö²ãµÄÑ¡ÏӦ¸Ã ½«²ãµÄÖµÖ¸¶¨ÎªSOL_SOCKET¡£ÎªÁ˲Ù×÷ÆäËü²ãµÄÑ¡Ï¿ØÖÆÑ¡ÏîµÄºÏÊÊÐ ......
ÐéÄâ»úÏÂlinuxÉÏÍøÉèÖÃÖ¸ÄÏ
±¾ÎÄÒÔFedoraΪÀý£¬Àý¾Ù°²×°ÔÚÐéÄâ»úVmwareÏÂlinuxÏÂIPÉèÖõÄÎÊÌâ¡£
ÔÚÐéÄâ»úÏ£¬µã»÷£ºEthernet£¬ÈçÏÂͼ£º
³öÏÖÈç϶Ի°¿ò£º
&n ......