Ronald P Guilmet on 14 Dec 2016 12:35:47 -0800


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

Re: [PLUG] Symlink Problem


I know symlinks cannot span drives because of inodes, does that apply here with a mount?

On Dec 14, 2016 2:52 PM, "Casey Bralla" <MailList@nerdworld.org> wrote:
OK, here's a VERY simple problem that has me flummoxed.


I've mounted my files (which are stored on a separate partition) as /"files".
Within that directory, I have my documents stored in directory
"/files/document".


Typing "/files/document" is too long, so I wanted to get a shortcut to it.  I
therefore want to create a simple symlink to that directory with a simple,
short directory.  I've created a directy "/docs" and am trying to symlink it
to "/files/document"


I executed: "ln -s "/files/document /docs" to create the symlink.  But when I
do a listing of "/docs", I get this:

#ls -lap /docs
total 8
drwxr-xr-x  2 root root 4096 Dec 14 14:44 ./
drwxr-xr-x 29 root root 4096 Dec 14 14:43 ../
lrwxrwxrwx  1 root root   15 Dec 14 14:44 document -> /files/document



If I list the "/docs/document" directory, I get all my documents listed as I
expected.


Can somebody explain to me what I'm doing wrong?   It all seems so simple, but
I'm screwing it up somehow.

TIA!
--

Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
___________________________________________________________________________
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