I want to add a symbolic link to another folder
I want to say ln -sf / var / www / html to
/home / var / exemple / public
This is good.
/ home / var / example / public belongs to a user who creates.
in any case this is fine to do in production
Asked
Active
Viewed 107 times
1 Answers
1
To create a symbolic link of /var/www/html
in /home/var/example/public
, you can
ln -s /var/www/html /home/var/example/public
maybe you meant the destination folder as ~/public
which will be in the same user.

Habeel Mazhar
- 198
-
Now I have a problem creating the link (ln -s /var/www/html /home/var/example/public) the html folder is created and it will not let me use the public folder how to fix it – sandro Apr 02 '19 at 14:14
-
Correct me if i am wrong but from what i understand you mean that there was an
html
folder created inside thepublic
folder and instead you wanted thepublic
folder to have the contents of thehtml
folder? if so the delete thepublic
folder and re run command. it will not create thehtml
folder insidepublic
but insteadpublic
folder will be the symlink folder. – Habeel Mazhar Apr 03 '19 at 09:07 -
Glad to help. Please mark the answer as accepted if it helped. Thanks – Habeel Mazhar Apr 09 '19 at 11:55
man 7 symlink
– waltinator Apr 01 '19 at 04:24