brent timothy saner on 14 Dec 2016 12:50:30 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Symlink Problem


On 12/14/2016 03:13 PM, prushik wrote:
> Sounds like you created the /docs directory before making the symlink.
> If you do that ln assumes /doc is the destination dir for the new
> symlink, not the name and path for the symlink.


This is exactly what happened. Per original post:

"I've created a directy[sic] '/docs' and am trying to symlink it
to '/files/document'..."

Casey, when symlinking a directory, do not create the "destination" as a
directory first.

The correct procedure would be:

rm /docs/document  # remove the symlink erroneously created
rmdir /docs  # remove the now-empty directory
ln -s /files/document /docs


Attachment: signature.asc
Description: OpenPGP digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug