Welcome to the most active Linux Forum on the web.
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 11-03-2002, 11:01 AM   #1
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Rep: Reputation: 15
Very confusing rm

ive tried to remove (unlink) a directory unter suse 7.2:

> rm mysql_install_db
> rm: `mysql_install_db' is a directory

> rm --help
> Remove (unlink) the FILE(s).
> -d, --directory unlink directory, even if non-empty (super-user only)

>rm -d mysql_install_db
> rm: cannot unlink `mysql_install_db': Is a directory

How can I delete this damn directory?
Old 11-03-2002, 11:04 AM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
if the directory isn't empty you can recursively remove the contents
rm -r dirname/
if the directory is empty
rmdir dirname/
will suffice
Old 11-03-2002, 04:32 PM   #3
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
If you are trying to unlink something, make sure that you are using the "rm -d" on the linked dir, not the actual one.
Old 11-04-2002, 02:42 PM   #4
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

Original Poster
Rep: Reputation: 15
thx. rm -r dirname/ is working....


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
mplayer confusing me subh Debian 6 11-30-2005 04:29 PM
What is confusing my Intel536ep? bobzilla Debian 1 11-24-2005 08:34 PM
so confusing c12ayon Programming 5 10-27-2003 12:52 AM
Confusing useradd Arenba Linux - Newbie 3 09-23-2003 07:22 AM
Confusing the squid 80s Linux - Networking 1 08-20-2003 03:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 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