@nostupidquestions what happens when you give the command in the command line rm -rf ?
- 2 days
@codewizard@hear-me.social Of itself, nothing - it needs another argument telling it what to perform the operation on. Something like rm -rf * would delete everything in the current directory and all subdirectories.
- 14 days
You have it backwards.
rm -fr /*removes the French language pack that comes preinstalled on your system./j
- 14 days
It will delete everything in the directory after that, without asking for further confirmation.
- 14 days
Unless it’s on /, where preserve-root should be kicking in, unless the bypass flag is used (can’t remember this one)
- Havatra@lemmy.zipEnglish14 days
Not all systems have the preserve-root flag enforced, actually… I accidentally did the
rm -rf /in a bash script (the variable for the path returned empty), and it irreversibly deleted a bunch of my system, including sudo and a big part of /etc, before I realized and did Ctrl+C. However the damage was done, rendering the system both unusable and unbootable. Fortunately I managed to recover some data, as the drive was not encrypted.Edit: Yes, like a fool I ran the script as sudo… I am now older and wiser.



