FluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · 5 days agoI like to live dangerouslymessage-squaremessage-square22linkfedilinkarrow-up1152arrow-down15file-text
arrow-up1147arrow-down1message-squareI like to live dangerouslyFluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · 5 days agomessage-square22linkfedilinkfile-text
minus-squareSupercrunchy@programming.devlinkfedilinkarrow-up8·4 days agoOh 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-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·11 hours ago (hint: … ) Wait, what shell does that? I remember having used rm -rf ./.* quite a few times.
minus-squareKubeRoot@discuss.tchncs.delinkfedilinkEnglisharrow-up2·3 days ago 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·2 days agoI 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·3 days ago 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·3 days ago 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.
Wait, what shell does that?
I remember having used
rm -rf ./.*quite a few times.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 🎸