30 ln 建立一個到目標文件的鏈接(link)

30 ln 建立一個到目標文件的鏈接(link)

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

 

 

Screen Shot 2014-01-10 at 10.02.43 PM

 

Linux
CH1 簡介CH10 自動啟動CH2 檔案指令CH20 Q&ACH3 系统指令CH4 用戶管理CH5 網路CH6 shell scriptsCH8 安裝軟體CH9 硬體驅動程式