Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-06-2006, 04:58 AM   #1
Lord of the Board
LQ Newbie
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Rep: Reputation: Disabled
directory can't be deleted because it's a directory

On the Desktop I have a directory jre1.5.0_06/ . Not knowing what I did I've put it there yesterday. And I've installed the same directory with the java installer to the place I wanted to have it, that's /usr/java/.
When I want to delete the unnecessary directory on the desktop, logged in as root,
"rm -d jre1.5.0_06" I get the error (which can be translated into English as
rm: Not possible to delete "jre1.5.0_06/": It's a directory
What's happening and how can I remove this directory?
Old 09-06-2006, 05:14 AM   #2
Lord of the Board
LQ Newbie
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Original Poster
Rep: Reputation: Disabled
Problem solved.

I used the wrong command. rm -d is not for deleting the directory. I have to use rm -rf directoryname.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can this directory be deleted/cleaned... cbjhawks SUSE / openSUSE 1 08-30-2006 05:18 PM
The directory that cannot be deleted mickeyboa Fedora 1 03-04-2006 10:28 AM
tmp directory being deleted jpokrzyk Linux - General 3 10-30-2004 07:42 PM
Deleted directory error gfem Linux - Newbie 2 08-25-2004 01:06 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration