Wednesday, March 26, 2014

executed "rm -rf /*" today

Lucky me today. I opened one of my bash script, made a lot of changes, and ran it to test. Suddenly, my eyes were wide open as I saw my script attempting to delete everything. I could see permission denied messages everywhere in my screen. Without thinking anything I pressed Ctrl+C and started to investigate what had happened. I had forgotten that bash does not need spaces around the = sign. So, the second command was effective to be "rm -rf /*" which is a command no one ever wants to execute in Linux. I am currently working in a server where me and my friend are working together, preparing for upcoming CASP. Life saved!