Symbolic link: Current directory

I have got a question were I have to create a symbolic link named "new" to file /test/test1/test2. The current command I have is this:

ln -s /test/test1/test2 /new

I am not if there is a specific command which will create it in the current directory? any help would be much appreciated.

Thank you.


Just omit the leading / in the target name.

ln -s /test/test1/test2 new

If you want to be explicit, use . as the name of the current directory:

ln -s /test/test1/test2 ./new
链接地址: http://www.djcxy.com/p/78094.html

上一篇: 在RedHat上安装Grunt

下一篇: 符号链接:当前目录