How to delete files incorrectly under Linux system

Source: Internet
Author: User

The server mistakenly deleted the/usr/bin and/usr/sbin directory, and then, copy these two directories from other places, found that many of them are links and other non-standard files, can be copied when the link processing do not know what parameters should be added, so, more than 100 trillion of things copied nearly a G; First give tar a moment, in the copy.

In this way, the server is basically ready, recommended:

1. Do not login directly with root, especially unfamiliar people.

2. It is recommended that you use sudo with the command of root permission, using less su;

3. Use Visudo to configure root permission commands that need to be executed

Eg:xxx All=/sbin/mount,/sbin/unmount,/sbin/ifconfig Nopasswd:all

RM commands are not available; however, there are "sequelae":

1. Login, ' Linux ': Unknown terminal type;

2. Use top, clear (known), because of the terminal type problem;

3.vim is also a similar problem, not operational, has been resolved, but only in basic mode;

4.TFTP, Telnet service, resolved.

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.