How can i delete Directories and Subdirectories?
Red Hat 7.3
GNOME I would like to delete a bunch of directories and subdirectories none of which are empty. Is there a command I can use to delete a directory even though it is not empty? |
rm -rf
|
Pass the -r (-r stands for recursive) argument to rm.
But use with care, typing rm -rf / as root will delete your entire partition, all mounted patitions, and, some say, your partition table. |
thanks, that works great
|
Quote:
|
Quote:
|
i dare you..try -rf in root..come on!! :P
|
wouldn't -r be enough? then, when you get warnings if you're doing this recursively on something you really should'nt...makes you think twice... after this, if you still need to, you can rerun it with -rf. But for most operations, -r should be enough, eh?
|
Quote:
(or something like that, it's been too long ;)) would bring up a real cool game :( |
i always think its funny to go to a friends XP computer go into a dos prompt and create a file the sais "im stupid cuz i cant delete this and i use XP" in their desktop im not sure how to do it anymore so that they cant delete it from within windows but one of these days im gonna look it up cuz my friends got a 2.8 ghz p4 with 21 inch trinitron monitor and all the works and im severely jelaous...ill get him
|
Quote:
|
ive thought about ti...
but i have a better idea...since we both have dimension 8200 i can swap out any and all hardware...so im thinking next time he asks me for help ill just steal his geforece4 ti 4600...some ram...probly just switch the mobos since mine doesnt have support for 1.1 extra ghz but ill leave him his hdd...hed notice that difference...then ill burn down his house for having the monitor |
Good Plan :) get a photo of his house burning down..and then we can send it to MasterC...maybe he can host it for us ;)
|
Quote:
Quote:
Cool |
Quote:
The -f would be used to answer yes each time for files you dont have 'explicit' write permissions, but that you 'can' still delete. ...oooh....going in circles. hopefully someone picked up the difference. |
All times are GMT -5. The time now is 12:47 PM. |