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

Using rm -d to delete directories, won't work

0 views
Skip to first unread message

It's me

unread,
Sep 7, 2001, 3:55:52 AM9/7/01
to
Hi,

I trying to use rm to delete directories. I su - to root the type rm -Rfd
/home/tothedirectoryiwanttodelete then it gives me the warning that this is
a directory and it won't delete it. I'm using Suse 7.2, KDE 2.1.2 and
terminal which i think is bash but not sure (newbie). I can delete these
files with file manager but i would like to use command line. Thanks in
Advance.

Joost Kremers

unread,
Sep 7, 2001, 4:53:52 AM9/7/01
to
It's me wrote:

> Hi,
>
> I trying to use rm to delete directories. I su - to root the type rm -Rfd
> /home/tothedirectoryiwanttodelete then it gives me the warning that this
> is a directory and it won't delete it. I'm using Suse 7.2, KDE 2.1.2 and
> terminal which i think is bash but not sure (newbie).

you use a terminal which is most likely KDE's konsole, and in this terminal
you run a shell, which is bash. the terminal and the shell running in it
are two different things... you could use xterm with bash, or konsole with
csh, or any combo you like.

> I can delete these
> files with file manager but i would like to use command line. Thanks in
> Advance.

dont use the -d option: i always use 'rm -r <dirname>' to delete a dir and
its contents. works just fine.

BTW why do you su to root? you can delete dirs when you own them as user.

HTH

--
Joost Kremers
j dot kremers at let dot kun dot nl

Running SuSE Linux 7.1 and loving it!

Uncle Theodore

unread,
Sep 7, 2001, 4:07:41 AM9/7/01
to
It's me wrote:

Try rm -rf <dirname>
Your command should work too, but it doesn't, I tried. Hell knows why :))

Good Luck,
UT

r0gue

unread,
Sep 7, 2001, 12:58:18 PM9/7/01
to
In article <9n9ugn$1c8m$1...@otis.netspace.net.au>, "It's me"
<bl...@blah.blah> wrote:

I use rm -fr dirnam/* to remove the files and subdirectories, then rmdir
dirname to remove the base dir

--
I will serve no algorithm before it's time.

It's me

unread,
Sep 8, 2001, 1:17:45 AM9/8/01
to

Thank You, Took out the -d and it works just fine.


It's me wrote:
-SNIP-

D. Stussy

unread,
Sep 8, 2001, 10:06:47 PM9/8/01
to
On Sat, 8 Sep 2001, It's me wrote:
>Thank You, Took out the -d and it works just fine.

Actually, for some people, "rm -rf /" is a necessity! :-)

0 new messages