On Wed, Jan 03, 2007 at 02:41:51PM +1100, Simon Males wrote:
> Been there.
> 
> rm link
> 
> No trailing slash.

No, that removes the link, not the directory pointed to by the link.

Thanks anyway.

> > I must be missing something simple.
> >
> > $ mkdir dir
> > $ ln -s dir link
> > $ rm link/
> > rm: cannot remove `link/': Not a directory
> > $ rm -f link/
> > rm: cannot remove `link/': Not a directory
> > $ rm -rf link/
> > rm: cannot remove `link/': Not a directory
> > $ rmdir link/
> > rmdir: link/: Not a directory
> > $ rm -rf link/.
> > rm: cannot remove `.' or `..'
> >
> > Of course I could go 'rm -rf dir' but how do I find the name 'dir'
> > from the symbolic link name 'link'.
 
> -- 
> Simon Males <[EMAIL PROTECTED]>

-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to