Casey Bralla via plug on 28 Jan 2024 11:57:48 -0800


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

Re: [PLUG] Symbolic Link Problem/Question


Yes, thanks.

That does work, but I've done it before (somehow) and it didn't need the
trailing slash to see the directory contents.

Gotta be a way.  Maybe something about the trailing slashes on the "ln"
command line?


On 2024-01-28 02:36 PM, Gary Duzan via plug wrote:
>> This problem has stymied me in the past, and I think someone here may
>> have helped me in the past, but I'm getting older now...
>>
>> I want to link a directory so that I can access it more easily.
>> Specifically, I wan to link:
>>
>>     /files1/documents   to   /docs
>>
>> I've tried this command:
>>
>> "ln -s /files/documents /docs"
>>
>> But when I do a directory of "ls /docs", I get shown a file which shows
>> the link to the old directory.  But what I want is to see the directory
>> of files on /files1/documents.
>>
>> I've done this before, and there was a "trick" to make it work, but I
>> can't remember the trick, nor can I find it on the web.
>>
>> Can somebody help?
>>
>> TIA!
> Adding a training slash (ls /docs/) or a trailing slash and dot (ls
> /docs/.) should get you want you want.
>
> Gary Duzan
>
>
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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