linuxÎļÒϵͳÆô¶¯·ÖÎö
Ò»¡¢ÄÚºËÆô¶¯Íêºó£¬Ê×ÏÈÔËÐÐ/linuxrc
/linuxrc ÄÚÈÝ£º
#!/bin/sh
echo "mount /etc as ramfs" /*¹ÒÔØ/etcΪramfs */
#/bin/mount -n -t ramfs ramfs /etc /* ¼ÓÔØÒ»¸öramfs×÷Ϊ/etcĿ¼£¬/etc¾ÍÊÇÒ»¸ö¿ÉдĿ¼ */
#/bin/cp -a /mnt/etc/* /etc /* ½«ËùÓÐ/mnt/etc ÖеÄÅäÖÃÎļþ¿½±´µ½/etc ÖÐ */
echo "start proess init ...."
exec /sbin/init /* Ö´ÐиùÎļþϵͳÖÐµÄ initÖ´ÐгÌÐò */
Èç¹ûûÓÐ/linuxrc £¬ÏµÍ³Ä¬ÈÏÊ×ÏÈÔËÐÐ/sbin/init
¶þ¡¢´Ó/linuxrc ÖпÉÒÔ¿´µ½ÏµÍ³×îºóÔËÐÐÁË /sbin/init init»á¸ù¾Ý /etc/inittab À´ÔËÐÐ
inittabÎļþ¸ñʽ£º
identifier : run_level : action : &
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
¹¦ÄÜ£º
¼ÓÔØÖ¸¶¨µÄÎļþϵͳ¡£
Óï·¨£º
mount [-afFhnrvVw] [-L] [-o] [-t] [É豸Ãû] [¼ÓÔصã]
Ó÷¨ËµÃ÷£º
mount¿É½«Ö¸¶¨É豸ÖÐÖ¸¶¨µÄÎļþϵͳ¼ÓÔص½LinuxĿ¼Ï£¨Ò²¾ÍÊÇ×°Ôص㣩¡£¿É½«¾³£Ê¹ÓõÄÉ豸дÈë
Îļþ/etc/fastab,ÒÔʹϵͳÔÚÿ´ÎÆô¶¯Ê±×Ô¶¯¼ÓÔØ¡£mount¼ÓÔØÉ豸µÄÐÅÏ¢¼Ç¼ÔÚ/etc/mtabÎļþÖС£Ê¹ÓÃumountÃüÁîÐ ......
Ŀ¼ÏîºÍ³¬¼¶¿é£¬½ÚµãµÄ¸ÅÄͬ£¬ËüÔÚÉ豸ÉÏûÓжÔÓ¦µÄ´ÅÅÌÊý¾Ý½á¹¹¡£Ïà·´£¬ËüÊÇĿ¼ÎÄ ¼þµÄÒ»²¿·Ö¡£linuxÖÐĿ¼ҲÊÇÒ»ÖÖÎļþ£¬ÀàÐÍÊÇ'd'¡£µ«ÊÇĿ¼ÖеÄÄÚÈݺÍÆÕͨÎļþ²»Í¬£¬ËüÊÇÓÉĿ¼Ïî×é³ÉµÄ¡£×¢ÒâĿ¼Ïî²»ÊÇĿ¼¡£ÎÒÃǾ³£Ó÷¾¶Ãû Ö´ÐÐÏà¹Ø²Ù×÷£¬Ä¿Â¼Ïî¾ÍÊÇΪÁ˲éÕÒ·½±ãµÄ¡£
struct dirt_entry{
......
ÔÚlinuxÖÐgrepÃüÁîÊǷdz£ÓÐÓõÄ,ËüºÍ¹ÜµÀ(|)ÅäºÏʹÓÃ,·Ç³£Ç¿´ó,ÓÃÓÚËÑË÷Îı¾Îļþ.Èç¹ûÏëÒªÔÚ¼¸¸öÎı¾ÎļþÖвéÕÒÒ»×Ö·û´®£¬¿ÉÒÔʹÓÃ
‘grep’ÃüÁî¡£‘grep’ÔÚÎı¾ÖÐËÑË÷Ö¸¶¨µÄ×Ö·û´®¡£
¼ÙÉèÄúÕýÔÚ‘/usr/src/linux/Documentation’Ŀ¼ÏÂËÑË÷´ø×Ö·û´®‘magic’µÄÎļþ£º
$ gre ......