Linux ϵͳĿ¼½éÉÜ
/lib/
— °üº¬Ðí¶à±» /bin/ ºÍ /sbin/ ÖеijÌÐòʹÓõĿâÎļþ¡£Ä¿Â¼ /usr/lib/ Öк¬Óиü¶àÓÃÓÚÓû§³ÌÐòµÄ¿âÎļþ¡£
/libĿ¼Ï·ÅÖõÄÊÇ/binºÍ/sbinĿ¼Ï³ÌÐòËùÐèµÄ¿âÎļþ¡£/libĿ¼ÏµÄÎļþµÄÃû³Æ×ñÑÏÂÃæµÄ¸ñʽ£º
libc.so.*
ld*
½ö½ö±»/usrĿ¼ÏµijÌÐòËùʹÓõĹ²Ïí¿â²»±Ø·Åµ½/libĿ¼Ï¡£Ö»ÓÐ/binºÍ/sbinϵijÌÐòËùÐèÒªµÄ¿âÓбØÒª·Åµ½/libĿ¼Ï¡£Êµ¼ÊÉÏ£¬libm.so.*ÀàÐ͵ĿâÎļþÈç¹û±»ÊÇ/binºÍ/sbinËùÐèÒªµÄ£¬Ò²¿ÉÒԷŵ½/usr/libÏ¡£
/lib¿ÉÒÔ˵ÊÇÄں˼¶µÄ£»/usr/lib ϵͳ¼¶µÄ£»/usr/local/libÓû§¼¶µÄ¡£
/bin/
— ÓÃÀ´Öü´æÓû§ÃüÁĿ¼ /usr/bin Ò²±»ÓÃÀ´Öü´æÓû§ÃüÁî¡£
/sbin/
— Ðí¶àϵͳÃüÁÀýÈç shutdown£©µÄÖü´æλÖá£Ä¿Â¼ /usr/sbin ÖÐÒ²°üÀ¨ÁËÐí¶àϵͳÃüÁî¡£
/root/
— ¸ùÓû§£¨³¬¼¶Óû§£©µÄÖ÷Ŀ¼¡£
/mnt/
— ¸ÃĿ¼ÖÐͨ³£°üÀ¨ÏµÍ³Òýµ¼ºó±»¹ÒÔصÄÎļþϵͳµÄ¹ÒÔص㡣ƩÈ磬ĬÈϵĹâÅ̹ÒÔصãÊÇ /mnt/cdrom/.
/boot/
— °üÀ¨Äں˺ÍÆäËüϵͳÆô¶¯ÆÚ¼äʹÓõÄÎļþ¡£
/lost+found/
— ±» fsck ÓÃÀ´·ÅÖÃÁãÉ¢Îļþ£¨Ã»ÓÐÃû³ÆµÄÎļþ£©¡£
/lib/
— °üº¬Ðí¶à±» /bin/ ºÍ /sbin/ ÖеijÌÐòʹÓõĿâÎļþ¡£Ä¿Â¼ /usr/lib/ Öк¬Óиü¶àÓÃÓÚÓû§³ÌÐòµÄ¿âÎļþ¡£
/dev/
— Öü´æÉ豸Îļþ¡£
/etc/
— °üº¬Ðí¶àÅäÖÃÎļþºÍĿ¼¡£
/var/
— ÓÃÓÚÖü´ævariable£¨»ò²»¶Ï¸Ä±äµÄ£©Îļþ£¬ÀýÈçÈÕÖ¾ÎļþºÍ´òÓ¡»ú¼ÙÍÑ»úÎļþ¡£
/usr/
— °üÀ¨ÓëϵͳÓû§Ö±½ÓÓйصÄÎļþºÍĿ¼£¬ÀýÈçÓ¦ÓóÌÐò¼°Ö§³ÖËüÃǵĿâÎļþ¡£
/proc/
— Ò»¸öÐéÄâµÄÎļþϵͳ£¨²»ÊÇʵ¼ÊÖü´æÔÚ´ÅÅÌÉϵģ©£¬Ëü°üÀ¨±»Ä³Ð©³ÌÐòʹÓõÄϵͳÐÅÏ¢¡£
/initrd/
— ÓÃÀ´ÔÚ¼ÆËã»úÆô¶¯Ê±¹ÒÔØ initrd.img Ó³ÏñÎļþµÄĿ¼ÒÔ¼°ÔØÈëËùÐèÉ豸ģ¿éµÄĿ¼¡£
Ïà¹ØÎĵµ£º
linux spiÇý¶¯
Äں˰汾£ºlinux-2.6.29
Ö÷ÒªµÄ¼¸¸ö½á¹¹
platform_device platform_driver s3c24xx_spi spi_master spi_bitbang spi_device spi_driver spidev_data s3c_spi_info
µÚÒ»²½£º×¢²áplatform_device
ÔÚarch/arm/mach-s3c2410/mach-qt2410.c ÖÐ×¢²áplatform_device £¬ÆäÖÐs3c2410_spi_info ×÷Ϊplat ......
C×Ö·û´®´¦Àíº¯ÊýµÄʵÏÖ£¨Linux£©
#include <stddef.h>
char * ___strtok = NULL;
char * strcpy(char * dest,const char *src)
{
char *tmp = dest;
while ((*dest++ = *src++) != '\0')
/* nothing */;
return tmp;
}
char * strncpy(char * des ......
Ê×ÏÈÐèÒªÏÂÔØLinux kernel£¬ÔÚwww.kernel.orgÀïÃæÏÂÔØ¡£È»ºóÐèÒª°²×°kernel-package£¬fakeroot¡£ÕâÑù×¼±¸¹¤×÷¾ÍÍê³ÉÁË¡£
ÏÂÃ濪ʼÄں˵ÄÅäÖá£×îÖØÒªµÄÒ»µãÊÇÈ¥µôkenerl hackingÑ¡ÏÏÂÃæµÄ“±àÒëÄں˴øÓÐdebugÐÅÏ¢”Ñ¡Ï·ñÔò±àÒë³öÀ´µÄÄÚºËÎÞ±ÈÅÓ´ó
¡£È»ºó¸ù¾Ý¸öÈËÐèҪȥµôһЩÇý¶¯¡£²»¹ý±ØÐëÇå³þÖªµÀ×Ô¼ ......
sock_rawÔʼÌ×½Ó×Ö±à³Ì¿ÉÒÔ½ÓÊÕµ½±¾»úÍø¿¨ÉϵÄÊý¾ÝÖ¡»òÕßÊý¾Ý°ü,¶ÔÓë¼àÌýÍøÂçµÄÁ÷Á¿ºÍ·ÖÎöÊǺÜÓÐ×÷ÓõÄ.Ò»¹²¿ÉÒÔÓÐ3ÖÖ·½Ê½´´½¨ÕâÖÖsocket
1.socket(AF_INET, SOCK_RAW, IPPROTO_TCP|IPPROTO_UDP|IPPROTO_ICMP)·¢ËͽÓÊÕipÊý¾Ý°ü
2.socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP|ETH_P_ARP|ETH_P_ALL))·¢ËͽÓÊÕÒÔÌ« ......
VMwareÈýÖÖÍøÂçģʽ¸ù±¾Çø±ð(ͼ)
Ìáµ½VMware´ó¼Ò¾ÍÏëÆðÁËÐéÄâ»ú¼¼Êõ£¬ÐéÄâ»ú¼¼ÊõÔÚ×î½üµÄ¼¸ÄêÖеõ½Á˹㷺µÄ·¢Õ¹£¬Ò»Ð©´óÐÍÍøÂç·þÎñÉ̶¼¿ªÊ¼²ÉÓÃÐéÄâ»ú¼¼Êõ£¬²»½ö½ÚÊ¡ÁËͶ×ʳɱ¾£¬¸ü½ÚÔ¼ÁËÄÜÔ´µÄÏûºÄ¡£
ÎÒÃÇÖªµÀVMwareÒ²·Ö¼¸ÖÖ°æ±¾£¬ÆÕͨÓû§×î³£ÓõľÍÊÇWorkstation£¬µ«ÊDz»¹ÜʹÓÃÄÄÖÖ°æ±¾£¬ÎÒÃǶ¼ÄÜ·¢ÏÖÔÚ°²× ......