How to symlink a file in Linux?
I want to make a symbolic link in Linux. I have written this bash command where the first path is the folder I want link into and the second path is the compiled source.
ln -s '+basebuild+'/IpDome-kernel/kernel /home/build/sandbox/gen2/basebuild/IpDome-kernel/kernal
Is this correct?
To create a new symlink (will fail if symlink exists already):
ln -s /path/to/file /path/to/symlink
To create or update a symlink:
ln -sf /path/to/file /path/to/symlink
ln -s TARGET LINK_NAME
-s
使它具有象征意义。
ln -s EXISTING_FILE_OR_DIRECTORY SYMLINK_NAME
链接地址: http://www.djcxy.com/p/2196.html
上一篇: 如何在find中排除目录。 命令
下一篇: 如何在Linux中符号链接文件?