ln創建一個到目標文件的名稱鏈接名鏈接。如果鏈接名被省略,一個鏈接到目標在當前目錄下被創建,使用目標的名稱作為鏈接名。
–backup[=CONTROL] | make a backup of each existing destination file. |
-b | like –backup, but does not accept an argument. |
-d, -F, –directory | allow the superuser to attempt to hard link directories (although it will probably fail due to system restrictions, even for the superuser). |
-f, –force | remove existing destination files. |
-i, –interactive | prompt whether to remove destinations. |
-L, –logical | dereference TARGETs that are symbolic links. In other words, treat the symbolic link target as a file, not a link to a target. |
-n, –no-dereference | treat LINK_NAME as a normal file if it is a symbolic link to a directory. |
-P, –physical | make hard links directly to symbolic links. |
-r, –relative | create symbolic links relative to link location. |
-s, –symbolic | make symbolic links instead of hard links. |
-S, –suffix=SUFFIX | override the usual backup suffix. |
-t, –target-directory=DIRECTORY | specify the DIRECTORY in which to create the links. |
-T, –no-target-directory | always treat LINK_NAME as a normal file. |
-v, –verbose | print name of each linked file. |
–help | display a help message and exit. |
–version | output version information and exit. |
範例:
$ ln -s pyramid-ics-crc-3.0.16-31a4fc7 linux