On Fri, Aug 22, 2003 at 12:00:52PM -0700, Edouard Saksonov wrote:
> Hi,
> 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.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to