*BSD News Article 44351


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!gatech!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!se
From: se@MI.Uni-Koeln.DE (Stefan Esser)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: Removing directories
Date: 18 May 1995 11:00:41 GMT
Organization: Institute for Mathematics, University of Cologne, Germany
Lines: 28
Message-ID: <3pf9cp$6jr@news.rrz.uni-koeln.de>
References: <3pd8hc$tc@news.bu.edu>
NNTP-Posting-Host: fileserv1.mi.uni-koeln.de
To: mi@cs.bu.edu (Mikhail Teterin)

In article <3pd8hc$tc@news.bu.edu>, mi@cs.bu.edu (Mikhail Teterin) writes:
|> When trying to remove a directory using either rm -r or rmdir I get 
|> <dir_name>: is a directory
|> 
|> rm -r, however, removes all the directories on the lower level...

You are using 

$ rmdir dirname/

with a tailing slash "/", probably due to 
file name completion in bash or some other 
shell puting the slash at the end of an
inclomplete path name.

Try

$ rmdir dirname 

instead. Immediate success guaranteed :)

Regards,
-- 
 Stefan Esser				Internet:	<se@ZPR.Uni-Koeln.DE>
 Zentrum fuer Paralleles Rechnen	Tel:		+49 221 4706017
 Universitaet zu Koeln			FAX:		+49 221 4705160
 Weyertal 80
 50931 Koeln