LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-03-2002, 10:01 AM   #1
Luc
Member
 
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, 10:04 AM   #2
neo77777
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, 03:32 PM   #3
adam_boz
Member
 
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, 01:42 PM   #4
Luc
Member
 
Registered: Oct 2002
Distribution: RedHat Linux 8.0
Posts: 37

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 PM.

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