this post was submitted on 21 Apr 2024
265 points (98.2% liked)

Linux

54398 readers
1028 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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.

(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 year ago

Today I did rsync backwards. I just restored the backup and moved on.

[–] [email protected] 4 points 1 year ago

I deleted /lib64/ld-linux-x86-64.so.

I did it because valgrind had a problem with it. I thought I can fix it with reinstalling the package. I tried to lookup which package is it from, but the command I used was wrong and I didn't get any result. So I thought, what if I created it, maybe I just forgot it.

the moment I deleted it everything stopped working. It was fixable only from a pendrive.

[–] [email protected] 11 points 1 year ago (1 children)

I was setting up fail2ban on an sftp server at work.

Guess who got admin permanently banned from that machine.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

I had a situation where I though my user was banned. I was troubleshooting an entirely different issue when it hit me. The Debian install was extremely corrupt. It was a restore from a snapshot but for some reason the snapshot was totally corrupted. I loaded a different snapshot and the machine worked fine.

The .ssh/authorized_keys was just gibberish in the bad snapshot

[–] [email protected] 7 points 1 year ago

Wanted to customize GRUB and tried the GUI program. I wanted it to boot without delays unless a key is being held, and also add a "Shutdown" option (GRUB script halt), in case I open the laptop and didn't want it turned on. The edits looked alright in GRUB Customizer but I should not have made them both at once, because it made "Shutdown" the default option somehow, so the OS would never boot and holding none of the special keys worked. I failed to update or reinstall GRUB using a live USB and ended up having to reinstall the entire distro.

[–] [email protected] -2 points 1 year ago

Switching to Arch.

[–] [email protected] 1 points 1 year ago

sudo apt-get purge java* good lord what a simple thing to avoid. I was pretty green at work during the time :(

[–] [email protected] 16 points 1 year ago

dd if=/dev/zero of=/dev/sda status=progress

hmm why is it so fast

OH

CTRL-C

and then a kernel panic yeah my fs was gone

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

Attempting to resize the system partition without backing the system up first (right after I spent the whole day setting everything up). Gparted failed, the system did not boot any more so I had to stay up the night to redo the whole setup. No personal data loss since the system was fresh, though.

Since I got into Linux via virtual machines and Raspberry Pi before using it as my daily driver, I made most of my stupid beginner mistakes (like changing permissions on systen files) where it did not really matter.

[–] [email protected] 2 points 1 year ago

Rermoved the Wireless card drivers while troubleshooting the Internet connection..

load more comments
view more: ‹ prev next ›