News

Bash for Windows 10 Unfazed by Deadliest Linux Command

Linux Bash shell came to Windows 10 recently as part of the latest Windows Insider preview build. Immediately, people began to experiment, some to see how well the shell was implemented, while others went straight for a command capable of wiping the entire system on a Linux operating system “rm -rf /”.

For those not familiar with Linux and the Bash shell, the reason this command is so deadly can be broken down into its three parts. “rm” is the command for removing or deleting files. “-rf” contains the additional commands for recursive and force. In combination, this causes all files, folders, and subfolders to be removed, without providing any prompt for the user, even those which are write protected. Finally, “/” represents the root location of the file system, where all files and folders are stored and where the command will look for files to delete. Often usage of this command is restricted or generates a warning on modern Linux systems as, should it be executed, everything will be deleted.

This danger made it an obvious choice to try out on Windows 10’s Bash shell though you would hope it was tried from the safety of a virtual machine or throwaway installation. Fortunately (or unfortunately), this command doesn’t cause anywhere near the damage it does to Linux, although the Bash terminal itself is not so lucky, being reduced to a useless black window when started up.

Windows isn’t fully safe from misuse of the Bash shell, as if you run the terminal as administrator and target the /mnt/c directory, the C drive can be deleted. Although, with the lengths you have to go to in order to wipe your operating system, if it happens then it’s likely your own fault, and really, it’s no more dangerous than the command line already in Windows.

Alexander Neil

Disqus Comments Loading...

Recent Posts

Nintendo Switch Sales Surpass PlayStation 2 in the United States

In recent months, gamers have been closely monitoring Nintendo Switch sales as the console edges…

24 mins ago

Helldivers II Adds Killzone 2 Collaboration

Despite Helldivers II's popularity, fans have long felt the game lacked collaborations. Nearly a year…

7 hours ago

Call of Duty: Black Ops 6 Anti-Cheat System Didn’t Perform Well, TeamRICOCHET Admits

The anti-cheat system in Call of Duty: Black Ops 6 and Warzone has not met…

8 hours ago

NVIDIA’s New App Causes Game Slowdowns: Here’s How to Fix

The NVIDIA app, which recently replaced GeForce Experience, has gained popularity for its revamped interface…

8 hours ago

AMD May Launch Ryzen 5 9600 Non-X Variant in Late January 2025

AMD is gearing up to expand its CPU lineup in early 2025, with recent leaks…

8 hours ago

AMD Ryzen AI 7 350 from Upcoming Kraken Point Series Spotted on PassMark

Following the leak of AMD's flagship laptop CPU, another processor from the AMD Kraken Point…

8 hours ago