Can not rmdir
kris at obsecurity.org
Fri Aug 22 12:31:01 PDT 2003
On Fri, Aug 22, 2003 at 12:00:52PM -0700, Edouard Saksonov wrote:
> I've just installed FreeBSD 5.1, everything is fine, but when I wanted to remove a directory(with only one file in it), the system do not want to do that:
> When I type
> rmdir -p dir_name , it gives me as an output :
> >rmdir: dir_name: Directory not empty
This is presumably correct.
> When I try
> rmdir -rf dir_name , it gives me as an output :
> >rmdir: illegal option --r
> >usage: rmdir [-p] directory ...
This is also correct (rmdir does not have the -r option).
> I installed FreeBSD 5.1 from the CD-ROM which comes with "Linux CD" magazine
> Maybe something's wrong with this CD ?
No, you're just misusing it :-)
To remove a directory and all its contents, you want to use rm -r.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030822/e4c3f744/attachment.bin
More information about the freebsd-questions