Self destructing, but safe!Open source, simplicity, strictness, and transparency are the cornerstone

Mondo Technology Updated on 2024-01-31

Previously, we tested the "one-click self-destruct" command of Linux with the domestic system - UnionTech UOS, and it did work. But there is a problem: it is said that Linux is more secure than Windows, how can it be easily destroyed by a single command?And in Windows, it is extremely difficult to delete system files!

Let's start with this "self-destruct" command, rm -rf.

To put it simply, in Linux, RM is for deletion, which is mainly used to delete files.

The r in RF stands for recursive deletion, which is mainly used to delete directories, and F stands for direct deletion without asking.

Finally, there is the "", which represents the absolute path in the Linux file system.

We all know that each partition in Windows is separated, even if the C drive where the system is installed is formatted, the data in the D drive and E drive will not disappear.

But this is not the case with Linux, its file system is an inverted tree structure, " " is the top of the tree structure, is the only directory at the top level of the Linux file system, and all directories, files, and devices must be under " ".

To put it back to the rm -rf command, what it means to put it bluntly is to delete everything in linux, uproot the tree, and destroy it completely.

Of course, our previous experiment was to execute the self-destruct command with root privileges. In the Linux system, root privilege is the supreme existence, with absolute power, the administrator user in Windows and it is not at all an order of magnitude. In Windows, if we try to delete the explorer with the del command in the terminal, we will be denied access.

There are three reasons why:

One is that Windows has a protection mechanism for system files, WFP, even administrators can't delete system files at will.

Second, the built-in defender of Windows can also prevent system files from being tampered with.

Third, Linux and Windows have completely different file system logic.

In Windows, files cannot be deleted as long as they are open or occupied by other processes. There is also software such as a file shredder, which will first notify the corresponding process to remove the occupation, if the process is disobedient, just kill it, and then delete the file, simple and rude.

Linux is different, as long as you have permission, you can delete whatever you want, and there is no ** piece that is occupied. When we delete the occupied file, it will first disappear from the current folder, but the occupied disk space will not be released, only after the occupation is removed or the corresponding process is closed, the system will completely delete the physical file and free up the occupied space.

Regard the Linux system and Windows as a feudal empire, Root is the existence of the emperor, it has no taboos, and any orders issued are holy decrees, and will be obeyed and implemented 100% from the ministers to the people.

In Windows, Microsoft is the emperor, and the administrator's power is as large as 10,000 people under one person, and it is also limited to the rules set by the emperor, which are all kinds of operating logic, protection mechanisms, and so on.

When we see this, we will feel that Linux does not seem to be safe, and it is even inferior to Windows!Not really.

First of all, the official online environment of Linux does not allow the use of root users, and if you open the root user directly, then the gods will not be able to save you, and it will not be safe or unsafe.

Second, the permissions of Linux are strict, simple and transparent, and the execution permissions of all programs are strictly restricted.

Although the Windows system has a relatively complete protection mechanism, all the control is in the hands of Microsoft, no one knows what logic is executed in it, and the information obtained from consulting official documentation is extremely limited.

After careful consideration, compared with Linux's open source, transparency and knowledge, Windows is unknowable, unknowable, and even personal privacy may not be guaranteed, and it is really "safe" to be limited!Autumn and Winter Check-in Challenge

Related Pages