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 #4,979 there are a bunch of linux commands which could use sanity checks. that's not an unfounded fear 3
musou wrote on July 17, 2018 at 6:03 PM #4,981 i still man mv like every time before i do something like this for exactly that reason 2
twovests OP wrote on July 17, 2018 at 7:57 PM #4,983 Replying to cute_spider_ni_srsly (#4,979) -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
xifiesco wrote on July 19, 2018 at 5:09 AM #4,990 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 on July 19, 2018 at 2:26 PM #4,991 Replying to xifiesco (#4,990) Now imagine if you were trying to wipe sdb but typed sdc... 1
xifiesco wrote on July 20, 2018 at 12:07 AM #4,997 Replying to twovests (#4,991) then... my USB drive which has some operating system on it would be wiped? no big deal 2
cute_spider_ni_srsly wrote
there are a bunch of linux commands which could use sanity checks. that's not an unfounded fear