biggest fear: commands like "cp data.tgz /home/1vs" will replace that folder with data.tgz rather than place data.tgz into that folder Submitted by twovests on July 17, 2018 at 3:51 PM in programming (i know you can use ~) 7 comments 6
cute_spider_ni_srsly wrote on July 17, 2018 at 5:15 PM there are a bunch of linux commands which could use sanity checks. that's not an unfounded fear Permalink 3 twovests OP wrote on July 17, 2018 at 7:57 PM -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" Permalink Parent 2
twovests OP wrote on July 17, 2018 at 7:57 PM -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" Permalink Parent 2
musou wrote on July 17, 2018 at 6:03 PM i still man mv like every time before i do something like this for exactly that reason Permalink 2
Moonside wrote on July 18, 2018 at 9:36 PM The true fear is filenames starting with a dash. Permalink 2
xifiesco wrote on July 19, 2018 at 5:09 AM 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. Permalink 2 twovests OP wrote on July 19, 2018 at 2:26 PM Now imagine if you were trying to wipe sdb but typed sdc... Permalink Parent 1 xifiesco wrote on July 20, 2018 at 12:07 AM then... my USB drive which has some operating system on it would be wiped? no big deal Permalink Parent 2
twovests OP wrote on July 19, 2018 at 2:26 PM Now imagine if you were trying to wipe sdb but typed sdc... Permalink Parent 1 xifiesco wrote on July 20, 2018 at 12:07 AM then... my USB drive which has some operating system on it would be wiped? no big deal Permalink Parent 2
xifiesco wrote on July 20, 2018 at 12:07 AM then... my USB drive which has some operating system on it would be wiped? no big deal Permalink Parent 2
cute_spider_ni_srsly wrote
there are a bunch of linux commands which could use sanity checks. that's not an unfounded fear