bug-bash
[Top][All Lists]
Advanced

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

Re: to - Bookmark file system locations in bash on POSIX-like systems


From: Chris Down
Subject: Re: to - Bookmark file system locations in bash on POSIX-like systems
Date: Sat, 6 Apr 2013 12:49:55 +0800

On 6 Apr 2013 01:49, "Mara Kim" <hacker.root@gmail.com> wrote:
>
> > See the `-f' option to ln.
>
> So I did some experimentation, and it is not sufficient to simply use the
-f option to ln to update bookmarks
> $ ln -s /bin foo
> # foo -> /bin/
> $ ln -sf /etc foo
> ln: failed to create symbolic link `rot/etc': Permission denied
>
> You also need to use the -n option to prevent dereferencing
> $ ln -sfn /etc foo
> # foo -> /etc/
>
> Once you've done that though, it works well.

Sorry, I thought it would be implicit that you need to also stop
dereferencing. Perhaps I should have said.

Chris


reply via email to

[Prev in Thread] Current Thread [Next in Thread]