Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 have removed wrongly the /bin dir in Redhat el4.Instead of removing /media/usb/bin i cd to /media/usb
and did rm -rf /bin it removed every thing .The root also is denied from login ,How to solve this problem,please help me,it is urgent.
Thanks.
I wouldnt even bother trying to reconstruct the /bin dir without a decent system backup. It will be quicker to reinstall the OS, than try and work out some way to copy the bin files back in.
If on the other hand like the good sys admin you are, you made a full system backup when you first installed, then simply copy the backup /bin files back to the directory from a rescue cd, as cp and mv are also in /bin as i remember.
Ok, first of all, don't title your threads "very urgent", it does nothing to speed up responses but rather slow responses down. There is no priority on threads on a free forum, so make more descriptive titles so members that come here in their copious amounts of free time to help people like you know what your actual thread is about.
Now about your /bin directory and you mistakenly removing it, in the future do rm's with the full path to the directory or file you want to remove, do this after slapping yourself a few times for being dumb and removing your /bin directory.
Now, if you have a RHEL 4 cd that was maybe used to install this OS, use that to boot into rescue mode and repair the problem. Or if you have another RHEL system that is identical to this one, copy over the /bin directory from it to at least get a working machine back up. If none of these are possible and you have no backups, then it's reinstall time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.