Explain this. - Help

This is a discussion on Explain this. - Help ; [mark@Buttercup mark]$ ls -l total 8 lrwxrwxrwx 1 mark mark 27 Nov 15 21:50 audiobooks -> /usr/local/media/ audiobooks lrwxrwxrwx 1 mark mark 22 Nov 15 21:50 books -> /usr/local/media/books [mark@Buttercup mark]$ rm audiobooks/ rm: cannot remove directory `audiobooks/': Is a ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Explain this.

  1. Explain this.

    [mark@Buttercup mark]$ ls -l
    total 8
    lrwxrwxrwx 1 mark mark 27 Nov 15 21:50 audiobooks -> /usr/local/media/
    audiobooks
    lrwxrwxrwx 1 mark mark 22 Nov 15 21:50 books -> /usr/local/media/books
    [mark@Buttercup mark]$ rm audiobooks/
    rm: cannot remove directory `audiobooks/': Is a directory
    [mark@Buttercup mark]$ rmdir audiobooks/
    rmdir: audiobooks/: Not a directory


    How do I get rid of those links?




    --
    Mark Healey
    marknews@healeyopolis.com

  2. Re: Explain this.

    On Fri, 16 Nov 2007 05:58:49 GMT, Mark Healey wrote:
    | [mark@Buttercup mark]$ ls -l
    | total 8
    | lrwxrwxrwx 1 mark mark 27 Nov 15 21:50 audiobooks -> /usr/local/media/
    | audiobooks
    | lrwxrwxrwx 1 mark mark 22 Nov 15 21:50 books -> /usr/local/media/books
    | [mark@Buttercup mark]$ rm audiobooks/
    | rm: cannot remove directory `audiobooks/': Is a directory
    | [mark@Buttercup mark]$ rmdir audiobooks/
    | rmdir: audiobooks/: Not a directory
    |
    |
    | How do I get rid of those links?


    Remove the trailing '/' character from the link names in the 'rm'
    command. This forces the link to be resolved into a directory name.


    --
    Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
    Asking for technical help in newsgroups? Read this first:
    http://catb.org/~esr/faqs/smart-questions.html#intro

+ Reply to Thread