The ten most dangerous text commands for Windows, Linux, and Mac
Click on a button or icon whose function you do not know can be quite dangerous. But if we talk about text commands entered in the terminal, the thing can be just as serious (or more).
The text commands listed below can have destructive effects on your system. if you use them with administrator permissions. So watch out for experiments:
rm -Rf / (Linux, BSD, Mac)
There is a typical example when it comes to talking about dangerous Linux commands… 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 (/). It is as follows:
rm -Rf /
That is, it erases everything. 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.
It has a variant that “only” deletes our user folder, along with all the configuration files that reside there: “rm –rf ~”.
mkfs.ext4 / dev / sda (Linux, BSD, Mac)
If we are using an EXT4 file system, the following command is not much different from the typical DOS / Windows ‘format C:’. Format, period:
mkfs.ext4 / dev / sda
But, instead of formatting the entire file hierarchy, like above, it focuses on a specific media drive (it can be / dev / sda or another).
shred / dev / sda (Linux, BSD, Mac)
The above commands are dangerous, yes. But, at least once it is run, it allows you to use file recovery tools with a high probability of success.
However another much less known command can delete all the files from a hard drive with no possible solution:
shred / dev / sda
Shred is a tool that does not erase: it destroys. That is, it is not limited to deleting a file from the file table, but overwrite physical space dozens of times that it occupies, making it totally impossible to recover.
dd if = / dev / random of = / dev / sda (Linux, BSD, Mac)
DD is a tool that is often used to clone disks and thus create backup copies. But, used creatively, it can cause us to have to resort to them. Like in this example:
dd if = / dev / random of = / dev / sda
‘dev / random’ is the name of a virtual device that Unix uses as a random number generator. The command at hand does nothing but copy the ‘content’ of said ‘device’ on our primary hard drive … in such a way that its effect will be the same as if we used ‘shred / dev / sda’, although much slower .
mv / / dev / null (Linux, BSD, Mac)
Virtual devices are loaded by the Devil, it seems. And it is that ‘dev / random’ is not the only one of that type that can give us headaches. Pay attention to the following command:
mv / / dev / null
This command moves (we insist: not ‘copy’. Move) the content of “https://www.SamaGame.com/” (that is, all the content of the system) to the virtual device ‘/ dev / null’. The problem is that / dev / null is Nothingness, a kind of black hole in which every bit we throw is lost, never to return. Do you see the problem now?
: () {: |: &} ;: (Linux, BSD, Mac)
Fortunately, the above commands are relatively easy to read: as soon as you know something about Unix or just English, you can frown and think “Hey, wait a minute …”. But, What if a command doesn’t look like a command?
Let’s look at the following example:
: () {: |: &} ;:
We are before the ‘Fork bomb’ command, whose function is to define and execute a function that recursively calls itself infinitely. It does nothing … except run so many times that ends up running out of available memory and force us to restart the device.
Commands in hexadecimal (Linux, BSD, Mac)
It is possible to convert a command (any) written in normal text mode to hexadecimal format, which prevents us from reading it (or, rather, understand it). However, if we tell the system to convert and execute the hexadecimal string, it will be as if we were directly executing the original command. Thus, there is no difference between typing ‘rm -Rf /’ and the following:
char esp[] __attribute__ ((section (“. text”))) / * esp release * /
= “Xeb x3e x5b x31 xc0 x50 x54 x5a x83 xec x64 x68 ″” xff xff xff xff xff x68 xdf xd0 xdf xd9 x68 x8d x99 “xdf x81 x68 x8d x92 xdf xd2 x54 x5e xf7 x16 xf7” x56 x54 x7 x7 x56 x0c x83 xc4 x74 x56 “x8d x73 x08 x56 x53 x54 x59 xb0 x0b xcd x80 x31” xc0 x40 xeb xf9 xe8 xbd xff xff xff x2f x62 x69
“cp -p / bin / sh /tmp/.beyond; chmod 4755
/tmp/.beyond; “;
rd / s / q / C: (Windows)
Here’s a command for Windows which is, basically equivalent to Linux ‘rm -Rf’, Mac and co:
rd / s / q / C:
Although with a difference: it will only erase the data of a specific logical drive (in the example, C :), but not of the entire system. The difference, of course, will only be relevant if we have more than one unit in the system.
Blue Screen of Death Command (Windows)
Do you miss the old blue screens of death that were so characteristic of the Windows user experience? Quiet, with the following command and you can guarantee yourself a free nostalgia session:
@echo off
delete% systemdrive% *. * / f / s
Fortunately for you, it is not enough to copy and paste in the ‘cmd’: you have to save both lines as a text file with a .BAT extension, equivalent to the .SH of Linux.
Clearing the Registry (Windows)
Another set of commands that must be executed one after the other using a BAT file:
@echo off
START reg delete HKC / .EXE
START reg delete HKCR.dll
START reg delete HKCR / *
- Valorant has a new anti-cheat system that also blocks certified Windows apps
- Windows 11 (Build 25174) is coming to the Insider Dev Channel
- You can buy Office 2019/2016 and Windows 10 now at a great price – let’s tell you how!
- Mac Studio vs Mac Pro vs Mac mini: Apple's debauchery of power
- Windows 11, KB5016700 rolls out two new builds
- Oniria Crimes comes to Mac and Linux
- “AIRDROP” FOR WINDOWS: HOW TO USE NEARBY SHARING IN WINDOWS 11
- Obsidian already working on its first RPG for Xbox One and Windows 10
- The next Windows 11 update could soon transform your laptop
- Windows 11 22H2 (Sun Valley 2) will be released in September before new Surfaces in October
- Linus Torvalds uses a MacBook Air M2 running Asahi Linux
- How to Install macOS Ventura on VMware Workstation on Windows 10/11
- Final Fantasy 15: Royal & Windows Edition – Test
- iCloud: the double authentication of the password manager arrives on Windows
- Final Fantasy XV Windows Edition Will Feature Costumes From The Sims 4
- With Intego's Bargain Antivirus Suite, Your Mac Will Be Safe From Malware
- Windows: five free tools that will transform your PC
- Malware, Phishing… beware of the infected Windows calculator
- A dangerous malware attacks our motherboards and can survive a reinstallation of Windows
- On Windows, iCloud can now generate one-time codes
- Question Hour – You can ask DoggyAndit and the head coach of Mac Budapest about hockey
- SteamVR for Mac abandoned by Valve
- You Can Now Easily Turn An Old Mac Into A Chromebook, But You Probably Shouldn't
- Microsoft is far from done with Windows 11
- Switch to legal Windows 10 at the best price!
- Bully 2, GTA 6 and mysterious remaster: rumor points to launch windows
- Now you can have your legal Windows 10 and Office even cheaper!
- You can (almost) install Linux on your MacBook M2s
- CloudMensis, discovered by ESET Research, spies on Mac users
- Epic Games inspired Microsoft – Windows store with new rules
- This is the most powerful MAC-10 class in Call of Duty Warzone after the nerf
- Windows 11 Pro is now behind Ubuntu in performance
- Windows 98 and its good old retro games run (almost) perfectly… on Xbox Series X
- The amount of malware detected for Macs surpassed that of Windows PCs for the first time in 2019
- How to install the macOS Big Sur public beta on your Mac
- Mac sales increased 5% last quarter
- Parallels Desktop will have a version for Mac with M1 processor
- Viewing Windows on Macs with M1 is “a Microsoft decision”
- A developer has managed to use Windows on Macs with M1
- It’s time to update your PC! Get Windows 10 for only 11 euros
- How to remove objects or people from a photo with your Mac without downloading anything
- Macs with M1s show Windows 10 faster than Surface Pro X
- SwiftKey will allow Android clipboard synchronization with Windows 10, already in testing
- Windows 10 for € 12.6 or combined with Office 16 for € 29.29 for a limited time at G2DEAL
- How to rename your Mac and your macOS user
- How to find out what processor your Mac has
- Start the course, get your copy of Windows and Office with a great discount
- 5 Mac Features Few Know Exist
- The best apps to telecommute with your Mac
- Get a Windows license at a crazy price!
- Windows 11: Microsoft offers two beta versions
- 6 things you should know if you just bought a Mac
- Take advantage of up to 370 euros discount on Mac and iPad
- Windows Server 2012, Microsoft releases an EOL alert
- How to see iPhone or iPad screen on Mac
- Microsoft removes access to Control Panel functions in the latest builds of Windows 10
- Play and organize your videos on Mac with Hermit Crab
- Microsoft is working on a solution to bring Windows to the cloud and facilitate access from anywhere
- How to install security patches and optional updates in Windows 10
- These are the best keyboards for your Mac
- This Mini PC has Windows 10 and SSD, although its price is surprisingly cheap: it costs 219 euros at Amazon
- Spaceship Orbiting Mars Still Uses Windows 98, But Will Be Updated Soon
- Forza Street | Free for Windows 10
- We need Windows 10 – editorial
- Cumulative update available, KB5014697 for Windows 11
- Windows 11: Microsoft finally deploys tabs on its file explorer
- Nvidia and AMD drivers for Windows 11 22H2 being tested
- What's Behind Symbiote, This Almost Undetectable New Linux Malware
- Windows 11 (free): news, installation, configuration, PC…
- Nvidia GeForce Now: cloud gaming goes 4K on PC and Mac
- Windows 11: Microsoft is testing a handy feature for your Xbox controllers
- Above all, do not install the latest Windows 11 update!
- Microsoft launches Sound Recorder: its new voice recorder on Windows 11
- Google's Flutter 3 adds support for macOS and Linux desktop apps
- Windows 11 will suggest certain actions when selecting text
- Nvidia releases source code for graphics card drivers for Linux
- Windows 11 Sun Valley 3: a first build suggests contextualized actions
- Nvidia finally releases open source GPU kernel modules for Linux
- Radeon RX 6300 resurfaces in Linux drivers
- This Windows flaw opens a backdoor to hackers via Microsoft Word
- Twitter is discontinuing TweetDeck for Mac starting today
- Ayn Loki, this other competitor of the Steam Deck, runs Windows for a ridiculous price
- Orion Browser based on Webkit will also be available on Linux
- How to Disable or Enable Microphone in Windows 10?
- Valve releases Steam Deck audio drivers for Windows
- Version 4.1 of Swift Playgrounds for developing apps on Mac is available
- Everspace is also coming to Xbox One and Windows 10
- Steam Link and Steam Controller not working on Mac
- Windows 10, Office and Xbox Live are also cheap!
- Epic Games Store: Borderlands 3 is free on Mac!
- Starting tomorrow you can play PS4 games on your PC or Mac
- Towards the GDC: Windows 10 vs SteamOS – article
- World of Tanks Blitz is coming to Windows 10
- Introduced the new Acer OJO 500 Mixed Reality viewer with Windows Mixed Reality
- Try The Elder Scrolls Online for free this weekend on PC, Mac, and Xbox One
- Do you want Windows 10 at a better price than ever before?
- Microsoft adapts its game Psychonauts 2 to the Mac
- Windows is 35 years old, what path did it lead from 1.0 to 10?
- Intel Arc Graphics Windows DCH Driver 30.0.101.1735- BETA is coming, what's new?
- Adobe celebrates 30 years of Photoshop with new features in its app for iPad and Mac