accidentally deleted every dependency VLC requires instead of deleting VLC. Absolutely recked EVERYTHING on my PC.
I deserve it for trying to remove the best video player 😔
@TriflingToad @azha apt moment…
I managed to remove all the kernels instead of all the old kernels. It was a good learning experience fixing it later, and now I pay much more attention when
apt
warns about “potentially dangerous operations”.Remove and reinstall VLC should install all the dependencies, yeah?
Yup. And I’ve seen countless “articles” by trust-me-i-am-it-guru’s whining that this is allowed
I just uninstalled edge on my laptop (still windows for work/study compatability)
EU laws!
It will be back on next update😭
And in larger numbers.
Even with the “proper” uninstall I can do now? noooo, I thought that was only for deleting the files!
Edge is the El Cucaracha of browsers, u can never truly kill it
seems pretty dead to me on my linux machine
This is a classic case of a Linux user speaking out of their ass about windows. If you’re in the EU it should not come back.
Oh, so like the post itself.
Linux is not free like in “freeware” but in “free to fuck yourself if you want”
It’s both. Free as in free beer (gratis) and free as in freedom (libre).
Free as in climbing
Free as in fallin’?
I think you mean:
sudo I want to delete everything to corrupt my system
sudo dd if=/dev/urandom of=$(df | grep '\s/$' | cut -d' ' -f1)
(Omit the
$
if you are using the fish terminal)One good use for AI was a great breakdown of what exactly that command does. I like it.
“Write random shit to root.”
There is a reason they call dd the disk-destroyer.
Yes, do as I say!
Just gotta say sudo
And everything and your entire PC is under your control
I once forgot to install the Linux package when I was installing Arch on a system. Linux even let’s you not use Linux, if you like.
It didn’t boot.
That’s not true. Most distros now ask you to add —no-preserve-root
Have you tried to add
*
to the path? No more nagging about that pesky missing safety parameter…rm -fr /*
Bonus points of you do:
rm -fr $ACCIDENTIALLY_UNDEFINED_VAR/*
Reminds me of when a script released by Valve did just this back in the day.
Well, technically those aren’t the same command (but works well enough if you’re trying to render a system unusable).
rm -rf /* would not remove /.secret. It rm -rf / would
I once tried to delete something I was not supposed to and the system was quite adamant on advising against it. The system was to be reinstalled so I was just trying things.
It’s been a while but I recall the system giving me a first warning that my command woud delete X, Y and Z, which could render the system inoperable.
Then it questioned me if I was sure I wanted to proceed with the operation.
The final warning was a sum of the potential damage I would do to the system and that it would be irreversible, without a full system install.
So, three strikes.
Obligatory reminder to remove the French language pack:
sudo rm -fr /*
I add a -v because I like to watch.
You sick Bastard.
make 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.No preserved root because candied ginger is gross
Not necessary with
/*
Only needed if you dorm -rf /
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.
My brother did this accidentally… twice… Don’t ask me how you manage to do this twice…
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.
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. :)
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.
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.
Android: screenshot dir? Use DIRECTORY_PICTURES env variable. Changing either? Lol, eat dirt pleb.
I remember when windows would let you delete system32 but not Internet Explorer.
yes, do as I say!
I did this once by accident, I deleted every file that had KDE as a dependency recursively. As well as every file that KDE listed as a dependency, recursively.
Lesson learnt
You can’t kill windows with windows but you can kill Linux with Linux. Remember that.
You can definitely kill window with windows,it’s just done through the GUI and it’s a messy operation, like killing a whale with a chainsaw.
Or it decides to do it all by itself, no user interaction required.