A friend of mine taught me what he learned the hard way. Do as much as possible without invoking sudo, especially if you aren't sure what it does. Either that or learn to be ok with destroying and reinstalling your distro a few times.