Re:Classic article from Mario Wolczko first appeared on Usen...
by tp34 on Tuesday August 01, 2023 @12:12AM
(#36952205)
shopt -s dotglob
[ Parent
| on HN ]
Re:Classic article from Mario Wolczko first appeared on Usen...
by seanhunter on Tuesday August 01, 2023 @08:00AM
(#36954913)
Yes. 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