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.
> 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!
Try rm -rf <dirname>
Your command should work too, but it doesn't, I tried. Hell knows why :))
Good Luck,
UT
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 wrote:
-SNIP-
Actually, for some people, "rm -rf /" is a necessity! :-)