Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Removing directories

5 views
Skip to first unread message

Mikhail Teterin

unread,
May 17, 1995, 3:00:00 AM5/17/95
to
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...

The system is FreeBSD 2.0-RELEASE

Thank you,
-mi
--
Cat is somewhere around... * Кот где-то неподалёку...
"Computer hackers do it all night long."

Stefan Esser

unread,
May 18, 1995, 3:00:00 AM5/18/95
to Mikhail Teterin
In article <3pd8hc$t...@news.bu.edu>, m...@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: <s...@ZPR.Uni-Koeln.DE>
Zentrum fuer Paralleles Rechnen Tel: +49 221 4706017
Universitaet zu Koeln FAX: +49 221 4705160
Weyertal 80
50931 Koeln

Mike Digdon

unread,
May 22, 1995, 3:00:00 AM5/22/95
to
Mikhail Teterin (m...@cs.bu.edu) wrote:
: 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...

: The system is FreeBSD 2.0-RELEASE

When you are removing these directories, is there a trailing / after the
directory name? If you do, then am rm -r, rmdir or an mv won't work.

I use SunOS at work, FreeBSD at home, and the shell I use on both systems is
bash. I'm not running similar versions of bash (1.14.2 at work, 1.14.3 at
home), but SunOS allows me to leave on the trailing / while BSD does not.
Perhaps it is a change that needs to be made to rm and mv.

0 new messages