Article Title: solves the problem of accidentally deleting files on Linux servers. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The server accidentally deleted the/usr/bin and/usr/sbin directories, and copied these two directories from other places. Many of them may be non-common files such as links, when the link can be copied, I do not know what parameters should be added to the link processing. Therefore, more than one hundred MB of data is copied to nearly one G. Finally, I gave tar a copy and copied it.
In this way, the server is basically ready. We recommend that you:
1. Do not log on directly with root, especially unfamiliar users.
2. We recommend that you use sudo to execute the root command and use less su;
3. Use mongodo to configure the root permission command to be executed.
Eg: xxx ALL =/sbin/mount,/sbin/unmount,/sbin/ifconfig NOPASSWD: ALL
The rm command does not work. However, there are "sequelae ":
1. during login, 'linux ': unknown terminal type;
2. When top, clear (known) is used, it is caused by the terminal type problem;
3. vim is also a similar problem and cannot be operated; it has been resolved, but it can only be used in the basic mode;
4. the tftp and telnet services have been resolved.