

Move) the content of "" (that is, all the content of the system) to the virtual device '/ dev / null'. This command moves (we insist: not 'copy'. And it is that 'dev / random' is not the only one of that type that can give us headaches. Virtual devices are loaded by the Devil, it seems. in such a way that its effect will be the same as if we used 'shred / dev / sda', although much slower. The command in question does nothing but copy the 'content' of said 'device' on our primary hard drive. 'dev / random' is the name of a virtual device that Unix uses as a random number generator. But, used creatively, it can cause us to have to resort to them. dd if = / dev / random of = / dev / sda (Linux, BSD, Mac)ĭD is a tool that is often used to clone disks and thus create backup copies. That is, it is not limited to removing a file from the file table, but rather overwrite physical space dozens of times that it occupies, making it totally impossible to recover. Shred is a tool that does not erase: it destroys. However another much less known command can delete all the files from a hard drive with no possible solution: But, at least, once executed, it allows you to use file recovery tools with a high probability of success. Format, period:īut, instead of formatting the entire file hierarchy, like above, it focuses on a specific media drive (it can be / dev / sda or another).
#Best terminal commands for mac windows
If we are using an EXT4 file system, the following command is not much different from the typical DOS / Windows 'format C:'. It has a variant that "only" deletes our user folder, along with all the configuration files that reside there: "rm –rf ~". To avoid this, several distributions have an 'alias' configured as standard that, when starting "rm", we are actually accessing "rm -i", with which Bash will ask us for confirmation that we really want to perform the deletion. and its fame is certainly justified: it proceeds to delete each and every one of the directories on our hard drive starting from the root directory (/). There is a typical example when it comes to talking about dangerous Linux commands. So watch out for experiments: rm -Rf / (Linux, BSD, Mac) if you use them with administrator permissions. The text commands listed below can have destructive effects on your system.

But if we talk about text commands entered in the terminal, the thing can be just as serious (or more). Click on a button or icon whose function you do not know can be quite dangerous.
