Re: Can not rmdir

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 08/22/03

  • Next message: Charles Howse: "RE: Can not rmdir"
    Date: Fri, 22 Aug 2003 12:31:00 -0700
    To: Edouard Saksonov <edouard_bsd@yahoo.com>
    
    
    

    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.

    Kris

    
    



  • Next message: Charles Howse: "RE: Can not rmdir"

    Relevant Pages

    • Re: Make world - crypt-blowfish.c error
      ... You didn't cvsup the src-crypto collection. ... Kris ... I've installed FreeBSD ... > 4.3 with the src tree. ...
      (FreeBSD-Security)
    • Re: panic
      ... > I have just installed FreeBSD 5.1. ... > Uptime: 1s ... I think this is a known bug in 5.1-R..try 5.2-BETA. ... Kris ...
      (freebsd-questions)