I want a folder /public_html
to symlink to /current/app/webroot
, both are in the same directory
I have tried
ln -s public_html current/app/webroot
amongst other things, but no joy so far. Any ideas?
I want a folder /public_html
to symlink to /current/app/webroot
, both are in the same directory
I have tried
ln -s public_html current/app/webroot
amongst other things, but no joy so far. Any ideas?
If you want public_html
to be a symlink to somewhere else, you need to write the "somewhere else" first and the target second:
ln -s `pwd`/current/app/webroot public_html
Also, if you already have a normal public_html
directory, you need to remove that first.
(Also, what Clippy said above.)
You needed to check ln
man
ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
ln [OPTION]... TARGET (2nd form)
ln [OPTION]... TARGET... DIRECTORY (3rd form)
ln [OPTION]... -t DIRECTORY TARGET... (4th form)
First target, then link name
In case of
/some/directory/
current/
app/
webroot/
public_html -> current/app/webroot
you need to do this
`ln -s current/app/webroot public_html`
It's not mandatory for ln
to give absolute paths, relative ones work too