What're some of the dumbest things you've done to yourself in Linux?

I'm working on a some materials for a class wherein I'll be teaching some young, wide-eyed Windows nerds about Linux and we're including a section we're calling "foot guns". Basically it's ways you might shoot yourself in the foot while meddling with your newfound Linux powers.

I've got the usual forgetting the . in lines like this:

$ rm -rf ./bin

As well as a bunch of other fun stories like that one time I mounted my Linux home folder into my Windows machine, forgot I did that, then deleted a parent folder.

You know, the war stories.

Tell me yours. I wanna share your mistakes so that they can learn from them.

Fun (?) side note: somehow, my entire ${HOME}/projects folder has been deleted like... just now, and I have no idea how it happened. I may have a terrible new story to add if I figure it out.

Analog ,

shutdown -h now on the wrong machine. Should have been “-r”. No IPMI but important enough to force me to drive to the office at night.

Ever since, I force myself to wait a couple seconds before sending any shutdown command, and tend to use reboot instead.

konsn ,

One time on Manjaro i had a dependency issue regarding python3. So i just removed it. The I watched in horror as i saw what packages depend on python3, including pacman and manjaro-system, but did not dare to interrupt the process and end up with a half-broken system, and my curiosity wanted to see it play out. Then I rebooted, and thus legally turned my Manjaro system into a half-working Arch install. It even displayed the OS as Arch Linux. Still managed to fix it without reinstalling by downloading the package files from http mirrors, but if i was smart the entire thing should have taken 5 minutes instead of a full afternoon. Was a valuable learning experience tho

MrShankles ,

I just finished doing a fresh install this morning, because my wifi card wasn't working. It honestly needed to be done anyway because I was out-of date, but the wifi card finally got me to back-up all my data and do it.

Fresh install, and wifi still won't even toggle-on. Was about to look for manual install of the driver, and so on and so forth... and then I noticed my folly

Fucking keyboard has a toggle switch to turn the wifi off. Not the worst and glad I didn't pull my hair out over it, but damn... felt pretty dumb this morning

Hyphonicql ,
@Hyphonicql@lemmy.ml avatar

Probably removing the default python 2 runtime environment because i didn't like how running python redirected to python2.7, had to reinstall my system 4 times in a year, 4th one is currently happening. 🥲

KingThrillgore ,
@KingThrillgore@lemmy.ml avatar

I once had grub and rEFInd installed on the same system and an Arch update hosed both. I was able to fix it with an Ubuntu LiveCD and went back to Ubuntu. I still use Arch in a VM as a treat.

mino ,
@mino@lemmy.ml avatar

Adding a DENY ALL line to the top of iptables, getting disconnected, realizing that I'm fucking SSHing into this removed...

ikidd ,
@ikidd@lemmy.world avatar

Uhoh, the nannies of lemmy.ml took away your naughty word.

alexsup21 ,

I installed timeshift to have a way to create restore points just in case I mess something up while fiddling with my Archbox.

I used it for a while before I decided to remove it. After that, I realized it didn't remove the "restore points" (I didn't fully understand how it worked) and thought it would be good idea to rm -rf /run/timeshift.

My whole /home was smited (it uses symlinks to create these "restore points"). Before I realized, it removed gigabytes of data.

Lesson learned: always understand how something works and always be careful when using rm -rf.

ikidd ,
@ikidd@lemmy.world avatar

Nice.

alexsup21 ,

thanks

KISSmyOSFeddit , (edited )

Best advice when using rm -rf
Don't.

MinekPo1 ,
@MinekPo1@lemmygrad.ml avatar

I once deleted /usr/bin while trying to delete /bin (symbolic link) because I accidentally misformed it . don't remember why I had to recreate /bin in the first place but it had something to do with installing java

notthebees ,

Mine was wiping my vps while backing it up. Luckily for me I only lost some files that I could easily replace.

sexy_peach ,

formatted the wrong drive. I had to run a data rescue program which gave a bajillion files with random names...

PrettyFlyForAFatGuy , (edited )
dir="$(something that ultimately resolved to "")"

rm -r $dir/*

on a company server

I also once completely destroyed the data in a db that wasn't backed up for that same company while trying to restore from a dump (which was deleted as part of the script i was running).

Luckily both of these mistakes happened on staging servers so no one really cared. (prod is backed up though so if i did it there, not that i have access to prod, it also wouldn't be catastrophic)

kawa ,
@kawa@reddeet.com avatar

Breaking the bootloader, uninstalling nvidia drivers ton install mesa without removing mesa/nouveau from the blacklist

vluz ,
@vluz@kbin.social avatar

Messing around with system python/pip and newly installed versions till all was broken and then looking at documentation.
This was way back on the 00's and I'm still ashamed on how fast completely I messed it up.

MonkeMischief , (edited )

Ha! I just did something like that. I thought I had "orphaned" BTRFS snapshots taking up space.

I opened a file explorer as root...I deleted this one that wasn't listed.

Oh wait..."Writable snapshot"...? Oh...no.

Yeah suddenly no programs or anything worked. Sadly there was no snapshot restoring out of that one! (That I would be capable of, anyway!)

So yeah, I managed to deliberately bumble past several safeguards into the "I should know what I'm doing" area, and found a magical way to rm -rf / from the GUI, essentially. Wee!

Thankfully, /home was its own partition, so aside from minor inconveniences bringing .configs back over and other little tweaks I'd implemented, I have reinstalled OpenSUSE Tumbleweed leaner, meaner, and cleaner. ¯_(ツ)_/¯

ACTUALLY, glad I backed up /home before the reinstall because the first reinstall attempt failed and wiped it!

Backups, kids. They really are the difference between "Aw darn, live and learn."...and complete heartbreaking despair.

rolandtb303 ,
@rolandtb303@lemmy.ml avatar

was too incompetent to install arch one time so i used archinstaller and created a separate home partition. couple years later that root partiton's close to filled up, and i do an update after deleting come programs to free up space. then some weird text appeaerrs in terminal, and so i try to update again (this time specifically wine), says loads of files already exist in filesystem. i think "this is weird", so i restart.

what instantly gets my attention is this text greeting me on boot

loading Linux linux...
error: file '/vmlinuz-linux' not found.
Loading initial ramdisk...
error: you need to load the kernel first.

Press any key to continue.

yup, i just borked my install, so i hastily whipped out an outdated arch USB, updated it using a spare laptop and am now on a reinstall (luckily i keep the important files on a separate drive, so not all is lost). extra insult to injury was that my previous install had my drive LUKS encrypted, so i couldn't evne get in there to possibly backup anything if i tried lol. but it's feels refreshing starting anew though.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • kamenrider
  • Rutgers
  • jeremy
  • Lexington
  • cragsand
  • mead
  • RetroGamingNetwork
  • loren
  • steinbach
  • xyz
  • PowerRangers
  • AnarchoCapitalism
  • WatchParties
  • WarhammerFantasy
  • supersentai
  • itdept
  • AgeRegression
  • mauerstrassenwetten
  • MidnightClan
  • space_engine
  • learnviet
  • bjj
  • Teensy
  • khanate
  • electropalaeography
  • neondivide
  • Mordhau
  • fandic
  • All magazines