Linux accidental deletion/usr/bin solution

Source: Internet
Author: User
Tags scp command
In Linux, the usrbin directory on the server was accidentally deleted the day before yesterday ~ I have solved the problem today and summarize the solution. System: RedHatEnterpriseLinuxServer631. First, find the RedHat system CD and accidentally delete/usr/bin in Resc Linux. Solution: delete the/usr/bin directory of the server the day before yesterday, at that time, I had a cold sweat ~ I have solved the problem today and summarize the solution. System: Red Hat Enterprise Linux Server 6.3 1. First, find the system CD of Red Hat, enter Rescue mode, and copy the missing/usr/bin directory to the system, this ensures that some basic commands are used. For example, scp Command 2. use the tar command to package the/usr/bin directory on Machine B that is the same as Machine. Then pass scp to machine A, decompress it on machine A, delete the/bin directory copied in Rescue mode, use the passed bin directory, and restart the system, now you can access the system normally. However, the problem is that the software installed in the system needs to be re-compiled and installed.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.