FluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · منذ 3 أيامI like to live dangerouslymessage-squaremessage-square21linkfedilinkarrow-up1149arrow-down15file-text
arrow-up1144arrow-down1message-squareI like to live dangerouslyFluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · منذ 3 أيامmessage-square21linkfedilinkfile-text
minus-squareSupercrunchy@programming.devlinkfedilinkarrow-up8·منذ 3 أيامOh yes, the classic rm -fr ~ I wouldn’t be surprised if current AI models would try to do the same command for deleting a folder named ~ Another fun one is rm -fr .* if you want to delete dotfiles (hint: .. ). Sometimes it’s just better to open the file manager, select files and hit delete manually.
minus-squareKubeRoot@discuss.tchncs.delinkfedilinkEnglisharrow-up2·منذ يوم واحد Another fun one is rm -fr .* if you want to delete dotfiles (hint: .. ). Does that actually match ..? I feel like that would’ve screwed me over, and like it would also mean just * would also expand to .. if it was the case.
minus-squareSupercrunchy@programming.devlinkfedilinkarrow-up2·منذ 19 ساعةI remember this biting me a long time ago, but I can’t reproduce it now. Turns out this was changed in 2022 in bash 5.2 (nice!) There’s the new ‘globskipdots’ that prevents this. https://unix.stackexchange.com/a/279448
minus-squareREDACTED@infosec.publinkfedilinkarrow-up1·منذ يومان Sometimes it’s just better to open the file manager, select files and hit delete manually. Linux in a nutshell
minus-squareilinamorato@lemmy.worldlinkfedilinkarrow-up2·منذ يومان Linux in a nutshell 🎸 Linux power 🎸
Oh yes, the classic
rm -fr ~I wouldn’t be surprised if current AI models would try to do the same command for deleting a folder named ~Another fun one is
rm -fr .*if you want to delete dotfiles (hint:..).Sometimes it’s just better to open the file manager, select files and hit delete manually.
Does that actually match
..? I feel like that would’ve screwed me over, and like it would also mean just*would also expand to..if it was the case.I remember this biting me a long time ago, but I can’t reproduce it now. Turns out this was changed in 2022 in bash 5.2 (nice!)
There’s the new ‘globskipdots’ that prevents this.
https://unix.stackexchange.com/a/279448
Linux in a nutshell
🎸 Linux power 🎸