Gary Duzan via plug on 28 Jan 2024 11:37:00 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Symbolic Link Problem/Question |
> > 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