LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RMDIR - how to remove a non-empty directory?? (https://www.linuxquestions.org/questions/linux-newbie-8/rmdir-how-to-remove-a-non-empty-directory-118572/)

jacksmash 11-21-2003 01:49 PM

RMDIR - how to remove a non-empty directory??
 
How do you remove a non-empty directory without having to manually delete all of its contents??

fancypiper 11-21-2003 01:52 PM

rm -R /path/to/directory
rm -rf /path/to/directory

Use with caution.......

JaseP 11-21-2003 02:49 PM

You always CAN use a gui tool like konqueror to do that, you know. You don't have to do EVERYTHING by the command line.

Brain Drop 11-21-2003 02:52 PM

Quote:

Originally posted by JaseP
You always CAN use a gui tool like konqueror to do that, you know. You don't have to do EVERYTHING by the command line.
or an in between like File Runner. use it. love it.

jacksmash 11-21-2003 02:52 PM

what's wrong with using the command line??

fancypiper 11-21-2003 03:11 PM

Quote:

Originally posted by jacksmash
what's wrong with using the command line??
It always works and gives error messages if something is wrong?

No, wait! That's what is right with the command line...:D

titanium_geek 11-22-2003 11:22 AM

Be EXTREMELY careful.
This is how (not that specific command) that I messed up my intire Linux install. had to reformat both hdd's. No backup did I have either.
sigh...
be warned!!

titanium_geek

jacksmash 11-22-2003 11:30 AM

ok, thanks!!

Brain Drop 11-22-2003 02:41 PM

Quote:

Originally posted by jacksmash
ok, thanks!!
just had to say jacksmash: your sig sounds like my enitre csc120 class-=myself

Sir Gawain 11-23-2003 08:44 AM

#rm -rf / oops!

jacksmash 11-23-2003 11:54 AM

Quote:

Originally posted by Sir Gawain
#rm -rf / oops!
Like I'm going to try that!!

fancypiper 11-23-2003 12:03 PM

:tisk: So you think. You actually may do that unintentionally. Several people have thought that, but did it anyhow. :eek:

When in root, sit on your hands a lot and resist the urge to hit enter. Read what you typed several times because once you hit that enter key, the commands get carried out as long as there is enough system left to perform them.

jacksmash 11-23-2003 12:39 PM

Good tip. Thanks!

vasudevadas 11-23-2003 12:43 PM

If it doesn't work, stick a -f in there. That's what I usually do! (In my mind -f stands for "just f***ing do it)! ;)

jacksmash 11-23-2003 12:47 PM

Language language!


All times are GMT -5. The time now is 11:57 PM.