Solaris - ln 命令为目录建立连接
#ln -s sourceDir targetLinkName-s Create a symbolic link.
If the -s option is used withtwoarguments,target
maybean existing directory or a non-existent file.
If target already exists and is notadirectory,an
errorisreturned.source_file may be any path name
and need not exist. If it exists, it may be a fileor
directoryandmayreside on a different file system
from target. If target isanexistingdirectory,a
fileiscreatedindirectorytarget whose name is
source_file or the last component of source_file. This
fileisa symbolic link that references source_file.
If target does not exist, a file with nametargetis
createdanditisasymbolic link that references
source_file.
If the -s option is used with more than two arguments,
targetmust be an existing directory or an error will
be returned. For each source_file, a linkiscreated
in targetwhosenameisthelastcomponentof
source_file. Each new source_file is asymboliclink
tothe original source_file. The files and target may
reside on different file systems.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19919/showart_359695.html
页:
[1]