3 ms·
shopt -s dotglob
by tp34 3y ago
shopt -s dotglob
- seanhunter 3y agoYes. Or one lowtech method I use often is `touch ~/-i`. When someone tries to rm -rf * the file called “-i” gets globbed at the front of the arguments and the subsequent command goes into “interactive “ mode meaning it prompts y/n for each file
- tpoacher 3y agoNice! Great "bug as a feature" trick!