Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Man Deletes His Whole Company With One Bad Line of Code
www.popularmechanics.com ^ | Apr 14, 2016 144 | By Eric Limer

Posted on 04/14/2016 11:38:37 AM PDT by Red Badger

click here to read article


Navigation: use the links below to view more comments.
first previous 1-20 ... 41-6061-8081-100101 next last
To: loucon

Are you sure? (yes or no)


61 posted on 04/14/2016 12:21:10 PM PDT by loucon
[ Post Reply | Private Reply | To 57 | View Replies]

To: Red Badger
"rm -rf/" That's just shorthand for the obscene word he screamed afterward.
62 posted on 04/14/2016 12:21:56 PM PDT by USMCPOP (Father of LCpl. Karl Linn, KIA 1/26/2005 Al Haqlaniyah, Iraq)
[ Post Reply | Private Reply | To 1 | View Replies]

To: loucon

Y E S ... wait! I meant no! Oh no!


63 posted on 04/14/2016 12:23:48 PM PDT by loucon
[ Post Reply | Private Reply | To 61 | View Replies]

To: Red Badger

I like this utility and have it on all of my servers
https://launchpad.net/safe-rm

It’s a good idea to always change into the subdirectory above when you need to do a recursive delete and not do it from the root /

cd /home/user/
rm example/ -Rf

Or another good idea is to always have the -Rf at the end of the command so you don’t actually fat finger it and run the command to early.

rm /home/user/example -Rf


64 posted on 04/14/2016 12:24:09 PM PDT by brandon24
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

Yeah. Uhm huh. I wonder what he was trying to hide.


65 posted on 04/14/2016 12:24:17 PM PDT by Brilliant
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

We know how to take them down!

Get on the lines to the others!


66 posted on 04/14/2016 12:26:12 PM PDT by Secret Agent Man (Gone Galt; Not averse to Going Bronson.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: DuncanWaring
Image and video hosting by TinyPic
67 posted on 04/14/2016 12:27:23 PM PDT by Augie
[ Post Reply | Private Reply | To 25 | View Replies]

To: Red Badger

Carbonite!


68 posted on 04/14/2016 12:28:00 PM PDT by null and void ("when authority began inspiring contempt, it had stopped being authority" ~ H. Beam Piper)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Augie

Hooo that a scary concept

and actually I’ve done that because the company required it... long story


69 posted on 04/14/2016 12:38:38 PM PDT by tophat9000 (King G(OP)eorge III has no idea why the Americans are in rebellion... teach him why)
[ Post Reply | Private Reply | To 67 | View Replies]

To: Rurudyne
I see a future for him managing servers and conveniently loosing data for the DNC. at the local IHOP.
70 posted on 04/14/2016 12:42:15 PM PDT by A_Tradition_Continues (formerly known as Politicalwit ...05/28/98 Class of '98)
[ Post Reply | Private Reply | To 10 | View Replies]

To: Red Badger
One word:

Several words. That command can only execute as described if it is run as root. Why was the script given root permissions?

Plus, anyone who has worked on the CLI on Unix or Linux sees that command as severe poison and will avoid it at all costs. In fact, it is even joked about..."You wanna fix it fast, just run rm -rf /...hahahaha"
If it HAS to be run, several steps are done before doing so. It is second nature to anyone familiar with Unix or Linux.

I can be sympathetic but this guy got what he deserved.

71 posted on 04/14/2016 12:43:33 PM PDT by Bloody Sam Roberts (#BlackOlivesMatter)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Mr. K
And really ... its unlikely that was a line of code ... that is not really a command you would want to run in a piece of code or script ..

That is a shell command ...

The famous "Crap ... I shouldn't have done that!!" command ... lol

72 posted on 04/14/2016 12:50:12 PM PDT by dartuser
[ Post Reply | Private Reply | To 20 | View Replies]

To: PAR35
most if it should be recoverable

'Most' is a possibility but not a likelihood.
Once rm deletes the inode numbers it's brown trousers time.

73 posted on 04/14/2016 12:51:49 PM PDT by Bloody Sam Roberts (#BlackOlivesMatter)
[ Post Reply | Private Reply | To 39 | View Replies]

To: Pollster1

“rm -rf .” I can understand under the condition of a rational rsync copy regiment and only in your first year or two... But “rm -rf /”? Dude needs to be tested for serious drugs...

I hope he has serious insurance for negligence...


74 posted on 04/14/2016 12:54:26 PM PDT by trfree98 (50% of the population are middle men and they don't take to kindly to being cut out of the loop)
[ Post Reply | Private Reply | To 16 | View Replies]

To: mmichaels1970
Should cost him about $50 and about 4 hours depending on the size of the drives and backups, but he should be able to get everything back.

Really? We not be talking Winders here.

75 posted on 04/14/2016 12:56:04 PM PDT by Bloody Sam Roberts (#BlackOlivesMatter)
[ Post Reply | Private Reply | To 56 | View Replies]

To: null and void

Carbonite?..........................After informing his 1500+ customers of his little mistake, he may need KEVLAR!.........................


76 posted on 04/14/2016 1:03:08 PM PDT by Red Badger (WE DON'T NEED NO STEENKING TAGLINES!...........................)
[ Post Reply | Private Reply | To 68 | View Replies]

To: Red Badger

Lesson 1: UNIX commands are for nerds only.


77 posted on 04/14/2016 1:03:28 PM PDT by I want the USA back (The further a society drifts from the truth, the more it will hate those who speak it. Orwell.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Brilliant

Now?...........himself.........................


78 posted on 04/14/2016 1:04:31 PM PDT by Red Badger (WE DON'T NEED NO STEENKING TAGLINES!...........................)
[ Post Reply | Private Reply | To 65 | View Replies]

To: All

Remember the person named Hiram Dunne, whose face we’ll see no more
for what he had taken to be H2O, was H2SO4.

Some mistakes are more costly than others...


79 posted on 04/14/2016 1:06:58 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzrims trying to kill them)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Bloody Sam Roberts
Really? We not be talking Winders here.

Not sure of the OS. I know ActiveUndelete has a version for Linux. Their "ultimate" version is $79.95.

Pretty nice software. I've made a few bucks recovering people's deleted camera flash drives ("all my prom photos are gone") type stuff. This software can even recover deleted partitions (never tried that though).
80 posted on 04/14/2016 1:07:14 PM PDT by mmichaels1970 (Hillary lied over four coffins.)
[ Post Reply | Private Reply | To 75 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-20 ... 41-6061-8081-100101 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson