LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-21-2004, 06:04 PM   #1
marlor
Member
 
Registered: May 2004
Distribution: Slackware C
Posts: 274

Rep: Reputation: 30
how to remove full directory ?


hi

i am trying to figure out how i can remove a full directory

when i do rmdir it says directory is full

do i have to delete thing things inside first and then the direcotry?


thanks in advance
 
Old 06-21-2004, 06:11 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
rm -rf directory
be careful w/that one
good luck.
 
Old 06-21-2004, 06:32 PM   #3
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
Like peacedog says be careful. Make sure you understand file hierarchies and such, your path, etc.
 
Old 06-21-2004, 06:48 PM   #4
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
If you're not sure, use the midnight commander (mc) . It provides a nice, norton commander alike interface for handling files and directories (and much more).
 
Old 06-22-2004, 04:51 AM   #5
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Marlor, I don't mean to be rude, but some of the questions you've been asking are pretty basic. You should really try to use the search feature here in the forum before posting a question. That helps you and it helps the forum because you don't have to wait for an answer, and because the forum doesn't get clogged up with the same questions being repeated.

It is also helpful to post your questions in an appropriate forum. For example, this question really isn't Slackware-specific by any means, and would be far better suited to the Newbie forum.

Another source of info which may help you is the RUTE User's Tutorial and Exposition. I know it's been invaluable to me.

Again, please don't be offended by these suggestions. I admire anyone who wants to learn, but I just wanted to point out some methods which could be more efficient and perhaps help you to be more self-sufficient.

Enjoy!
--- Cerbere
 
Old 06-22-2004, 08:21 PM   #6
At0mic_PC
Member
 
Registered: Jul 2003
Location: Mississippi
Distribution: Slack9.1
Posts: 159

Rep: Reputation: 30
Along with Cerbere's suggestions I recommend reading a book. You can find some excellent books online for instance: http://www.hackersplayground.org/books.html#linux The one that helped me a lot was Linux in 24 Hours. It's a bit Red Hatish but it's still an excellent book.
 
Old 06-23-2004, 02:25 AM   #7
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Wow, excellent link, At0mic_PC! Thanks for that one :-)

Enjoy!
--- Cerbere
 
Old 09-23-2004, 05:39 PM   #8
fender36
LQ Newbie
 
Registered: Sep 2004
Location: Columbus Ohio
Distribution: Slackware 10
Posts: 8

Rep: Reputation: 0
Ok I understand how rmdir is supposed to work but!... it doesnt work that way for me. If I try to use the -rf switch with rmdir it says that -r is an invalid option. I am using slackware 10 and the man page mentions a switch called --ignore-fail-on-non-empty. WTF kind of switch is that? I dont understand why normal switches aren't even listed in the man page. Do I have some wacky version of rmdir installed? Totally lost here...
 
Old 09-23-2004, 05:54 PM   #9
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
From the man page

Quote:
The command `rmdir foo' will remove the directory foo if it is empty. To remove a nonempty directory, together with everything below, use `rm -r foo'.
I believe you have the rm command confused with the rmdir command.
good luck.
 
Old 09-24-2004, 07:18 AM   #10
fender36
LQ Newbie
 
Registered: Sep 2004
Location: Columbus Ohio
Distribution: Slackware 10
Posts: 8

Rep: Reputation: 0
Lightbulb

jeez im an idiot....
thanks for the help
 
  


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
rm: cannot remove directory `ff': Directory not empty blancs Linux - General 17 08-29-2011 01:47 PM
Full access directory for all users mmowchenko Linux - Newbie 4 11-04-2005 07:15 AM
/root directory full kpachopoulos Linux - General 6 07-07-2005 12:01 AM
when will heppen if the / directory is full ust Fedora 1 04-13-2005 10:18 PM
/tmp directory is full? Moses420ca Linux - Newbie 13 01-21-2005 07:48 PM


All times are GMT -5. The time now is 09:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration