Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Originally posted by skidhmor But use with care, typing rm -rf /
as root will delete your entire partition, all mounted patitions, and, some say, your partition table.
I don't think rm -rf could delete the partition table
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?
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
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
Originally posted by cuckoopint 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?
If you are deleting (exagerated) a thousand directories, with a thousand subdirectories, all containing a thousand files, and you have to say "y" to each one, I think your eyes would pop out. However, if it's 5 directories/files total, then the verbose deleting wouldn't be so bad
Quote:
Originally posted by newbieME 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
I don't think I'd host that, sounds like it might get all legal and stuff However, if you get your friend to sign a consent form saying it's cool if you burn his house down, and that it's cool if I host the video/pic, then I'd be glad to
If you are deleting (exagerated) a thousand directories, with a thousand subdirectories, all containing a thousand files, and you have to say "y" to each one, I think your eyes would pop out. However, if it's 5 directories/files total, then the verbose deleting wouldn't be so bad
This is what I meant: if you have the correct permissions, -r should unlink everything w/o a question (unless you have rm setup differently- maybe looking into bashrc, etc. help)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.