Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux³£ÓÃÎļþϵͳ¸ñʽ

       LinuxÆô¶¯Ê±£¬µÚÒ»¸ö±ØÐë¹ÒÔصÄÊǸùÎļþϵͳ£»Èôϵͳ²»ÄÜ´ÓÖ¸¶¨É豸ÉϹÒÔظùÎļþϵͳ£¬Ôòϵͳ»á³ö´í¶øÍ˳öÆô¶¯¡£Ö®ºó¿ÉÒÔ×Ô¶¯»òÊÖ¶¯¹ÒÔØÆäËûµÄÎļþϵͳ¡£Òò´Ë£¬Ò»¸öϵͳÖпÉÒÔͬʱ´æÔÚ²»Í¬µÄÎļþϵͳ¡£²»Í¬µÄÎļþϵͳÀàÐÍÓв»Í¬µÄÌص㣬Òò¶ø¸ù¾Ý´æ´¢É豸µÄÓ²¼þÌØÐÔ¡¢ÏµÍ³ÐèÇóµÈÓв»Í¬µÄÓ¦Óó¡ºÏ¡£ÔÚǶÈëʽLinuxÓ¦ÓÃÖУ¬Ö÷ÒªµÄ´æ´¢É豸ΪRAM(DRAM, SDRAM)ºÍROM(³£²ÉÓÃFLASH´æ´¢Æ÷)£¬³£ÓõĻùÓÚ´æ´¢É豸µÄÎļþϵͳÀàÐÍ°üÀ¨£ºjffs2, yaffs, cramfs, romfs, ramdisk, ramfs/tmpfsµÈ¡£
    1£¬»ùÓÚFLASHµÄÎļþϵͳ£ºÒ»°ãÇé¿öÏ£¬ÏòFlashдÈëÄÚÈÝʱ£¬ÐèÒªÏȲÁ³ý¶ÔÓ¦µÄ´æ´¢Çø¼ä£¨²Á³ý¸úдÈëÊÇ·Ö¿ªµÄ£©£¬ÕâÖÖ²Á³ýÊÇÒÔ¿é(block)Ϊµ¥Î»½øÐеġ£Òò´Ë£¬±ØÐëÕë¶ÔFlashµÄÓ²¼þÌØÐÔÉè¼Æ·ûºÏÓ¦ÓÃÒªÇóµÄÎļþϵͳ£»´«Í³µÄÎļþϵͳÈçext2µÈ£¬ÓÃ×÷FlashµÄÎļþϵͳ»áÓÐÖî¶à±×¶Ë¡£ÔÚǶÈëʽLinuxÏ£¬MTD(Memory Technology Device,´æ´¢¼¼ÊõÉ豸)Ϊµ×²ãÓ²¼þ(ÉÁ´æ)ºÍÉϲã(Îļþϵͳ)Ö®¼äÌṩһ¸öͳһµÄ³éÏó½Ó¿Ú£¬¼´FlashµÄÎļþϵͳ¶¼ÊÇ»ùÓÚMTDÇý¶¯²ãµÄ£¬Ê¹ÓÃMTDÇý¶¯³ÌÐòµÄÖ÷ÒªÓŵãÔÚÓÚËü¶ÔFlashÓиüºÃµÄÖ§³Ö¡¢¹ÜÀíºÍ»ùÓÚÉÈÇøµÄ²Á³ý¡¢¶Á/д²Ù×÷½Ó¿Ú¡£¸ñʽÓУº
        £¨1£©JFFS£¨Journalling Flash FileSystem£©Îļþϵͳ×îÔçÊÇÓÉÈðµäAxis Communications¹«Ë¾»ùÓÚLinux2.0µÄÄÚºËΪǶÈëʽϵͳ¿ª·¢µÄÎļþϵͳ¡£JFFS2ÊÇRedHat¹«Ë¾»ùÓÚJFFS¿ª·¢µÄÉÁ´æÎļþϵͳ£¬Ö÷ÒªÓÃÓÚNORÐÍÉÁ´æ£¬»ùÓÚMTDÇý¶¯²ã¡£
        £¨2£©yaffs/yaffs2£¨Yet Another Flash File System£©ÊÇרΪǶÈëʽϵͳʹÓÃNANDÐÍÉÁ´æ¶øÉè¼ÆµÄÒ»ÖÖÈÕÖ¾ÐÍÎļþϵͳ¡£Óëjffs2Ïà±È£¬Ëü¼õÉÙһЩ¹¦ÄÜ(ÀýÈç²»Ö§³ÖÊý¾ÝѹËõ)£¬ËùÒÔËٶȸü¿ì£¬¹ÒÔØʱ¼äºÜ¶Ì£¬¶ÔÄÚ´æµÄÕ¼ÓýÏС¡£
        £¨3£©ÆäËûÎļþϵͳ£ºfat/fat32Ò²¿ÉÓÃÓÚʵ¼ÊǶÈëʽϵͳµÄÀ©Õ¹´æ´¢Æ÷(ÀýÈçPDA, Smartphone, ÊýÂëÏà»úµÈµÄSD¿¨)£¬ÕâÖ÷ÒªÊÇΪÁ˸üºÃµÄÓë×îÁ÷ÐеÄWindows×ÀÃæ²Ù×÷ϵͳÏà¼æÈÝ¡£ext2Ò²¿ÉÒÔ×÷ΪǶÈëʽLinuxµÄÎļþϵͳ£¬²»¹ý½«ËüÓÃÓÚFLASHÉÁ´æ»áÓÐÖî¶à±×¶Ë¡£
    2£¬»ùÓÚRAMµÄÎļþϵͳ£º
         (1) RamdiskÊǽ«Ò»²¿·Ö¹Ì¶¨´óСµÄÄÚ´æµ±×÷·ÖÇøÀ´Ê¹Óá£Ëü²¢·ÇÒ»¸öʵ¼ÊµÄÎļþϵͳ£¬¶øÊÇÒ»ÖÖ½«Êµ¼ÊµÄÎļþϵͳװÈëÄÚ´æµÄ»úÖÆ£¬²¢Ç


Ïà¹ØÎĵµ£º

LinuxÏÂSquidµÄʹÓÃ

 [Ìù½Ì³Ì]LinuxÏÂSquidµÄʹÓÃ
×öΪÑÛÏÂ×îÁ÷ÐеIJÙ×÷ϵͳ£¬LinuxÒѾ­Ô½À´Ô½Êܵ½ÊÀÈ˵ĹØ×¢¡£ËäȻĿǰLinuxµÄÈí¼þ»¹²»ÊǺܷḻ£¬
Ìæ´úWINDOWS×÷ΪÆÕͨPC»ú²Ù×÷ϵͳ»¹ÎªÊ±¹ýÔ磬µ«ÊÇÔÚ·þÎñÆ÷ÁìÓò£¬LinuxµÄÎȶ¨ÐÔ£¬¿É²Ù×÷ÐÔ¾ö²»
ÊäÓÚÈκβÙ×÷ϵͳ£¬²¢ÇÒÒ²ÓÐÓÅÐãµÄÈí¼þÖ§³Ö¡£Squid¾ÍÊÇÆäÖÐÖ®Ò»¡£Linux¼ÓSquidµÄ×éºÏ×öÎ ......

linuxϱàÒë¶à¸öÎļþ

ÀýÈ磺
/home/filesÎļþ¼ÐÏÂÓÐÎļþmain.c:
#include <stdio.h>
#include "tou.h"
void main()
{
a();
}
/home/files/commonÎļþ¼ÐÏÂÓÐÎļþtou.hºÍshixian.c¡£
tou.hΪ£º
extern void a();
ÈôÓжà¸öshixianÎļþ£¬±ÈÈçshixian1.c, shixian2.c£¬¶¼¿ÉÒÔÔÚtou.hÖÐÓÃexternÉùÃ÷³öÀ´¡£
shixian.cΪ£º
#inclu ......

Linux ÏÂÌõ¼þ±äÁ¿

1.»¥³âËøµÄ´æÔÚÎÊÌ⣺
»¥³âËøÒ»¸öÃ÷ÏÔµÄȱµãÊÇËüÖ»ÓÐÁ½ÖÖ״̬£ºËø¶¨ºÍ·ÇËø¶¨¡£ÉèÏëÒ»ÖÖ¼òµ¥Çé¾°£º¶à¸öÏ̷߳ÃÎÊͬһ¸ö¹²Ïí×ÊԴʱ£¬²¢²»ÖªµÀºÎʱӦ¸ÃʹÓù²Ïí×ÊÔ´£¬Èç¹ûÔÚÁÙ½çÇøÀï¼ÓÈëÅжÏÓï¾ä£¬»òÕß¿ÉÒÔÓÐЧ£¬µ«Ò»À´Ð§Âʲ»¸ß£¬¶þÀ´¸´ÔÓ»·¾³Ï¾ÍÄÑÒÔ±àдÁË£¬ÕâÊÇÎÒÃÇÐèÒªÒ»¸ö½á¹¹£¬ÄÜÔÚÌõ¼þ³ÉÁ¢Ê±´¥·¢ÏàÓ¦Ị̈߳¬½øÐбäÁ¿ÐÞ¸Ä ......

Linux´´½¨Ò»¶¨´óСÎļþÃüÁî

ddÃüÁî
°ÑÖ¸¶¨µÄÊäÈëÎļþ¿½±´µ½Ö¸¶¨µÄÊä³öÎļþÖУ¬²¢ÇÒÔÚ¿½±´µÄ¹ý³ÌÖпÉÒÔ½øÐиñʽת»»¡£Óï·¨£º
CODE:[Copy to clipboard]dd ¡²Ñ¡Ï
QUOTE:
if =ÊäÈëÎļþ£¨»òÉ豸Ãû³Æ£©¡£
of =Êä³öÎļþ£¨»òÉ豸Ãû³Æ£©¡£
ibs = bytes Ò»´Î¶ÁÈ¡bytes×Ö½Ú£¬¼´¶ÁÈ뻺³åÇøµÄ×Ö½ÚÊý¡£
skip = blocks Ìø¹ý¶ÁÈ뻺³åÇø¿ªÍ·µÄibs*blo ......

xshellÁ¬½ÓlinuxÖÐÎÄÂÒÂë

ÍøÉϺܶàÌû×ÓÎÊxhellÁ¬½ÓlinuxÖÐÎÄÂÒÂ룬¾ø´ó²¿·ÖÊǽ«LANGÊôÐÔÖµÉèÖÃÓ¢ÎÄ£¬¼´export LANG=en_US.UTF-8;
µ«ÊÇÎÒÃǽ«ÏµÍ³ÉèÖÃΪÖÐÎÄ£¬µ±È»ÊÇÒòΪ×Ô¼ºÓÃÖÐÎÄ¿ÉÒÔÌá¸ßЧÂÊ£¬¼õÉÙ³ö´í¡£
ÕâÖÖ·½Ê½Ö»ÄÜÖα겻ÄÜÖα¾£¬Ï´ÎʹÓÃsshÁ¬linuxʱ»¹ÊÇ»áÂÒÂ룬
ÏÖÔÚ½«ÎÒ×Ô¼ºµÄ½â¾ö·½Ê½¹²Ïí¸ø´ó¼Ò¡£
±à¼­/etc/sysconfig/i18n
½«ÎļþÖе ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ