ºìÁªLinuxÃÅ»§
Linux°ïÖú

lnÃüÁîÏêϸÓ÷¨

·¢²¼Ê±¼ä:2005-06-28 00:20:47À´Ô´:ºìÁª×÷Õß:ÐÂÐÂ
תÌù
Ö¸ÁîÃû³Æ : ln

ʹÓÃȨÏÞ : ËùÓÐʹÓÃÕß

ʹÓ÷½Ê½ : ln [options] source dist£¬ÆäÖÐ option µÄ¸ñʽΪ :

[-bdfinsvF] [-S backup-suffix] [-V {numbered,existing,simple}]

[--help] [--version] [--]

˵Ã÷ : Linux/Unix µµ°¸ÏµÍ³ÖУ¬ÓÐËùνµÄÁ´½Ó(link)£¬ÎÒÃÇ¿ÉÒÔ½«ÆäÊÓΪµµ°¸µÄ±ðÃû¡£

Á´½Ó¿É·ÖΪÁ½ÖÖ : Ó²Á´½Ó(hard link)ÓëÈíÁ´½Ó(symbolic link)

Ó²Á´½ÓµÄÒâ˼ÊÇÒ»¸öµµ°¸¿ÉÒÔÓжà¸öÃû³Æ£¬¶øÈíÁ´½ÓµÄ·½Ê½ÔòÊDzúÉúÒ»¸öÌØÊâµÄµµ°¸£¬¸Ãµµ°¸µÄÄÚÈÝÊÇÖ¸ÏòÁíÒ»¸öµµ°¸µÄλÖá£

Ó²Á´½ÓÊÇ´æÔÚͬһ¸öµµ°¸ÏµÍ³ÖУ¬¶øÈíÁ¬½áÈ´¿ÉÒÔ¿çÔ½²»Í¬µÄµµ°¸ÏµÍ³¡£

ln source dist ÊDzúÉúÒ»¸öÁ¬½á(dist)µ½ source£¬ÖÁÓÚʹÓÃÓ²Á¬½á»òÈíÁ´½áÔòÓɲÎÊý¾ö¶¨¡£

²»ÂÛÊÇÓ²Á¬½á»òÈíÁ´½á¶¼²»»á½«Ô­±¾µÄµµ°¸¸´ÖÆÒ»·Ý£¬Ö»»áÕ¼Ó÷dz£ÉÙÁ¿µÄ´Åµú¿Õ¼ä¡£

²ÎÊý :

-f : Á´½ÓʱÏȽ«Óë dist ͬµµÃûµÄµµ°¸É¾³ý

-d : ϵͳ¹ÜÀíÕßÓ²Á´½á×Ô¼ºµÄĿ¼

-i : ÔÚɾ³ýÓë dist ͬµµÃûµÄµµ°¸Ê±ÏȽøÐÐѯÎÊ

-n : ÔÚ½øÐÐÈíÁ´½Óʱ£¬½« dist ÊÓΪһ°ãµÄµµ°¸

-s : ½øÐÐÈíÁ´½Ó(symbolic link)

-v : ÔÚÁ´½Ó֮ǰÏÔʾÆäµµÃû

-b : ½«ÔÚÁ´½Óʱ»á±»¸²Ð´»òɾ³ýµÄµµ°¸½øÐб¸·Ý

-S SUFFIX : ½«±¸·ÝµÄµµ°¸¶¼¼ÓÉÏ SUFFIX µÄ×Öβ

-V METHOD : Ö¸¶¨±¸·ÝµÄ·½Ê½

--help : ÏÔʾ¸¨Öú˵Ã÷

--version : ÏÔʾ°æ±¾

³¢ÊÔ¹ýÓ²Á´½Óºó·¢ÏÖÓ²Á´½Ó²¢²»ÊÇËæʱ±»ÔÊÐí£¬½¨Á¢ÁËÓ²Á´½Óºó¾Í·Ö²»Çåµ½µ×ÄĸöÊÇÁ´½ÓÄĸö¶¼²»ÊÇÁË£¬ºÃÏóÊÇÁ½¸öÄÚÈÝÒ»ÑùµÄ¸´±¾¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ