linux Ŀ¼ÓÃ;
/bin ´æ·Å×î³£ÓõÄÃüÁ´ËĿ¼ÏµÄÃüÁîËùÓÐÓû§¶¼ÓÐÖ´ÐеÄȨÏÞ
/boot LinuxϵͳÒýµ¼Ä¿Â¼£¬´ËĿ¼±£´æϵͳÆô¶¯Ê±µÄÄÚºËÎļþºÍÄÚºËÓ³ÏñÎļþ¼°Æô¶¯Ê±ËùÐèµÄÆäËüÎļþ
/dev É豸Îļþ£¬±£´æËùÓеÄÓ²¼þÉ豸Îļþ£¬ÈçÓ²ÅÌÉ豸Îļþ£¬ÈíÇý¡¢¹âÇýÉ豸ÎļþµÈµÈ
/etc ´æ·Å¸÷ÖÖ·þÎñµÄÅäÖÃÎļþ£¬Ï൱ÓÚWindows 2000µÄwinntĿ¼
/home ¸÷ÓÃËÞÖ÷Ŀ¼£¬Ï൱ÓÚWindows 2000µÄ“ÎÒµÄÎĵµ”
/lib ¸ÃĿ¼ÓÃÀ´´æ·Åϵͳ¶¯Ì¬Á´½Ó¹²Ïí¿â£¬¼¸ºõËùÓõÄÓ¦¸Ã³ÌÐò¶¼»áÓõ½¸ÃĿ¼ÏµĹ²Ïí¿â
/mnt ¹ÒÔØĿ¼£¬ÓÃÀ´ÁÙʱ¹ÒÔرðµÄÎļþϵͳ»òÕß±ðµÄÓ²¼þÉ豸£¨Èç¹âÇý¡¢ÈíÇý£©
/proc ´ËĿ¼ÐÅÏ¢ÊÇÔÚÄÚ´æÖÐÓÉϵͳ×ÔÐвúÉúµÄ£¬´æ´¢ÁËһЩµ±Ç°µÄ½ø³ÌIDºÅºÍCPU¡¢ÄÚ´æµÄÓ³ÉäµÈ
/sbin ϵͳ¹ÜÀíÔ±ÃüÁî´æ·ÅĿ¼
/usr ×î´óµÄĿ¼£¬Óû§µÄºÜ¶àÓ¦¸Ã³ÌÐòºÍÎļþ¶¼´æ·ÅÔÚ´ËĿ¼ÏÂ
/usr/X1186 X-WindowsĿ¼£¬´æ·ÅһЩX-WindowsµÄÅäÖÃÎļþ
/usr/include ϵͳͷÎļþ£¬´æ´¢Ò»Ð©CÓïÑÔµÄÍ·Îļþ
/usr/src LinuxÄÚºËÔ´´úÂ룬LinuxϵͳËù°²×°µÄÄÚºËÔ´´úÂ붼±£´æÔÚ´Ë
/usr/bin ¶Ô/binĿ¼µÄһЩ²¹³ä
/usr/sbin ¶Ô/sbinĿ¼µÄһЩ²¹³ä
/var ´ó¶àÊýµÄÈÕÖ¾´æ´¢Ä¿Â¼ºÍftp,www·þÎñµÄÄäÃû·ÃÎÊĿ¼
µÄ¸ù£¬ÔÚLinux¹¤×÷Ò»¶Îʱ¼äºó£¬´ËĿ¼»á±È½Ï´ó£¬Ó¦¼´Ê±¶Ô´ËĿ¼½øÐÐɾ³ý
/misc autofs·þÎñµÄÄ¿
/opt ÓÃÓÚ´æ´¢µÚÈý·½Èí¼þµÄĿ¼
/tmp ÁÙʱÎļþµÄĿ¼£¬ÓÃÀ´´æ·Å²»Í¬³ÌÐòÖ´ÐÐʱ²úÉúµÄÁÙʱÎļþ
/lost+found ¸ÃĿ¼ÔÚ´ó¶àÊýÇé¿ö϶¼Êǿյģ¬µ«µ±ÊµÈ»Í£µç»òÕß·ÇÕý³£¹Ø»úºó£¬ÓÐЩÎļþÁÙʱ´æÈëÔÚ´Ë
/root ¹ÜÀíÔ±µÄ¸ùĿ¼£¬Ò»°ãÖ»ÓйÜÀíÔ±²Å¿ÉÒÔ·ÃÎÊ´ËĿ¼
/bin ¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev É豸ÌØÊâÎļþ
/etc ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§userµÄÖ÷Ŀ¼¾ÍÊÇ/home/user£¬¿ÉÒÔÓÃ~user±íʾ
/lib ±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindowsÀïµÄ.dllÎļþ
/sbin ϵͳ¹ÜÀíÃüÁÕâÀï´æ·ÅµÄÊÇϵͳ¹ÜÀíԱʹÓõĹÜÀí³ÌÐò
/tmp ¹«ÓõÄÁÙʱÎļþ´æ´¢µã
/root ϵͳ¹ÜÀíÔ±µÄÖ÷Ŀ¼£¨ºÇºÇ£¬ÌØÈ
Ïà¹ØÎĵµ£º
linuxÖУ¬ÔÚÖ§³Ö¶àÏ̵߳Ļ·¾³ÖУ¬Í¨³£Ã¿¸öÏ̶߳¼ÓÐÊôÓÚ×Ô¼ºµÄerrno±äÁ¿£¬ÊÇÓÃÀ´±íʾÌض¨´íÎóµÄ³£Á¿¡£
ÒÔÏÂÊÇ<errno.h>Öж¨ÒåµÄËùÓгö´íerrno³£Á¿
#define EPERM 1 /* Operation not permitted */
#define ENOEN ......
caddr_t //ºËÐĵØÖ·
clock_t //ʱÖӵδð¼ÆÊýÆ÷
compt_t //ѹËõµÄʱÖӵδð
dev_t //É豸ºÅ£¨Ö÷ºÍ´Î£©
fd_set //ÎļþÃèÊö·û¼¯
fpos_t //ÎļþλÖÃ
gid_t //ÊýÖµ×éID
ino_t //i½Úµã±àºÅ
mode_t //ÎļþÀ ......
linuxµÄÇý¶¯¾ÍÊǸö×Ö·ûÉ豸£¬¿ÉÒÔÓÃread write ioctl mmap²Ù×÷£¬Í¨¹ý/dev/fbx¿ÉÒÔÏñÎļþÒ»ÑùÖ±½Ó¶Áд
½ØÆÁdd if=/dev/fb0 of=snapshot
»Ö¸´cat snapshot > /dev/fb0
¿ªÔ´µÄÓÐfbgrab¹¤¾ß£¬²»¹ýÊÇÉú³ÉpngÎļþ£¬ÎÒ×Ô¼ºÐ´ÁËÒ»¸öÉú³ÉbmpÎļþµÄ¹¤¾ß½Ðfbcap£¬Â¼ÖƳÉavi¸ñʽ£¬Í¨¹ýsocket»òserial°ÑÉ豸µÄ²Ù×÷·¢Ë͵½hostÉÏ£º£ ......
£¨1£©exit()Óë_exit()Çø±ð£º _exit()Ö±½Óʹ½ø³ÌÍ£Ö¹ÔËÐУ¬Çå³ýÆ÷ʹÓõÄÄÚ´æ¿Õ¼ä£¬Ïú»ÙÆäÔÚÄÚºËÖеĸ÷ÖÖÊý¾Ý½á¹¹¡£
exit()º¯ÊýÔÚµ÷ÓÃexitϵͳµ÷ÓÃ֮ǰҪ¼ì²éÎļþµÄ´ò¿ªÇé¿ö£¬°ÑÎļþ»º³åÇøÖеÄÄÚÈÝд»ØÎļþ£¬ÇåÀíI/O»º³å£¨ÍƼöʹÓÃÕâ¸öº¯Êý£©
£¨2£©waitpid
#include <sys/ ......
linux´®¿Ú±à³Ì£¨Òªµã×ܽᣩ ÊÕ²Ø
´®¿Ú±à³Ì
²éѯӲ¼þµÄ·½Ê½£º²éѯ·½Ê½¡¢ÖжϷ½Ê½¡¢DMA·½Ê½¡£´®¿ÚºÜ¶àÊÇʹÓÃÖжϷ½Ê½£¬ÕâÖÖ·½Ê½Ò»°ãÀ´½²¶ÔCPU±È½ÏÓÐЧ¡£
UARTµÄ²Ù×÷Ö÷Òª°üÀ¨ÒÔϼ¸¸ö²¿·Ö£º
Êý¾Ý·¢ËÍ£»Êý¾Ý½ÓÊÜ£»²úÉúÖжϣ»²úÉú²¨ÌØÂÊ£»Loopbackģʽ£»ºìÍâģʽ£»×Ô¶¯Á÷¿Øģʽ£»
&n ......