Create symbolic link of a folder

混江龙づ霸主 提交于 2019-12-13 08:25:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!