azha@lemm.ee to linuxmemes@lemmy.worldEnglish · 1 year agoFreedomimagemessage-square76linkfedilinkarrow-up1924arrow-down118
arrow-up1906arrow-down1imageFreedomazha@lemm.ee to linuxmemes@lemmy.worldEnglish · 1 year agomessage-square76linkfedilink
minus-squareLumelore (She/her)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up99arrow-down5·1 year agoObligatory reminder to remove the French language pack: sudo rm -fr /*
minus-squareSinkingLotus@lemmy.worldlinkfedilinkEnglisharrow-up47·1 year agoI mean… You’re not wrong. If there’s a French language pack on the system, it will remove it. Tap for spoiler Along with everything else.
minus-squarestembolts@programming.devlinkfedilinkarrow-up32·1 year agoI add a -v because I like to watch.
minus-squareLeninOnAPrayer@lemm.eelinkfedilinkEnglisharrow-up13·edit-21 year agoalias trash-put from trash-cli in both sudo and user. myrm() { trash-put "$@" } alias rm="myrm" This has saved my ass so many times. Especially when typing “rm * .png” instead of “rm *.png” Can restore the files using the cli or from system recycling bin. The alias to rm is probably not best. So getting use to using another name is probably best. But I’m never had a problem with it.
minus-squaregrrgyle@slrpnk.netlinkfedilinkarrow-up12·1 year agoThat feeling where rm is taking a while to return to the prompt
minus-squareLeninOnAPrayer@lemm.eelinkfedilinkEnglisharrow-up4·1 year agoExactly. Ctrl+C and hope ls isn’t completely empty.
minus-squarepressanykeynow@lemmy.worldlinkfedilinkarrow-up3arrow-down1·1 year agoOr just use snapshots. If you are into aliases make an alias for rm to make a snapshot before deleting something.
minus-square_____@lemm.eelinkfedilinkEnglisharrow-up2·1 year agoI’ve never ran into any issues from using rm but I like this idea and will be using it as I only see positives
minus-squareLeninOnAPrayer@lemm.eelinkfedilinkEnglisharrow-up3·1 year agoDownsides can be inconsistent behavior. As with any alias it’s not meant to be anything but a replacement in your shell. Scripts/SSH etc. Also, you gotta remember to empty your trash. :)
minus-squareMensh123@lemmy.worldlinkfedilinkarrow-up7·1 year agoDid you actually run it? In this case, I hope you had a backup. Boot a live system to see if there’s anything left. Back that up, then reinstall.
minus-squarefuck_u_spez_in_particular@lemmy.worldlinkfedilinkarrow-up9·1 year agoMy brother did this accidentally… twice… Don’t ask me how you manage to do this twice…
minus-squarekewjo@lemmy.worldlinkfedilinkarrow-up3·1 year agomake sure to add --no-preserved-root to make sure to update all the English libraries too so you can make sure only freedom fries are respected.
minus-squaregroet@feddit.orglinkfedilinkarrow-up10·1 year agoNot necessary with /* Only needed if you do rm -rf /
minus-squareAgent641@lemmy.worldlinkfedilinkarrow-up3·1 year agoNo preserved root because candied ginger is gross
Obligatory reminder to remove the French language pack:
sudo rm -fr /*I mean… You’re not wrong. If there’s a French language pack on the system, it will remove it.
Tap for spoiler
Along with everything else.
I add a -v because I like to watch.
You sick Bastard.
alias trash-put from trash-cli in both sudo and user.
myrm() { trash-put "$@" } alias rm="myrm"This has saved my ass so many times. Especially when typing “rm * .png” instead of “rm *.png”
Can restore the files using the cli or from system recycling bin.
The alias to rm is probably not best. So getting use to using another name is probably best. But I’m never had a problem with it.
That feeling where rm is taking a while to return to the prompt
Exactly. Ctrl+C and hope ls isn’t completely empty.
Or just use snapshots. If you are into aliases make an alias for rm to make a snapshot before deleting something.
I’ve never ran into any issues from using rm but I like this idea and will be using it as I only see positives
Downsides can be inconsistent behavior. As with any alias it’s not meant to be anything but a replacement in your shell. Scripts/SSH etc.
Also, you gotta remember to empty your trash. :)
help
Did you actually run it?
In this case, I hope you had a backup. Boot a live system to see if there’s anything left. Back that up, then reinstall.
My brother did this accidentally… twice… Don’t ask me how you manage to do this twice…
make sure to add
--no-preserved-rootto make sure to update all the English libraries too so you can make sure only freedom fries are respected.Not necessary with
/*Only needed if you dorm -rf /No preserved root because candied ginger is gross