How about sharing your favorite lessons learned moments?
locked by Michael Mrozek♦ Sep 16 '11 at 12:17
This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: FAQ.
|
I was curious if Well, flawlessly. A few minutes later I was searching for a rescue CD. |
|||||
|
|
When I first started working as a user consultant for the university I was attending, I was given limited |
|||||||||||||||||
|
|
Surprised nobody else has mentioned this one yet:
(While attempting to remove all hidden files and subdirectories, completely forgetting that it will recurse into |
|||||||||
|
|
Makefile:
Which, of course, makes Lesson: use version control. |
|||||||||||||
|
|
Had a friend run Broken down (by request) to make it a bit more readable.
It might be easier to look at it as
|
|||||||||||||||||||||
|
|
I meant well, I really did. Trying to As root of course, because only with root can true pain (and thus enlightenment) be achieved. |
|||||
|
|
I wiped the partition table of my main drive by accident, thinking I was working on another drive. With scrollback, careful use of |
|||||||||||||||||
|
|
Not really my moment, but someone else's. Back when I worked at a nuclear sciences research facility we used to run a number of SunOS, Ultrix and Linux computers and researchers had to share the CPU on those machines. As individual research groups got their own research grants they purchased their own computers, mostly SparcStations and they did the system administration themselves. SunOS used to ship with the OpenView desktop and a nice file manager, this is what it looked like:
Most of our researchers were running as root, and more than once we had to reinstall their operating systems because someone had decided to tidy-up the root directory and moved /bin, /etc, /tmp and everything else that cluttered the view into either the Trashcan or some subfolder. Other users chose to tidy up the /bin directory and remove any command they did not know. The lucky ones had back ups, most had purchased a tape drive, but did not have a tradition of running backups themselves. |
|||||||||||||||||
|
|
I did this once. Amazingly, the system remained functional for months. Cronjobs ran fine, no errors stood out in the logfiles. We didn't notice this problem until we rebooted the system months later and couldn't log in at the console. You could not log in as root, nor run |
|||||||||
|
and
when |
|||||
|
|
Back in the mid to late 90s, a friend of mine and I were discussing the folly of |
|||||||||
|
|
I remember trying to send a SysRq key sequence to a remote machine... ...but it was captured by the local one. |
||||
|
|
|
A simple Lessons learned? The prompt of the machine now looks like
with some nice red markup ;-) |
|||||
|
|
My favourite moment was, when a co-worker, who is an emacs user, wanted to edit an important file. Because
Under the influence of not enough or too much coffee he of course mis-typed Well, this is just another reason to use |
||||
|
|
|
Or another experience, how to feel really stupid in a few easy steps that don't seem all that stupid individually. Step one: establish an account for the kid, in case he wants to use a Linux box. Give it a trivial password, since after all this is a home system and isn't exposed to the net. Step two: allow time to elapse, so you don't remember step one. Step three: open the SSH port in the firewall (actually the NAT on the router) in order to ssh in. After all, my accounts have pretty good passwords, and it isn't like there's anything tremendously valuable. Step four: get notification from ISP that there's some sort of DOS activity going to a Swedish site. Assume it's probably the Windows boxes, and examine and harden them. Step five: get notification from ISP that it's still going on. Ask for some detail, get IP address of Swedish site, fire up Wireshark, find which box the attack is coming from. Step six: clean up Linux box, feeling stupid. Find the login came from a Romanian address. Remove accounts without good passwords. |
|||||||||||||
|
|
In the computer labs when I was in college, they had a screen saver that simulated a bunch of balls that would float back and forth. They pulled on each with simulated gravity. Once, while I was messing around with the settings, it crashed with the error |
||||
|
|
|
I was once developing a device driver for Unix. It had a pointer problem and during testing it started to write off the end of an array in kernel memory. I was slow to spot this and didn't hit the reset button immediately. The driver had scribbled all over the disk buffer cache which was then flushed to disk before I hit reset. A lot of the blocks were inodes and directories, and I ended up with a totally trashed filesystem. I think 6000 orphaned files were put into |
||||
|
|
|
I deleted /etc and then recovered it. I don't think I learned my lesson... I've had to recover from a deleted |
|||||
|
|
Last year, a colleague of mine was using one of our linux workstations to create copies of flash disks using the
By the time he realized his mistake - overwriting the machine's hard disk instead of the flash drive - the machine was already hosed. We had to rebuild the box, which incidentally was also the machine hosting all of our development VM's at the time... |
|||||
|
|
This happened to me last year. I was removing some files from the server using a temporary variable:
Guess what? The variable I almost broke the Control-C and ran to the CPU to remove the network cable!! Hahaha I'm sure someone had already done this... |
||||
|
|
|
While in my 2nd year of studying computer science we were given a homework assignment to write a program in C that would spawn a number of subprocesses with We were still quite noobs back then and most of peple didn't have any Linux machines, so we worked on our accounts on our faculty's main server (which was hosting official site and staff accounts and sites as well). Most of the people wrote forkbombs at some stage of trying to do the homework. Over half of my group got to the |
||||
|
|
|
When my University decided to switch the wireless network to use proprietary Cisco LEAP authentication... Started a very long battle that ended well enough. Wrote up documentation for others who wanted to run Linux and have access to the internet. Six months later they decided to add PEAP support as well. face slap It is my favorite because I won. I got it to work. |
||||
|
|
|
As root on Solaris,
...and everything went down. My friend got fired because of this. |
||||
|
|
|
I was a lab assistant for a Linux class. One of the students called me over because she could no longer Note the space between the directory name and the final slash. After a few minutes of "I really don't want to have her reinstall, so what is this doing and how.", I managed to find that /bin/su now had file permissions of |
|||||||||||||
|
|
Not that painful... But a fun little moment: I've mistyped (already available in Debian, Ubuntu, Gentoo,... repositories) |
|||||
|
This does not remove the repository. This removes everything that is not in the repository. After trying to get rid of the existing repo and then start source control again (on the completed first version of a project), these two commands nuked my entire code. |
||||
|
|
|
A company that I used to work for had its product running on SCO. I was doing some debugging about applications getting very slow on our demo server and at the same time there was a bunch of customers being given a demo/lecture about upcoming new features. So, I ran the application that used to get stuck, did my stuff on it to verify the root cause, but since it was still "stuck", I tried to kill it:
What I did learn was that pkill doesn't do exactly the same on SCO as it does on linux =) ... It basically kills everything the user has access to, and with root... that's everything =) |
|||||||||
|
|
My switch from Debian to Ubuntu started the day I tried to delete some files and directories, meaning to type
Unfortunately, I inserted a space between "/var/tmp/" and "*" and even worse, I was in the root of the filesystem.
Please don't try that at home! |
||||
|
|
|
There's a neat trick to do the equivalent of
Not so funny when |
||||
|
|
|
I had two drives installed at one point and had the root filesystem of the second drive mounted in a directory within When I realised what I'd done I immediately hit Ctrl-C but it was too late. My Now for the painful part. I go back into that directory in At least I was able to restore the system a lot quicker the second time ;) |
|||||
|

