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

LinuxϵÄÈíÁ´½ÓºÍÓ²Á´½ÓµÄ²»Í¬¡¾×ª¡¿

½ñÌì±àÒëBlueZµÄʱºò£¬Í»È»¼ä·¢ÉúÁËÒ»¸ö´´½¨ Ó²Á´½Óʧ°Ü £¬ÄÔº£ÀïÌø³öÁËÁËÒ»¸öʲôÊÇÓ²Á´½ÓµÄ¸ÅÄһʱ¼ä»¹Õæ»Ø´ð²»ÉÏÀ´£¬googleÁËÏ£¬·¢ÏÖÕâƪ²©ÎÄÃèÊöµÄºÜÇåÎú£¬×ªÔØÖ®£¬ÒÔ±¸Íü...
Á´½Ó——ÊÇÒ»ÖÖÔÚ¹²ÏíÎļþºÍ·ÃÎÊËüµÄÓû§µÄÈô¸ÉĿ¼ÏîÖ®¼ä½¨Á¢ÁªÏµµÄÒ»ÖÖ·½·¨¡£
LinuxÖаüÀ¨Á½ÖÖÁ´½Ó£ºÓ²Á´½Ó(Hard Link)ºÍÈíÁ´½Ó(Soft Link)£¬ÈíÁ´½ÓÓÖ³ÆΪ·ûºÅÁ´½Ó£¨Symbolic link£©¡£
ÎÒÃÇÊ×ÏÈÀ´Á˽âһϼ¸¸öÃû´Ê¡£
Ë÷Òý½Úµã(inode)
ÒªÁ˽âÁ´½Ó£¬ÎÒÃÇÊ×ÏȵÃÁ˽âÒ»¸ö¸ÅÄ½ÐË÷Òý½Úµã(inode)¡£ÔÚLinuxϵͳÖУ¬ÄÚºËΪÿһ¸öд´½¨µÄÎļþ·ÖÅäÒ»¸öInode(Ë÷Òý½áµã)£¬Ã¿¸öÎļþ¶¼ÓÐÒ»¸öΩһµÄinodeºÅ£¬ÎÒÃÇ¿ÉÒÔ½«inode¼òµ¥Àí½â³ÉÒ»¸öÖ¸Õ룬ËüÓÀÔ¶Ö¸Ïò±¾ÎļþµÄ¾ßÌå´æ´¢Î»Öá£ÎļþÊôÐÔ±£´æÔÚË÷Òý½áµãÀÔÚ·ÃÎÊÎļþʱ£¬Ë÷Òý½áµã±»¸´ÖƵ½ÄÚ´æÔÚ£¬´Ó¶øʵÏÖÎļþµÄ¿ìËÙ·ÃÎÊ¡£ÏµÍ³ÊÇͨ¹ýË÷Òý½Úµã(¶ø²»ÊÇÎļþÃû)À´¶¨Î»Ã¿Ò»¸öÎļþ¡£
Ó²Á´½Ó(Hard Link)
Ó²Á´½Ó˵°×ÁËÊÇÒ»¸öÖ¸Õ룬ָÏòÎļþË÷Òý½Úµã£¬ÏµÍ³²¢²»ÎªËüÖØзÖÅäinode¡£
¿ÉÒÔÓãºlnÃüÁîÀ´½¨Á¢Ó²Á´½Ó¡£
ÒýÓÃ
ln [options] existingfile newfile
ln [options] existingfile-list directory
Ó÷¨£º
µÚÒ»ÖÖΪ”existingfile”´´½¨Ó²Á´½Ó£¬ÎļþÃûΪ”newfile”¡£
µÚ¶þÖÖÔÚ”directory”Ŀ¼ÖУ¬Îª” existingfile-list”Öаüº¬µÄËùÓÐÎļþ´´½¨Ò»¸öͬÃûµÄÓ²Á´½Ó¡£
³£ÓÿÉÑ¡[options]£º-f ÎÞÂÛ”newfile”´æÔÚÓë·ñ£¬¶¼´´½¨Á´½Ó¡£-n Èç¹û”newfile”ÒÑ´æÔÚ£¬¾Í²»´´½¨Á´½Ó¡£
ÈíÁ´½Ó(Soft Link)
ÈíÁ´½ÓÓֽзûºÅÁ´½Ó£¬Õâ¸öÎļþ°üº¬ÁËÁíÒ»¸öÎļþµÄ·¾¶Ãû¡£¿ÉÒÔÊÇÈÎÒâÎļþ»òĿ¼£¬¿ÉÒÔÁ´½Ó²»Í¬ÎļþϵͳµÄÎļþ¡£ºÍwinϵĿì½Ý·½Ê½²î²»¶à¡£
¿ÉÒÔÓãºln -s ÃüÁîÀ´½¨Á¢ÈíÁ´½Ó¡£
ÒýÓÃ
ln -s existingfile newfile
ln -s existingfile-list directory
ÏÂÃæÎÒÃÇÓÃÒ»¸öʵÀýÀ´ËµÃ÷Ó²Á´½ÓºÍÈíÁ´½Ó¡£
ÏÖÔÚĿ¼ÏÂÓÐÁ½¸öÎļþ£¬Ò»¸öÃûΪAAA£¬Ò»¸öÃûΪBBB¡£
ÒýÓÃ
$ ls -il
963922 -rw-r--r-- 1 ocean ocean 92 2007-05-18 15:46 AAA
963923 -rw-r--r-- 1 ocean ocean 95 2007-05-18 15:46 BBB
Ê×ÏÈÏÈ×öÒ»¸öAAAµÄÓ²Á´½Ó¡£
ÒýÓÃ
$ ln AAA AAAhard
$ls -il
963922 -rw-r--r-- 2 ocean ocean 92 2007-05-18 15:46 AAA
963922 -rw-r--r-- 2 ocean ocean 92 2007-05-18 15:46 AAAhard
963923 -rw-r--r-- 1 ocean ocean 95 2007-05-18 15:46 BBB
͉˕


Ïà¹ØÎĵµ£º

linux±à³Ì——ÐźÅƪ£Ûת£Ý

ÐźŻù±¾Ô­Àí

LinuxÊÇÒ»ÖÖ¶àÓû§¶àÈÎÎñµÄ²Ù×÷ϵͳ£¬ÏµÍ³ÄÚ»áÓжà¸ö½ø³Ì´æÔÚ¡£ÎÞÂÛÊDzÙ×÷ϵͳÓëÓû§½ø³ÌÖ®¼ä£¬»¹ÊÇÓû§½ø³ÌÖ®¼ä£¬¾­³£ÐèÒª¹²ÏíÊý¾ÝºÍ½»»»ÐÅÏ¢¡£½ø³Ì
¼äÏ໥ͨÐŵķ½·¨ÓжàÖÖ£¬ÐźűãÊÇÆäÖÐ×îΪ¼òµ¥µÄÒ»ÖÖ£¬ËüÓÃÒÔÖ¸³öijʼþµÄ·¢Éú¡£ÔÚLinuxϵͳÖУ¬¸ù¾Ý¾ßÌåµÄµÄÈíÓ²¼þÇé¿ö£¬Äں˳ÌÐò»á·¢³ö²»Í¬µÄÐźŠ......

linuxϵͳµ÷Óã¨×ª£©

ÆäÖÐÓÐһЩº¯ÊýµÄ×÷ÓÃÍêÈ«Ïàͬ£¬Ö»ÊDzÎÊý²»Í¬¡££¨¿ÉÄܺܶàÊìϤC++ÅóÓÑÂíÉϾÍÄÜÁªÏëÆðº¯ÊýÖØÔØ£¬µ«ÊDZðÍüÁËLinuxºËÐÄÊÇÓÃCÓïÑÔдµÄ£¬ËùÒÔÖ»
ÄÜÈ¡³É²»Í¬µÄº¯ÊýÃû£©¡£»¹ÓÐһЩº¯ÊýÒѾ­¹ýʱ£¬±»ÐµĸüºÃµÄº¯ÊýËù´úÌæÁË£¨gccÔÚÁ´½ÓÕâЩº¯Êýʱ»á·¢³ö¾¯¸æ£©£¬µ«ÒòΪ¼æÈݵÄÔ­Òò»¹±£Áô×Å£¬ÕâЩº¯ÊýÔÚÇ°
Ãæ±êÉÏ“*”ºÅÒÔÊ ......

linux½ø³ÌͨÐÅ£º¹²ÏíÄڴ棨ת£©

²ÉÓù²ÏíÄÚ´æͨÐŵÄÒ»¸öÏÔ¶øÒ×¼ûµÄºÃ´¦ÊÇЧÂʸߣ¬ÒòΪ½ø³Ì¿ÉÒÔÖ±½Ó¶ÁдÄڴ棬¶ø²»ÐèÒªÈκÎÊý¾ÝµÄ¿½±´¡£¶ÔÓÚÏñ¹ÜµÀºÍÏûÏ¢¶ÓÁеÈͨÐÅ·½Ê½£¬ÔòÐèÒªÔÚÄÚ
ºËºÍÓû§¿Õ¼ä½øÐÐËĴεÄÊý¾Ý¿½±´£¬¶ø¹²ÏíÄÚ´æÔòÖ»¿½±´Á½´ÎÊý¾Ý[1]£ºÒ»´Î´ÓÊäÈëÎļþµ½¹²ÏíÄÚ´æÇø£¬ÁíÒ»´Î´Ó¹²ÏíÄÚ´æÇøµ½Êä³öÎļþ¡£Êµ¼ÊÉÏ£¬½ø³ÌÖ®¼äÔÚ¹²
ÏíÄÚ´æʱ£¬²¢²»×ÜÊ ......

[Pthread] LinuxÉϳÌÐòµ÷ÊԵĻùʯ(Ò»)

Ô­ÎĵØÖ·£ºhttp://blog.csdn.net/Javadino/archive/2008/09/06/2891413.aspx
Òý×Ó:
1.ÔÚLinuxϵͳÖУ¬½ø³Ì״̬³ýÁËÎÒÃÇËùÊìÖªµÄTASK_RUNNING£¬TASK_INTERRUPTIBLE£¬TASK_STOPPEDµÈ£¬»¹ÓÐÒ»¸öTASK_TRACED¡£Õâ±íÃ÷Õâ¸ö½ø³Ì´¦ÓÚʲô״̬£¿
2.strace¿ÉÒÔ·½±ãµÄ°ïÖúÎÒÃǼǼ½ø³ÌËùÖ´ÐеÄϵͳµ÷Óã¬ËüÊÇÈçºÎ¸ú×Ùµ½½ø³ÌÖ´ÐÐµÄ ......

LinuxµÄÖ÷ÒªÌص㼰½á¹¹

LinuxµÄÖ÷ÒªÌصã
¡¡¡¡×÷Ϊһ¸ö²Ù×÷ϵͳ£¬Linux¼¸ºõÂú×ãµ±½ñUnix²Ù×÷ϵͳµÄËùÓÐÒªÇó£¬Òò´Ë£¬Ëü¾ßÓÐUnix²Ù×÷ϵͳµÄ»ù±¾ÌØÕ÷¡£
1.·ûºÏPOSIX 1003.1±ê×¼
¡¡ ¡¡POSIX 1003.1±ê×¼¶¨ÒåÁËÒ»¸ö×îСµÄUnix²Ù×÷ϵͳ½Ó¿Ú£¬ÈκβÙ×÷ϵͳֻÓзûºÏÕâÒ»±ê×¼£¬²ÅÓпÉÄÜÔËÐÐUnix³ÌÐò¡£Unix¾ßÓзḻµÄÓ¦ÓóÌÐò£¬µ±½ñ¾ø ´ó¶àÊý²Ù×÷ϵͳ¶¼°Ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ