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.
I think you can rebuild the directory but you would need another system of the same configuration to get the scripts from. I do have to ask why would you delete the init.d directory?
If you don't have another system that has the same configuration you may want to do as descarte said, and reinstall as it would take some time to get all the needed scripts back.
I do... I backed up all my VPS nodes on my server three weeks ago, the dom0 is a basic CentOS/Xen installation so very easy to rebuild .
I wonder if it would be a idea for someone to make a package called 'foolproof linux' that stops people doing crazy/stupid things like trying to delete important parts of the file system or other such bad actions, display a huge warning message about how dangerous it is. I would try it myself but I am so out of touch with programming in the past couple of years and never touched the source codes of anything related to linux yet =/.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.