Comments

You must log in or register to comment.

cute_spider_ni_srsly wrote

there are a bunch of linux commands which could use sanity checks. that's not an unfounded fear

3

twovests OP wrote

-i usually stands for interactive mode and usually has such sanity checks!

my application, ConwaysGameOfLife.sh, uses the -i flag to stand for "Instantly run rm -rf /* before running the program"

2

musou wrote

i still man mv like every time before i do something like this for exactly that reason

2

Moonside wrote

The true fear is filenames starting with a dash.

2

xifiesco wrote

You think you have fears?

dd: failed to open '/dev/sdb': Permission denied

That's my 500gb external hard drive. I mean to type /dev/sdc. My life flashed before my eyes.

2

twovests OP wrote

Now imagine if you were trying to wipe sdb but typed sdc...

1

xifiesco wrote

then... my USB drive which has some operating system on it would be wiped? no big deal

2