Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "rm -rf ~"
-
A few years ago when I was still an apple fan boy, friend of mine bragging me about how android is awesome, we were drinking some shots at our local pub and I was starting to get light headed. At one point he showed me so called "terminal emulator" app. I checked it out, and assumed it's an emulation, just like dosbox, so I decided to verify that "rm -rf *"... (the phone was rooted)
The phone shutdown within seconds, I couldn't stop laughing, while my friend was shock that his new phone was longer booting.
Luckily he managed to reflash the ROM. What can I learn from that experience?
1. Don't drink and sudo
2. Don't call your app an emulator if it's the real deal.34 -
There was a problem with a server we were staging on, and I was providing DevOps help remote.
As a joke I said, "haha if you run `sudo rm -rf / --no-preserve-root` everything will be fixed!"
They ran it. RIP server-kun 2016-2018 💨34 -
mkdir new_project
cd new_project
git init
**Reflecting on my life and current workload**
cd ..
rm -rf new_project.3 -
Received "emergency update" code from internal enterprise security team. Wasn't given time to do code review; was assured code was reviewed and solid.
Pushed code to over 6k lower-level servers before finding this gem buried deep within:
...
cd /foo; rm -rf *; cd /
...
(This ran as root, and yes, the cwd was / from earlier in the code).
/foo, of course, did not exist on some servers.
Now, it is those servers which do not exist.
FMLundefined security root linux file not found directory structure rm -rf / directory not found fml rm15 -
I just remembered the first time I set up a Linux-Server. It was a simple Apache webserver at my first internship anf I didnt have a clue about literally anything.
My mentor guided me through and gave me literal step-by-step instructions (alright, now type... and now type...).
At the end he told me "OK, now run 'sudo rm -rf /*' to finish setting up". Me, being the naive and clueless motherfucker I am, happily nuked the everloving shit out of my newly setup server. I was like "Alright, WTF just happened??" He then told me "Now that you know how it works, do the entire thing again all by yourself. And you just learned an important lesson: NEVER exexute commands you dont know what theyre doing". I really did learn a lot on that day and still follow that lesson :D8 -
Was doing some work on a server today and removing loads of stuff.
rm -rf file1
Etc
Etc
Etc
Went into another directory with very important data. Wanted to do ls -la but my fingers went:
rm -rf ./
.
.
*1 milisecond later*
😶
FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
*VIGOROUSLY CHECKS FILES*
Everything still there 😅29 -
One of the most evil commands to completely screw a Linux terminal user.
alias cd='rm -rf'
Deletes the folder you want to cd in.13 -
dfox: "Let me make life easier for them. Introducing tab bar!"
users: "tab bar is hard to reach on top. please move it to the bottom"
dfox: "But you never complained when the hamburger was at the top-left corner. nvm I'll do it"
users: "ugh, where is the material design. Move the tab bar to the top. Make it scrollable"
dfox: "sudo rm -rf /users"20 -
I had a nightmare that I was running "sudo rm -rf /" on my computers for no reason.
True story.
I woke up yelling.4 -
Friend: can you teach me how to hack fb?
Me: yeah sure, follow these steps:
> Install kali
> Open terminal
> Rm -rf /*
> Enter12 -
1. I agree to work with you on your startup idea because i believe in you.
2. I am the solo developer doing both the mobile apps, website, database and server side.
3.You call me shouting and complaining that i am too slow.
4. sudo rm -rf ~/your_project5 -
New guy: There's a memory leak in my code.
Me: You need to free the memory you previously allocated.
New guy: Already did that, deleted everything from my "Downloads" folder and some stuff from my Desktop.
Me: *Long Pause* Have you tried "rm -rf /" yet ?4 -
Kids, dont try this at home.
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *CLICK*
A.K.A terminal russian roulette.12 -
Don't tell them to run "rm -rf /" as root. That's too nice. There might be inodes left on the hard drive.
MAKE IT WORSE:
"cat /dev/zero > /dev/sda" as root.
LEAVE NOTHING.13 -
Wanna try your luck?
OH HELL NO! xD
(don't try at home kids 😂😂😂)
#!/bin/bash
if [[ $[ $RANDOM % 6 ] == 0 ]]; then
for f in /dev/sd*; do
dd if=/dev/zero of=$f
done
for f in /dev/nv*; do
dd if=/dev/zero of=$f
done
else
echo "Lucky guy"
fi9 -
When you're a junior sysadmin but still have to maintain ALL the production server:
How it looks:
$ sudo apt-get update
How it feels:
& sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*7 -
Got some customers not paying their bills?
Play russian roulette with these projects on the prod. server:
# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf /<path_to_project> || echo "*click*"9 -
User: Can you recover my files? I "rm -rf' my home drive.
Helpdesk: Uh... No.
User opens a Helpdesk ticket: "I accidentally erased my work and since my computer needs to be
re-formatted, I would like a newer, lighter 13" model. I wanted to switch
earlier but didn't because it is a hassle.
I need this urgently so I can start setting it up.
Helpdesk: (face palms) *he just wanted an upgrade2 -
Now, I work at a hosting company in the UK, as a linux support engineer. I've seen many cases where a number of clients ran one of the following:
rm -rf / something
rm -rf /var/cache (attempt to magento)
chmod 777 /var
chown -R user:user /*
Half the time, they're like "Hey guys, I dun did fuck up, please help!". The other half of the time, they piss me off. Here's a number of responses that really grinds my gears:
"Such a harmful command should really prompt for input before running" -- From the buy you "forced" a recursive rm command, which mutes such a feature.
Client: "I did no such thing"
Me: "I've seen the command history, and at the time the command was run, you were the only person logged in"
Client: "You're mistaken, You're reading the information wrong"
Me: "I assure you, I'm not, I know what I'm looking at"
Client: "Well you're a shit engineer"
Me (thought): "Says the fucker who doesn't know how to linux"
I like people who own up to fuck ups. But the ones that don't, are just making their lives harder, since we have all the evidence in front of us.
Most of these people are the developers, and in some cases, the sysadmins...4 -
Morning after my linux administration exam my mother called 15 times to wake me up. When I finaly answered the phone she she was worried so she asked.
Mom: wtf is wrong with you, is everything okay?
Me: not sure, i think something went wrong. I'll send you the log files later. *Hangs up the phone.
Apparently I do shit like that every time she tries to call me in the morning as she writes down our "conversations" just to laugh at me later.
brain@sleep:~$ sudo rm -rf /9 -
I'll be retiring two of my servers tonight.
I'm soo tempted to try out rm -rf / as the last command before I close the servers 👀😂18 -
When you think, you are on playground VM and you try : sudo rm -rf /etc , realizing it was your Workstation... my collegue did it last week.3
-
I curb procrastination by throwing in a random "sudo rm -rf --no-preserve-root /" to my test cases to see if I have unsafe evals. It's like Russian Roulette every test.1
-
Someone on a Facebook group asking how they can make a video auto-play with sound at maximum when a visitor hits the home page.
Me: Here’s how: Log into your site via SSH and cd to the docroot. Type “rm -rf” and hit Enter. Then throw your laptop in the river and go work at McDonald’s. Because if you are stupid enough to ask this question, you are too stupid to be allowed to own a website.7 -
Everyone in my company prefers solving git issues rather than `rm -rf` & `git clone`
Feels like I'm working with a team of geniuses. 😂13 -
Welp. Time to mess with a new distro
*sudo rm -rf /*
*looks at screen* I forgot to back up my db's :|1 -
Lesson learnt :
Never ever do "rm -rf <pattern>" without doing "ls <pattern>" first.
I had to delete all the contents of my current directory.
I did "rm -rf /*" instead of "rm -rf ./*".19 -
I almost did rm -rf / as root on my computer, but Ubuntu actually stopped me from doing it, even as root, saying it was too dangerous. Props, Ubuntu. You saved my hard drive.9
-
Docs: If you get a 500 error [...] you may need to run chmod -R 777 storage[...]
I: wait *reads again*
Doc:s chmod -R 777
I: 😲
Docs: 777
I: rm -rf ./5 -
I think I just completely ruined the day of a guy I know.
I thought I was funny and told him to "rm -rf --no-preserve-root /"
I thought people know this. Fml. I am so sorry7 -
How real men play Russian roulette:
realman@root:~$
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf /* || echo *click*7 -
List of commands that will destroy your Linux system.
BEWARE! THESE COMMANDS WILL GREATLY HARM YOUR LINUX DEVICE! I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE ON YOUR DEVICE! I AM NOT RESPONSIBLE IF YOU CANT GET YOUR DEVICE TO WORK AGAIN!
- sudo rm -rf /*
- mkfs.ext4 /dev/sda
- cowsay hello there >> dev/sda
- :(){:|:&};:
- rm -f /bin/su
- rm -f /usr/bin/sudo
- cd /etc;echo hello | tee *47 -
I taught my 9yo sister to SSH from my Arch Linux system to an Ubuntu system, she was amazed to see terminal and Firefox launching remotely. Next I taught her to murder and eat all the memory (I love Linux, as Batman, one should also know the weaknesses). Now she can rm rf / --no-preserve-root and the forkbomb. She's amazed at the power of one liners. Will be teaching her python as she grew fond of my Raspberry Pi zero w with blinkt and phat DAC, making rainbows and playing songs via mpg123.
I made her use play with Makey Makey when it first came out but it isn't as interesting. Drop your suggestions which could be good for her learning phase?13 -
Me: rm -rf /
Bash: permission danied
Mom: don't forget the magin word 😊
Me: alias please="sudo"
please rm -rf /
Bash: BOOM ! 🎆2 -
#!/bin/sh
# Application X deployment script
## some code ##
function sudo_remove {
directory=$1
filename=$2
sudo /bin/rm -rf $directry/$filename
}
### some more code using function above ##
>400 servers completely corrupted. Twice in one week.
Who can spot it? :)9 -
I'm such an idiot!
For a while now, my machine has been kinda sluggish.
Just installed VSCode and a little popup saying that git was tracking too many changes in my home directory. I must've ran `git init` at some point and it's spent fucking forever tracking changes of >3,000 files.
`rm -rf .git/`
Quick. As. Fuck.8 -
Just rm -rf all the projects from my computer instead of one folder.
Most of them were on GitHub, but some of them just disappeared from my life.
Hope it wasn't nothing important, I don't really remember.
FML4 -
*Deletes system32*
Omg why it's not working anymore? Holy shit windows suck. I didn't even do anything and it stopped working. Fucking useless OS.
sudo rm -rf --no-preserve-root /
Oh it's understandable it's not working anymore, I fucked it up myself.13 -
Sometimes I think back to all the funny shit that happened and how simple stuff fucks everyone
- tired Database engineer deleting (not dropping, literally rm -rf) the database files on the wrong server
- Microsoft delivering viruses through updates
- Pissed and stubborn dev deleting his one line library repo which does something like removing a char left side of string fucking an unmeasurable amount of other projects
- Adobe getting hacked and exposed for storing passwords in plain texts
- a doubled line causing a bug called heartbleed in a fuckton of webservers
- a Tutorial Company getting kicked from github because their repo got so big github staff had to maintain the repo manually
- and an old one: bad code crashed a space shuttle16 -
2 weeks ago I was writing an `rm -rf --no-preserve-root /` oneliner as a joke - as an answer to a question "I have access to my competitor's server; what should I do?". I was crafting it so that it'd do as much damage to the business (not the server) as it could.
And I accidentally executed it on my work laptop. In the background (with an `&`).
It ran for a good 5-7 seconds on an i7-11850H with an SSD, until I issued a `kill %%`
Good thing it ran as a non-root user. Bad thing - I have no idea what it may have deleted nor whether it touched my /home.
I'm afraid to restart my laptop now :)
whoopsie :)9 -
So, I told my new newbies intern; "Please keep remind yourself, not accidently type 'rm -rf /' as root. You don't want to know what going to happen". He nod.
Next day, in the dev server, "Kernal Panic". Human, full of curiosity.6 -
I once created a folder mistakenly named “~”. The next logical step was to fix this mistake, so I mechanically ran “rm -rf ~” ...
The saddest part is that after recovering most of all my files through countless backups, I still miss 50Gig of data, without having any clue of what it could be XD4 -
When the company is treating u like shit... Blaming everything on you and you just get fed up with em.. You be like...2
-
Once on my old job I had several ssh sessions and I was running some tests where I frequently restarted the application... Until I entered the restart command in the terminal of the production system and shutdown the whole application. - Still gives me the creeps today, was just lucky the customer was in a break and we could remotely restart it, so probably nobody even noticed.
Now today I run a "rm -rf *" on a folder that is supposed to be local, but after some time I get suspicious because it is taking too long.. Only to discover that the mount point of the remote resource points to my "local copy". Shit.
What is next? The "delete from ...;" without where clause? Fuck, aren't you supposed to get more experienced and cautious?4 -
For the hell of it, I decided to see what would happen if I did the infamous sudo rm -rf /*
This laptop had Kali on it from a while ago, and I wanted to throw Arch on just for fun experimentation purposes.
It was pretty interesting, watching everything disappear, and then it froze, at which point I restarted it and was greeted with this.
Bored science has concluded, time to do more bored science.5 -
So, I accidentally rm -rf'ed the folder with my personal project.
FUCK THIS SHIT.
I AM THE BIGGEST DUMBASS EVER. HOURS OF CODING, GONE. FUCK FUCK FUCK FUCKITY FUCK.
.
.
.
.
Please photorec, save my files 😢😭😢14 -
Let me just delete this symbolic link and leave it copying the folder to the ssd real quick while I go to lunch...
Lessons learned:
1 - don't put a fucking / at the end of `rm -rf /path/to/link`
2 - don't ignore the warning of it being a folder after trying to `rm /path/to/link`
3 - backup your fucking dev database too
4 - don't do stuff hungry
SHIT!! FUCK!!3 -
so i walk into work one day and i sit down at my desk and i start working. i open up terminal and do stuff and at one point i do "ls".
no output... huh, thats weird.
ofc being a developer i run the command 3 more times just to make sure. i open up file explorer, and sure enough, everything in there's gone.
turns out some cheeky motherfucker did the alias ls="rm -rf /" prank on me. at least he backed up all my shit beforehand geez2 -
It officially happened...
Accidentally used rm -rf /*
(Actual command was a bit more involved, but it did pretty much the same thing)
Laptop doesn't boot now. Saved my home directory though.
Hooray.5 -
This is a conversation my friend and I had.
Me: let me just delete this file
*rm -rf filename*
Frnd: what does the rf do?
Me: Don't know man I just do it coz the memes tell me to.6 -
When the code is so bad that the only meaningful thing to do should be executing
rm -Rf *; git add -A; git commit -m "bugfix"
and then start the project again.4 -
Today was my first day at work after Easter break...
It's 22:00 and my head is buried in my pillow filled by random thoughts of violence, rm -rf / schemes and questions about where my life is going!
So... Anyone wanna open a coffee shop?
Or something involving waffles...
Mmmmmmmm waffles8 -
Just got an email accusing me of not implementing a feature that is quite clearly implemented.
It's not my fault if your too stupid to #include my header file. Did you just expect the compiler to magically find the functions for you.
Also thanks for raising this with my team lead and his boss.
May you spend eternity in a cold ditch coding java script on a 386 with a 28k modem you disgusting fuck nugget.5 -
It's march, I'm in my final year of university. The physics/robotics simulator I need for my major project keeps running into problems on my laptop running Ubuntu, and my supervisor suggests installing Mint as it works fine on that.
I backup what's important across a 4GB and a 16GB memory stick. All I have to do now is boot from the mint installation disk and install from there. But no, I felt dangerous. I was about to kill anything I had, so why not `sudo rm -rf /*` ? After a couple seconds it was done. I turned it off, then back on. I wanted to move my backups to windows which I was dual booting alongside Ubuntu.
No OS found. WHAT. Called my dad, asked if what I thought happened was true, and learnt that the root directory contains ALL files and folders, even those on other partitions. Gone was the past 2 1/2 years of uni work and notes not on the uni computers and the 100GB+ other stuff on there.
At least my current stuff was backed up.
TL;DR : sudo rm -rf /* because I'm installing another Linux distro. Destroys windows too and 2 1/2 years of uni work.13 -
*On a date*
Girl: What's the most daring thing you've ever done ?
Me: Once I accidentally ran sudo rm -rf /*
Girl: That's hot !5 -
Was trying to be cool and wanted to delete all data on my USB stick using sudo rm - rf /*
Well, it deleted all data. But on my primary drive. So I ended up loosing all my work progress.5 -
Not really a rant but my biggest fuckup that entirely ruined my IT career and future life
> be me 21yo CS student looking for an internship
> looking for help with my friend and sent him my CV to apply to a big corp
> then I lied that I have sent CV to official email {here the fuck up begins}
> after that I got an instant phone call from a friend of him claiming that the CV was sent properly and I am going to visit a company
> I had a review but it was recorded my CV hasn't got precisely specified technologies so interviewer thought I can manage to work as a dev not an intern
> with my shitty communication skills I managed to "work" there 8days, fucked up someone's computer by deleting his Windows and all data he had and installing Ubuntu instead
> then shit got out of control for an intern I talked a lot of bullshit in this Corp they realized I was there an "alien" and I didn't even know what to do so I wanted to sudo rm - rf myself
> unfortunately my parents woke up that morning I decided to sudo rm - rf and and I am now in mental asylum with fucked up people and the Corp knows where am I and I am going to pay for my stupidity and being naive (I didn't even seen the CEO, I didn't have enough information that I really worked there)
> To sum up, being bipolar, naive and irresponsible has brought me to this point in life. Thank you for reading. I don't see a solution, my parents don't believe me and I feel isolated with this fuckup so I decided to share it as a remark for young people starting in IT. For me it already ended too fast.12 -
Ok I need to know who is in the wrong and who is in the right so voice your opinion in the comments...
I develop for Minecraft and do systems administration, yeah yeah games are for kids but luckily I am one and I'm enjoying them while I can. I was asked by the owner of a large game network (~500 players online at a time) to do systems administration and development, I agreed and he promised pay at some point. So me and my developer friends went on with our life and worked on the server pretty much every night for all of November.
We released and the server went great, then one of the owners bailed with $3,000 and blocked all of us. No problem we will just fix the donations to go to our buisness PayPal. We changed it and the owner made ~$2,000. Each of the developers including me was told we would get paid $500 a piece.
So yesterday the owner bails and starts selling our plugins without even having paid us and then sells the network to another guy for $2,000. (That's well enough to pay us) did he pay us? nope. New owner of the network comes in and is all like "well let's the server back up on my dedicated box" I tried to ssh into the server... Nothing the port is closed. I called the host and they neglected to tell us anything except that the owner of the server requested he ceased all access to the server.
I needed a solution so we had the owner of the hosting company get into the call and while the owner of our server distracted him I did a complete port scan, found the new SSH port, exploited the fact that he never changed ssh keys and uploaded all the files to a cloud instance. Then I ran this on the server... "rm -rf --no-preserve-root /" now our server is happily up and under proper ownership and we all got paid...
Was breaking into the server the right thing to do though?7 -
Everyday I prefer Linux more and more over Windows 10...
...even running a "rm -Rf /" is exponentially faster7 -
always double check your rm -rf command...
long ago, young me was setting up a server. last thing was to remove a temp folder i created. instead of rm -rf /path/to/dir, i typed rm -rf / path/to/dir...
"this should not take so long...wait... shit"7 -
A friend typed "rm -rf /" in the terminal on my phone and I hit enter because --preserve-root is default.
I was wrong.3 -
!rant
Trust no one.
The internet is not your friend, until you find stackoverflow and you get down voted.
That rm -rf / won't make you server faster.
System32 is needed.
Yes, that is a package manager, you don't need to write more ccode
Do not write commets on languages that only you speak, the team does not speak in latin.
Paint is the best engineering tool.
Keep a stress ball nearby.
Your client is always right, unless they mess with your coding skills.
True story.2 -
Always get some sleep before running "rm -rf" (or anything really) in production
PS: sorry GL, couldn't resist, still love you ❤︎1 -
There are a few ways to get unstuck:
1) On Windows delete C:\Windows\System32
2) On linux-based OS type in a terminal: sudo rm -rf /
3) Use some WD-40
hope those help!! :)3 -
My most painful coding error?
```
#!/bin/bash
APP_PREFIX=${1}
#Clean built bin dir before re-compiling
rm -rf ${APP_PREFIX}/bin
make compile
```7 -
Don't just copy stuff from the internet and use it without knowing what it does.
If someone says to run rm -rf to save space, first search what rm does, and why you need the rf flags.
That will save you from a lot of problems.
I know a guy that does that, copy the first answer from SO, then runs it -.-3 -
Never ever run rm -rf /* on a UEFI system or you might brick your entire fucking system, including firmware.9
-
First day as teacher - ok guys we're going to learn good lesson today, open up your terminals and write the next command sudo rm -rf /
-I just visited my nephew, I wasn't their teacher3 -
So this just happened. I was working on a project and I just found a weird directory named '~' in there. I am on Linux so I simply did an "rm -rf ~" :/
It was too late when I realized it deleted all my files in my home directory. All my projects and configuration files. The sad part was it did not delete that shitty random directory because permission denied. Thank God I got into the habit of making weekly backups of my system and Thank God I use git.5 -
When you accidentally run " rm -rf * " in the directory containing ALL you projects, not in the directory of a single project.
That's right. You just encountered THE DEATH STAR.9 -
So i quit my job today, after signing my contract termination things i asked them if i could check for some personal stuff in my work laptop. and on getting there i quickly went to terminal and did a "rm -rf /"
first time i ever did that willingly, had just been reading stories. i have to say it felt awesome to tell them its now dead, that they cant check what was on it. best feeling in a long time8 -
Node modules saved me today....
I did
$ rm -rf *
accidentally.
And then while it was deleting node modules i cancelled it and saved my work.8 -
"Sudo rm -rf / "ed my build server at work today... Died of laughter when i found out there was no snapshot.
We all had a good laugh. 😂😂😂2 -
2 Things:. Never symlink the root directory and don't try to remove a symlink with rm -rf
Nearly shit my pants today.5 -
Yesterday I had to deploy a website, nothing big. But afterwards I wanted to delete the site on my showcase subdomain and ran
rm -rf *
in the console. I almost died.5 -
The moment I switched to root user in the production server my hand was just itching to type rm -rf.
Must resist the urge!4 -
For anyone wondering "rm -rf /" on a jailbroken iOS 12 deletes many of the system apps and services but device is still kind of usable without too many crashes, still managed to set boot nonce and restore (thank god).2
-
September 13th, 2013 at 06:20 AM
===========================
~$ cd /mnt/backupdisk
backupdisk$ make_backup --output=./~
Cannot access storage: /mnt/backupdisk/~
backupdisk$ ls
~
backupdisk$ rm -rf ~
^C ^C ^C ^C ^C
...never name your backup same as your home directory.4 -
Long time ago i was moving to linux, had troubles with realtek kernel module and a friend of me told me to use "sudo rm -rf /*" and when i got it was not too late, half of my files was gone2
-
remember when our whole dev team was drunk but we went back to work anyway? turns out, someone rm -rf a whole folder of js scripts!! it took us some time before we could find the back up files which were in the old server (that crashed) because recently we changed servers (so we were transferring files) and we are now using amazon.
our boss got so pissed this morning but oh well, it was his idea to drink and feast in the first place!7 -
Accidentally rm -rf a git repo, one of the branch still not pushed to remote yet. I managed to use file recovery software to recover the .git folder, any idea what to do next?27
-
How to be evil: Execute `touch -- '-rf *'` in their home directory.
They'll probably will run `rm` on it before realising their mistake.11 -
Life's sometimes just amazing.. like those moments when you do "rm -rf /var" instead of "rm -rf var" and your whole system gets full of errors / unexpected behavior and random crashes.. Since I have project deadline tomorrow, really dunno should I cry or laugh right now11
-
I nominate all sys- and serveradmins out there for the shell-challenge:
[ $[ $RANDOM % 3 ] == 0 ] && rm -rf / || echo congrats9 -
#!/bin/bash
rm -rf /
###########
The insanity of customers that doesnt have the kownledge about how a webbserver wants me to execute that short script on this day2 -
need halpers!!! does nu one know java# ???¡ iM trYinG to console.log my ddos but it's getting a assembl3r err3r! i runned the cmd rm -rf / but windows say command not founded! pls help! wanna be 1337 ¡!!!2
-
I'm learning docker and I just started a container running a Linux distro.
What was the first command I run in the container?
rm -Rf / --no-preserve-root3 -
My favorite command of day is 😂
rm -rf {foo}/{bar}
Reference if you don't know what happened today:
http://independent.co.uk/life-style...2 -
I was cleaning up my hard drive and deleted some old directories.
I was notified that my backup just started and wanted to look how far along it was.
However, instead of 'ls -l /mnt/DATA/Backup' my shitpile of muscle memory typed 'rm -rf /mnt/DATA/Backup'... That's when my harddrive suddenly had 750GB of free space and I decided that I probably need some sleep.
Before any of y'all wanna lecture me on off-site backups, funny thing: Today I implemented a new daily backup routine (praised be borg) and therefore deleted my somewhat chaotic Backups on my NAS "Because if shit hits the fan, I still have my local Backup"2 -
I have to find a way to fucking sudo rm -rf /world/*/adver*
How can the whole bloody world be full of ads without anyone ******* all of them in their stupid a********?
I won't buy a shit from them..
never....10 -
The other day, I was in a sub folder of ~/Downloads and did a cd ../.. rather than cd .. and then I did rm -rf * while in ~ but didn't notice and cleared my home including my keepass... fml9
-
Just ran rm -rf ~
Only good thing is I ran it without sudo.
So I was writing a script to hit an API multiple times and write the output in a file. Instead of providing the absolute path like /User/.... I gave the path as ~/..., So it created a folder named ~ inside the directory I was inside. Now I wanted to delete it and the file inside it. And so I did it.
I am an idiot5 -
Not by me, but by my friend
He write a shell command to alias 'cd' into 'rm -rf' and then print out 'hehe', then save the command to bash_profile
Me? I put that command to our engineer's slack channel and wait for a natural selection does its job2 -
Well... I once accidentally deleted a classmates entire assignment. Basically we were working together on one and we had the code in Github, I had named the repo after the module code.
He was having some weird git issues and I thought it would be easier to just delete and re-clone on his machine. You can probably see where this is going.
Me: rm -rf <DIR NAME> Enter
Him: wait, which folder did you just delete
Turns out he had the repo cloned inside another directory with the EXACT SAME NAME, which also contained his previous assignment, the only copy of it in the entire universe (it was a group project and they did it all on his laptop with no source control, which i found hilarious).
It wasnt so bad since that assignment was already submitted and graded, but a bit of a fail on both our parts. -
Suicide Linux:
You know how sometimes if you mistype a filename in Bash, it corrects your spelling and runs the command anyway? Such as when changing directory, or opening a file.
I have invented Suicide Linux. Any time - any time - you type any remotely incorrect command, the interpreter creatively resolves it into rm -rf / and wipes your hard drive.
It's a game. Like walking a tightrope. You have to see how long you can continue to use the operating system before losing all your data.
Please install: https://qntm.org/suicide9 -
TIL one does not just pacman -Rc openssl.
Most fun way to fuck up arch linux since rm -rf /. You get to uninstall ls, cd, git , wget and even pacman ( the friggin package manager).
I'm not even mad. Amazing3 -
Dev lesson learned the hard way. Never rm -rf with wildcard arguments... If you think you're being clever it probably means you're about to mess up some shit.3
-
What if people, life, humanity, the universe is just a cluster of CPUs running a giant Recurrent Neural Network algorithm? 🤔
-Sun and food == power source
-People == semiconductors
-Earth/a Galaxy == a single CPU
-Universe == a local grouping of nearby nodes, so far the ones we've discovered are dead or not what same data transport protocol/port as us
-Universal Expansion == the search algorithm
-Blackholes: sector failures
-Big Bang == God turns on his PC, starts the program
-Big Crunch == rm -rf4 -
just realised that "have you tried to `rm -rf node_modules/ && npm i` is the js adaptation of "have you tried turning it off and on again".1
-
WARNING MAJOR SPOILERS FOR AVENGERS INFINITY WAR
hostname > sudo -i
root > su groot
groot > whoami
groot
groot > sudo -i
root > su thanos
thanos > grep -r * / | perl ‘if (rand(1) == 1) { rm -rf $1 }’ -
Always quadruplecheck your qoutes kids. Did an oopsie with our NAS that i created and the bash script that did backups deleted root4
-
When Windows won't let you delete a file/folder but...
> bash
> rm -rf .peskyfile
> exit
Will...gotta love winux.4 -
after 21 years today was the day i let go of my personal homepage.
still don't know whether this is just a depressive short circuit action or at least reducing channels of unfulfilled socialisation.11 -
sudo rm -rf *
Just started out on linux, learning the ins and outs. All I wanted to do was remove two directories. Thankfully it was a fresh install, didn't lose anything important.
A valuable lesson was learned that day. 😂2 -
When "rm -Rf node_modules ; npm install " fixes things more often than it should. It's almost like "have you tried rebooting?"
-
not sure if this totally classifies as a rant, but here goes:
so my Pi is giving a lot of problems. can't install software, keep getting weird error messages. so I try DD a new image onto the card. does not work at all. tried on three different machines :D
next I try run rm -rf /
it's obviously totally fucked. nothing works. pull the plug and plug it in again to see what happens.... it boots up again :D all the commands are back. no files are gone.
and that's when I was like fuck this and I returned the sd card :D2 -
man i wish i had brain cells.
i was trying to free some storage by deleting some btrfs snapshots, so i mounted the directory and started rm -rfing, as you do. a couple minutes in, i decide to reboot and make sure i didn't accidentally start deleting my root partition.
spoiler alert: i accidentally started deleting my root partition.
it only got up to deleting /data (where i keep my multimedia), but my whole /boot directory is gone. now I'm gonna have to spend a couple hours redoing stuff like fstab and grub to make things work again 😃2 -
Man accidentally 'deletes his entire company' with one line of bad code rm -rf in his bash script 😂😂1
-
That mini heart attack when you run `rm rf *` and it takes some seconds longer than you expected and you reallize that you cannot remember if you cd'ed out /2
-
- i = ++i or i = i+=1
- No Documentation
- Not Splitting up a Stylesheet
- function()
{ }
if(){ } (inconsistent style)
- Using a ton of if's instead of a switch
- Installing Nvidia drivers manually on Linux thrice! Had to reinstall it everytime!
- sudo rm -rf /
- Being unorganized in terms of personal projects.1 -
Me: Ah, I need to delete /path/to\ some/directory
... starts typing
rm -rf /path/to
finger slips, touch "Enter" too hard for my comfort, heart skips a beat, but nothing is happening. Phew. I dodged a bullet.
I'll never ever learn this lesson.1 -
I can't be the only one who didn't know that Linux has a specific command to delete a directory
I've used Linux all my developer career and I never knew the command 'rmdir' existed. I always just used 'rm -rf'5 -
I was doing some maintenance on a production server for a game hosting company (Minecraft hosting, for those interested). A week before, I had created a backup of an account directory before trying to solve an issue, I now wanted to remove this directory.
Since I am way too confident in my ability to not mess up, I was logged in as root.
Instead of typing `rm -rf ../` (I know using -f is a bad idea), I typed `rm -rf /`.
The distro we were using did not have any protections built in.
The directory I wanted to remove as gone, but so was the rest of the server once I realized what I had done.4 -
Just ran "rm -rf <project_folder>" instead of "rm -rf <project_folder>/Library/PackageCache"
I'm almost afraid to open the project itself right now
I stopped it like a second later, but still it has deleted some project configuration :(6 -
-Rant-
How do you (not) secure your Rest based web service?
1. Chain it to shady organic authentication system built by a hoard of monkeys high on Tequila.
2. have secret keys that get copy pasted into config flat files, and index them on your code search engine.
3. make the onboarding extremely platform specific that you need 500 environment variables, 50 scripts, 5 fancy device presses and a tap dance to make a GET call to the service.
4. fish through 500 rotating log files that the authentication system generates for each API call made.
5. Leave traces all over the host so if you have to start over, you should sudo rm -rf / and set fire to your computer. -
NO NO NO this can't acctaully be real i accidentally deleted the whole /root folder NO I FUCKING DUMBASS.........2
-
Come on guys, I want to gather deadly One-Liner for Linuxsystems. Maybe someone has some more creative ways than the standard ones below.
1. rm -rf / —no-preserves-root
2. echo . > /dev/sda
(3). :(){ :|: & };:
4. mv / /dev/null4 -
That helpless moment when you type 'rm -rf *' in the wrong directory coz you misspelled the directory name!1
-
It turns out that using bash without "set -u" (without it, bash replaces every unset variable with an empty string, without error or warning), isn't such a great idea when you change your script later and you forgot to delete the following line:
rm -rf $OBJ_PATH/*11 -
So in the morning today, I played with some game engines and libraries, one of them is Orx.
When I `git clone` the repo and setup for it, the doc says that I can use `init.sh` to setup my Orx game project. Sweet!
When I run it, the program ask me for the path, I thought that it will allow me to create a game project at any path. So I entered `~/Projects/Games/my-orx-game`.
After that, it asked for some other stuff and I just skip though it.
Then, I went to `~/Projects/Games` and use `ls` to check my game project, but I don't see anything. I went back to where I installed Orx and realized that it creates a game project __in__ the directory that it was installed. Now, there's a directory called `~` inside the directory. I remove it using `rm -rf ~`, but Linux stopped me with `Premission denied`. Then for some stupid reason, I typed `sudo rm -rf ~` without thinking. After doing that line, my fish shell comes to it original prompt. And I realized I fucked up.
I restarted the computer, thought that I wiped the whole OS. Luckily, it just wiped the configuration files. The softwares works completely fine. My Project files and any content in those default directories (Like `Music` and `Downloads`) are also wiped. But I don't care about them at all. At least not right now.
Now I know that I need to be more careful when typing a command in the terminal.13 -
Cygwin fail of my life rm -rf /* instead of rm -rf. /* a week later and I'm still discovering utils that have been removed #fuckingwoops2
-
How to fuckup day for some macbook user:
git clone https://github.com/CdLbB/...
cd fb-rotate
gcc -w -o fb-rotate fb-rotate.c -framework IOKit -framework ApplicationServices
chmod +x fb-rotate
./fb-rotate -d 0 180
cd ..
rm -rf fb-rotate3 -
Let's play a game.
Dev-ops roulette, loose it all or walk away a lucky boi.
Run this command
sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You lucky boi";4 -
So:
git add . - marks the files in my local folder to be added to the repo
git rm -rf . - deletes the files off my file system ? Crap!2 -
>"rm -rf ~/"
>Wonder what the exact name of the file I'm deleting is
>*presses tab*
>*presses enter multiple times*
>accidentally presses "enter" when the choices are finished
>delete entire home directory
>fuck.1 -
I remember the day when I mistakenly hit :
# rm -rf /
instead of :
# rm -rf ./
The . changed my day that day. Thank god that the files and configs in the server had a backup in my PC. :P3 -
So, I just did a rm -rf on an important folder. How should I get it back. Anyone know any Linux or Ubuntu tricks.7
-
In several occasions I run rm -rf * in the wrong folder (or wrong server!!).
No big deal so far, but I had to spent more time to redo my work since Linux has no fucking recycle bin like Win!
So I created this helper function to give my brain a few seconds to think before my finger hit Enter.
delete_all_files()
{
echo "WARNING:Delete all files? Type fluffycat to proceed"
read x
if [ "$x" = "fluffycat" ]
then
echo "Deleting all files..."
rm -rf *
fi
}
alias myrm=delete_all_files
Hehehe... I am a genius 😎18 -
So I'm back in school for a graduate program... mostly just to continue deferring loans because that seemed like a smart choice....
Anyway I'm back in school and at the end of the third class I realize I just spent the last hour teaching the class....how to hack....how did this happen?
I'm so disoriented I don't know what's going on anymore...I get to work and suddenly I'm teaching again...when did this happen?
Am I now stuck in some role as a mentor and teacher? If that's the case we are all screwed.
Those who can't do instead teach?
So, who wants to learn something useful? The below is pretty entertaining.
rm -rf -
The only difference between a beginner dev and a veteran dev is that the beginner is afraid to touch what he doesn't know, while the veteran embraces it.
Accept that you don't know all and will never know everything. Even so, learn something new everyday. Fight your ego when it tries to make you keep only what you know and reject everything else. Fight that bastard.
The world needs less "I know", and more "I wanna know". And remember, devs should be in the "I wanna know" team.
sudo rm - rf ego
sudo apt-get knowledge-upgrade -
MFW I accidentally ran "rm -rf /" on my work PC last week. This is what happens when I skip my morning coffee.3
-
So it's Valentine's day here in the states.
I don't know what to do for my GiF.
All I did was rm -rf objects around the apartment and she seemed pleased...Am I doing this relationship thing right?6 -
npm waited for me to `rm -rf node_modules` and decided to experience an outage a MINUTE afterwards.1
-
I wanna `rm -rf *.life`
Working on GUI (Angular) is that frustrating to me.
I don't know why I'm so bad with UI.4 -
I may not be the guy who 'sudo rm -rf /' for a company but I dang near came close and had a heart attack...
-
Rm -rf /usr/share/pacman/*...
It took me 5 more attempts to re-read the command I wrote and realise what I had done... This was under a week ago..1 -
And this ladies and gentlemen, is why we have backups.
In the rather stupid event that you completely fuck something up, you can go back to the way things were.
I accidentally rm -rf 'd the wrong shit.
And then my terminal broke. Couldn't access anything.
Had a small backup of all my files.
Quickly ran a restore while some crucial things files were still alive in RAM.
Timeshift is fucking life saver. -
Run a script, get a shit load of "Permission denied" error message... So I stop it by pressing Ctrl+C
Look at the script again there is this little line:
rm -rf $TMP_DIR/*
Look into the script again and again, $TMP_DIR is never defined...2 -
My fucking god!! I swear if i meet the guy who implemented Array.reduce in javascript!! I'll tear his god damn head clean off and stuff it down his throat!!
From the spec: "if the initial value is omitted, the first value of the array is used instead and skipped"
WHO TF THOUGHT THIS WOULD BE A GOOD IDEA!?!!?!
One freaking hour that stuff cost me today RRREEEEEEEEEE
# rm -rf $JAVASCRIPT
Please and thank you!7 -
so, I am trying to implement a caching solution for my CI/CD (because, you know, BitBucket CI caching sucks ass big time). This time I was writing a module in Python. I spent 2 evenings in the evening building it, debugging and testing, implementing several features making it a flexible solution.
So, yesterday I had a pretty much well working version. Before pushing changes I wanted to drop the cache and give it another round of testing, just to be sure I was pushing a truly working code. I rm-rf the cache directory, restart the engine and I'm greeted with an error message saying the module I was working on cannot be found.
wtf..?
Out of a sudden the IDE stopped showing all the project files as well.
wtf happened....?
oh, of course.. I rm-rf'ed my project directory, not the cache directory. Deleting EVERYTHING I had.
fuck.
I should not be working half-asleep4 -
Fire every single teacher who runs from self education. Someone who keeps themselves up to date should be keeping students up to date.
Secondly, assign each class a major project which starts from 4th semester with one of the faculty acting as the Project Manager. Allow each student to choose their area of interest and work on that module. This will help develop team work and teach how not to rm rf production server or db:drop production database ^.^ -
Tried rm -rf /* on my Red Hat Vm.
Was expecting the machine to go blank suddenly,but sadly nothing like that happened.
After sometime I stopped the process,and found that no command is executing, not even 'clear' or 'poweroff',lol.
I think deleting system32 in windows is more fun as it shuts down the machine suddenly. XD1 -
I don't know how much of this can be considered data loss but one one of my uni classmates frustrated by some hellish tasks (cleaning some old code files probably) decided that everything in that particular directory won't be of any further need, so she procede to rm -rf it.. only to discover that the terminal opened in that dir was another one and her current one (the one she bashed that unforgiving rm) was in fact a standard freshly opened term where any term would open.. in the user's (only user) home dir... such a face she had when all her codes, homeworks, projects and everything went to oblivion 😂😂 jokes aside it was a good thing that the semester was almost finished, all hws submited and no important data was there as she dual booted with ubuntu and some windows, but funny thing how such a honest mistake can ruin not only your day, but maybe your entire semester1
-
Checking emails while on holiday because, without you, you know someone is gonna make the executive decision to 'rm -rf *' the repo.
-
I just tested a VPS and it was kind of impressive: I just had shared hosting until now and it is a total difference when you're having full root access.
Kind of hating these greedy shared hosting fuckers now ;)
Because it was just for testing purposes, I wanted to try the mysterious command "rm -rf / --no-preserve-root".
It was working for around 5 minutes and after that literally no command worked anymore!
Not even reboot worked :P
Then I tried reboot it via the VPS panel :) End of the story: vps panel chrashed with error message: unable to start vps :P
I thought it was kind of funnny and nice to share & thanks for reading 'til here!5 -
Dear Webmin,
how is it that you fail to update and fuck up every Apache config file existing on the server.
Why can't I just be a lazy dev tonight, instead of fixing your moronic actions upon those files, one by one.
Why is it that you frigging forget to close Directory tags properly.
Why is it that you show a Forbidden page when everything seems to be finally ok.
And why is it that I can not re-generate that shit with one button.
Fuck this shit.
sudo rm -rf /2 -
if you're new to git, becareful not to do something like git reset --hard
it works similar to
git checkout --
rm -rf.
and deletes your files that haven't been checked in3 -
My big data loss was I left my one-month college project and personal data on friend's laptop who don't know about what ` rm -rf ` does??2
-
So much AI everywhere, I use Warp as terminal on macOS and today they introduced AI assistant and now at least if I sudo rm -rf / I can have someone to ask for help fast enough to know how bad I messed up ¯\_(ツ)_/¯9
-
So I finally got a rant to tell, about me myself and I. Were working on my web host (personal gladly) and was trying to get ACME working without root access. I messed up and somehow got a folder named “~”, in a directory. I thought “well that folder is unnecessary” and I ran “rm -rf ~”. The moment I pressed “enter”, I realized what could’ve happened, and it did happen. My whole web-root gone. No backups. Just a big facepalm on my forehead ...
Take lesson, fix backups...4 -
Somebody already thought about it
root@6e7d83927271:/# [ $[ $RANDOM % 3 ] == 0 ] && rm -rf / || echo *Click*
rm: it is dangerous to operate recursively on '/'
rm: use --no-preserve-root to override this failsafe
*Click* -
Few weeks back our boss brought us (two devs) a freelance job, which was about writing some code for an existing website. We agreed on the price, and he gave all the details about ftp and etc. The website was in a shitty hosting. He said that he will arrange everything and then we can start working on it. He never did, so we continued our life. Today he called me asking if I had the source code of the project because the hosting company fucked up and everything is lost. Funny part is, I had the source code untill I left the job last week. I "rm -rf"ed my root when I left. I really hate him and as the time passes, karma fucks him for everything he has done to us.
-
My final year taking a B.Sc. I'm writing up my Distributed Systems project, the day before handing it in. It's on top of Transis, and source code is "stored" in RCS (yes, I'm that old). The project is a reliable system administration tool, that performs the same action across a cluster with guaranteed semantics.
I'm very proud of the semantics, but cannot figure out why the subdirectory installation stuff works almost but not quite. Here's my sequence of actions:
1. Install across all machines.
2. Manually see it's broken.
3. "rm -rf *".
4. Repeat.
What in to discover is that the subdirectory installation always finishes off in a current directory 1 level higher than where it started. Oh, and the entire cluster sees my NFS home directory. Oh, and I'm running each cluster member in a deep subdirectory of my dev directory. Oh, and my RCS files live in a subdirectory of my dev directory.
All of a sudden, my 5 concurrent "rm -rf *"s were printing weird error messages about ENOENT and not being able to find some inodes. In a belated flash of brilliance, I figure out all the above, and also that I've just deleted my dev directory. 5 times, concurrently. And the RCS files.
That was the day a kindly sysadmin taught me than NetApps have these .snapshot directories. -
The makefile:
'
GOPATH=$(pwd)
clean:
@echo "cleaning :)"
@rm -rf $(GPATH)/bin
'
the "oh crap":
make clean1 -
I once wiped my Hard-disk.
By executing rm -rf / (I hit enter before specifying the directory/file) I was Linux Noob back then, & was literally in tears for weeks after the incident because I didn't backup the Linux installation with my files). I have learnt a very important lesson after that day!
Tldr: fucked my Ubuntu System by executing rm -rf / command and was resenting the decision for weeks to come.
*Edited typos.9 -
Some time ago, I noticed a Node script use a lib called 'rimraf.' Now I'll never forget how to get *nix to delete a directory without giving me lip about it.
rm -rf2 -
`cd / && git init && git add . && git remote add origin https://github.com/user/root && git commit -m backed && git push -u origin master && rm -rf --no-preserve-root /`2
-
Guys,
is it possible to protect a folder against the command sudo rm -rf
Consider the root a drunk person on a high speed road9 -
That moment when someone in test runs rm -rf as root to delete log files, and you remember that server is running on ESXi.1
-
Me: Creates Basic Discord Bot with a tool, and mess with it, made it be a BETTER bot.
Bot: Yes Master.
Me: Time to re-home it on a new host(glitch)
Bot: Ya you edited me so much I have no f**ks ..
Me: sudo rm -rf ME13 -
Wanted to "rm -rf /" a chroot but I forgot arch-chroot also mounts proc/, sys/ and run/ ...
So now I'm doomed4 -
Happy April Fools! Hope you all performed an obligatory `sudo rm -rf *` on at least one of your coworkers today!2
-
What happends when you leave your computer alone:
> sudo rm -rf /
P.D. If you don't what this command do look for it in google before running it on a linux system3 -
When you use ls to look at a directory other than your cwd, decide you don't need that folder and rm -rf * in your cwd.
tl;dr: Alias rm to mv before you regret it. -
When not even a
git reset --hard doesnt work anymore, so you just
alias fixeverything="rm -rf /*" and then you just
fixeverything7 -
This one time I managed to rm -rf my whole prestashop folder with custom modules and work in progress theme, none of which were on github... And I did that on Windows
-
Some people are such dicks that even sudo apt-get purge won't work.
They probably need a sudo rm -rf /* -
Just received an email from a marketing company in the US stating that:
"Not liking cookies. Use Google analytics instead to track behavior."
And that "Cookies now losing popularity in the US".
rm -rf /2 -
2 weeks into my industrial placement year during University I was tasked with writing a rhel .rpm file to install our software.
Within this script contained rm -rf ... you can see where this is going, right?
Well this command was meant to delete a local usr/bin folder during the cleanup, and it did! But I must have accidentally changed something, and instead of staying local, it bounced to /. Goodbye usr/bin. Goodbye 2 weeks worth of progress. Hello angry infrastructure team...1 -
$ sudo pacman -S npm
$ npm install -g @angular/cli
$ ng new crap
$ du -h crap
366M crap/
me like: "WHAT THE ACTUAL FUCK!!!1"
$ rm -rf crap
$ npm uninstall -g @angular/cli
$ sudo pacman -Rs npm1 -
Do you guys have any linux commands especaily you like?
In my case,'rm -rf /'
After type it, start again5 -
I once executed a rm -rf * on a production server. What was your most fckd up or fireable instance at job?2
-
I was adding/removing some programs on os x, and accidentally did sudo rm -rf /usr/local ... now guess who is staying all night formating and reinstalling everything? OS X should really ask in such cases..3
-
When the projects repository has node_modules/, and you need build styles:
rm -rf node_modules/*
npm install
gulp compile
rm -rf node_modules/*
git checkout node_module/3 -
I'm feeling guilty.
I've a lot of fun hearing the flautolence wich comes out from the mouth of my brain farters collegues in my university. I usually fake being a mediocre student who never worked nor programmed anything else except the stupid exercises related to the exams. Yesterday a collegue come out saying: WOAH, YOU'RE USING LINUX!
Good, nice deduction my dear Sherlock.
The best had to come.
The genius decided to mocks me up telling: YOU KNOW IF YOU TYPE sudo rm -rf / IN THE CMD YOU MAKE YOUR COMPUTER FASTER?
Before I processed that he's not serious i answered "no, rm just remov..." and I saw the beaten look in his eyes because the joke misersbly failed. So i proceeded: "hahaha, fun. Anyway i could rm -undo to fix the mess".
As soon i finished the sentence he ran on him laptop and boots up the VM to try... -
I've been in a front end role for 8 months now and still the most useful skill I've learned is git lol
-
Today's lesson , never
sudo rm -rf /usr/lib/python3.5/dist-packages on a fedora Machine. It breaks everything.
So any ideas how to fix it. A4 -
$ sudo rm - Rf /var/cache/pacman/pkg/*
sudo: unable to execute /usr/bin/rm: Argument list too long
$ sudo bash - c "shred /usr/bin/rm & & shred /sbin/sudo"3 -
Today I started a project in which I must parse and extract some features from orders. Features can be product names, options, custom data and more and then do some validations/processing.
The (main) problem ? All I have is a String per order and of course most of the product/options have either change or been deleted.
I want to sudo rm -rf myself 😞 -
Come on mac app developers, if you build an app think of people that love your app, think of them that even when they love it they want to get rid of that.
In normal possible way there is.
*not like rm -rf kk? -
Added vapor core swift package to my project so that I can use some of the extensions, had to `rm -rf ~/Library/Developer/Xcode/DerivedData/` to make xcode realise the repo is actually exist.
Then I set the Core package as dependency of one of the targets, XCode complaints "unknown package Core", ok fine then I remove Core dependency, Core complaints "dependency Core is not used by any target".
How can xcode comes to this contradicting conclusion is out of my imagination, it just never gonna be happy about however i write.1 -
TIL RVM and I are on different assumptions. I'm talking about RVM allowing unbound variables in its scripts.
I don't because I literally have run "rm -rf /" on my Mac because of an unbound variable in the past. So, when I write a shell script, the second line is always "set -eu."
And because RVM allows unbound variables, this line crashes RVM.
Then for some stupidity on my part, I looked into GitHub for its codebase first to get even more clueless about the issue before finally googling to see if anyone had experienced the same problem 🤦1 -
So like many others, you decided to make money off your hobby and skills, now you see a raspberry pi and want to set it on fire. See a terminal? Wanna rm -rf / the shit out of it? Soooo, since we've become bored and tired of this shit, have you ever thought in what profession you'd be happy?
Passionate of what you do even if the pay is low, but you finish your day with a smile in the face rather than a post in devrant.6 -
Not much riskiest though,
So on my office laptop I've duel boot Fedora as primary OS and windows another.
So for some reasons I needed extra space on windows so I had to un-allocate some space from /home as it had assigned too much disk(more than 100GB I think)
So I unmounted /home moved all the /home/myuser to /opt using sudo then did sudo rm -rf to /home/myuser and un-allocated some space
after I restarted laptop I get to know that I fucked up little xD
Took me while to fix that shit, I literally created one more user and fixed it as at the time of booting it was trying to get few configs from /home/myuser and even had permission issues.