Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Can Linux erroneously delete files be restored?

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "can Linux mistakenly deleted files be restored". In daily operation, I believe that many people have doubts about whether Linux mistakenly deleted files can be restored. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "can Linux mistakenly deleted files be restored?" Next, please follow the editor to study!

The server mistakenly deleted the / usr/bin and / usr/sbin directories, and then copied these two directories from other places and found that many of them may be links and other non-ordinary files. I don't know what parameters should be added to the handling of the links when copying, so I copied nearly a G for more than 100 megabytes of things. Finally, I gave tar a copy.

In this way, the server is basically ready, and it is recommended that:

1. Do not use root to log in directly, especially for those who are not familiar with it.

two。 It is recommended to use sudo instead of su if you need to execute root permission commands.

3. You can use visudo to configure root permission commands that need 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. When logging in, 'linux': unknown terminal type

two。 When using top, clear (known), because of terminal type problems

3.vim is a similar problem and is not operable; it has been resolved, but only in basic mode

4.tftp, telnet service, resolved.

At this point, the study on "can Linux mistakenly deleted files be restored" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report