问题
Into the folder /usr/local/var
I would like to create a symbolic link run
that point to /var/run
folder. But I'm quite bit confused how to correctly create the link. Should I create initially the run
folder?
回答1:
You can create it like this without the need of creating something before:
ln -s /usr/local/var /var/run
回答2:
If you are windows users and want to create a symbolic link of a folder is here how:
NOTE: Just make sure you run the command prompt as administrator.
WINDOWS
mklink /d "D:\site\abc\js" "F:\xyz\js"
MAC
ln -s /usr/local/var /var/run
来源:https://stackoverflow.com/questions/27347465/create-symbolic-link-of-a-folder