rm -rf and recursive nothing

Peter Avalos pavalos at theshell.com
Thu Jul 20 19:45:57 PDT 2006


On Thu, Jul 20, 2006 at 11:13:42PM -0400, Justin C. Sherrill wrote:
> I noticed something strange.  I unpacked the pkgsrc tarball to the wrong
> directory, and moved the contents.  After copying it up, I deleted the
> directory, which was empty.
> 
> dev# ls -la pkgsrc/
> total 3
> drwxr-xr-x   2 root  wheel  1024 Jul 20 22:27 .
> drwxr-xr-x  54 root  wheel  1536 Jul 20 22:27 ..
> dev# rm pkgsrc
> rm: pkgsrc: is a directory
> dev# rm -rf pkgsrc
> recursively remove pkgsrc?
> 
> However, I still got the "recursively remove <dirname>" warning that comes
> from trying to delete more than 3 files.  It lists a total of 3, but only
> names 2.  This was on a 1.4.4 system
> 
> 

Sounds like you have an alias for rm that does rm -I.

--Peter
Attachment:
pgp00021.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00021.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20060720/579cdb07/attachment-0016.obj>


More information about the Bugs mailing list