How does symlinking work in linux

I installed django framework and going through the documentation I was instructed to run the django-admin.py but threw an error:

Command not found

I was Instructed in the documentation to try symlinking to django-admin.py from some place on my path such as

 /usr/local/bin

which has left me totally confused because I'm kind of new to linux


A symlink is a symbolic link . What you're doing is telling the operating system that, when a request comes in for path x, to treat it as path y.

So, if django wants a file at '/expected/path/to/file', but the file is really at '/actual/path', you would build the symlink so that request to the first are instead fulfilled by going to the second. The syntax would be:

ln -s /actual/path/to/file /expected/path/to/file

otherwise broken down as link command, symbolic option, target path, symbolic path.

链接地址: http://www.djcxy.com/p/78088.html

上一篇: 没有创建符号链接

下一篇: symlinking在linux中如何工作