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.

NASA’s Mars Rover to Be Reset and Wiped

NASA is preparing to reset and wipe the flash memory in their Mars rover Opportunity. Opportunity is the older of the two rovers cruising around on Mars’ surface and has done so since 2004. With it’s general age and the harsh environment it operates in, but also the older technology in use, it is starting to show more and more problems. NASA’s engineers had to reset the rover with increasing frequency and during August they had to do it over a dozen of times alone.

Now they’ve had enough, and the flash has to be wiped. The rover uses the same type of flash as we do here on earth. But 10 years ago the automatic garbage collection functions, like TRIM, weren’t well developed yet and a lot of the flash has burned out. NASA’s engineers expect this to be the root of the trouble they’re having.

NASA will make a backup of everything stored on the flash, remotely to earth, and then wipe it clean. Then all the worn out cells in the flash memory will be marked as defective so they don’t get used any more. When that is done, all the data back will be flashed back to the rover before it gets another reset and reboot. While this sounds like a pretty serious memory surgery to some, all the rovers critical software is stored outside of the flash and won’t be affected. And looking at the technical point of it, a pretty ordinary task.

Still, I can’t help to think of the increased pulse and heart rate I get every time I have to re-flash an expensive piece of hardware, so I can only imagine that some of the NASA engineers are exited and nervous about the impending wipe. It’s still a pretty normal task for system admins, if you take away the part where they are located about 125 million miles away from the rover.

Opportunity has already set the record for most distance driven off-earth, and it looks like NASA hasn’t given up on it yet. There is still a lot of clay and shadows to be discovered on Mars.

Thank you cnet for providing us with this information

Image courtesy of cnet.