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µÄʱÖÓÖжÏÖÐÉæ¼°ÖÁ¶þ¸öÈ«¾Ö±äÁ¿Ò»¸öÊÇxtime,ËüÊÇtimevalÊý¾Ý½á¹¹±äÁ¿£¬ÁíÒ»¸öÔòÊÇjiffies£¬Ê×ÏÈ¿´timeval½á¹¹
struct timeval
{
time_t tv_sec; /***second***/
susecond_t tv_usec;/***microsecond***/
}
µ½µ×microsecondÊǺÁÃ뻹ÊÇ΢Ã룿£¿
1Ã룽1000ºÁÃ루3¸öÁ㣩£¬1Ã룽1000 000΢Ã루6¸öÁ㣩£¬1Ã룽1 ......
linuxѹËõºÍ½âѹËõÃüÁî´óÈ«
.tar
¡¡¡¡½â°ü£ºtar zxvf FileName.tar
¡¡¡¡´ò°ü£ºtar czvf FileName.tar DirName
¡¡¡¡---------------------------------------------
¡¡¡¡.gz
¡¡¡¡½âѹ1£ºgunzip FileName.gz
¡¡¡¡½âѹ2£ºgzip -d FileName.gz
¡¡¡¡Ñ¹Ëõ£ºgzip File ......
°´ÒÔϲ½ÖèÀ´,ÏÈдÕâô¶àÀ´ÌáÐÑÏÂ×Ô¼º:
1.ÊìϤlinuxµÄ»ù±¾»·¾³,ÊìϤlinuxµÄ»ù±¾ÃüÁî.
2.ÊìϤlinuxµÄ½»²æ±àÒë»·¾³µÄµÄÅäÖÃ.
3.¸´Ï°»ù±¾µÄCÓïÑÔ֪ʶ.
&nbs ......
×î½ü¶ÔLinuxµÄÏ߳̽ӿڽøÐÐÁËЩ×ܽᣬҲ²Î¿¼ÁËÍøÂçÉÏÐÖµÜÃǵÄһЩ×ÊÁÏ£¬×Ô¼ºÍ¬Ê±Ò²Ð´ÁËЩ³ÌÐò½øÐвâÊÔ£¬ÏȰѲο¼µÄ
×ÊÁÏÁгöÀ´°É
http://blog.mcuol.com/User/liuzhilii521/Article/12738_1.htm
ÏÂÃæÊÇÎÒµÄһЩÀí½â£º
pthread_key_create(pthread_key_t *key,void (*destructor)(void*))
destructorÕâ¸ö»Øµ÷º¯ÊýÔÚÏß³Ì ......