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
htmlfolder created inside thepublicfolder and instead you wanted thepublicfolder to have the contents of thehtmlfolder? if so the delete thepublicfolder and re run command. it will not create thehtmlfolder insidepublicbut insteadpublicfolder 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