[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing link to a directory
From: |
Paul Eggert |
Subject: |
Re: Removing link to a directory |
Date: |
Mon, 16 Apr 2007 17:04:38 -0700 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
"Mohammad Seth" <address@hidden> writes:
> *Symptom*: Could not remove a link to a directory, got the message
>
>>rm current/
> rm: remove directory `current/'? y
> rm: cannot remove directory `current/': Is a directory
>
> current is a symbolic link to directory.
Once you specify the trailing slash, it's no longer talking about the
symbolic link: it's talking about the directory that the link points
to. It's a bit like specifying a trailing "/.". For example:
$ ln -s . dir
$ rm dir/
rm: cannot remove `dir/': Is a directory
$ rm dir/.
rm: cannot remove `.' directory `dir/.'
$ rm dir
$