Learning More About Linux? 184
teh moges asks: "From an administrator point of view, I know a lot about Microsoft Windows: where files are stored, where settings are, which registry keys to edit, how to change drivers, and so on. I made the initial switch to Linux a year ago. I now feel capable enough with using Linux, from an end user's point of view, so that when things go wrong, I can fix them. I now want to become even more familiar with Linux. Are there any great resources, such as websites, wikis or books for someone that wants to find out exactly how Linux works and how to fix and modify it?"
Roll your own distro? (Score:4, Informative)
Now, by no means do I recommend this for day to day use. I love Gentoo, but it breaks. Frequently. And unless you know a fair bit about how the system works, you'll end up breaking it quite often yourself. This is a good thing, and introduces you to the various configuration files, locations of critical items, how everything slots together, and how to compile your own kernel. The Gentoo documentation is excellent, and if you go about it with a certain goal in mind (web server, router, media center) you'll end up learning a fair bit about Linux in the process.
Break It. (Score:5, Informative)
I'm serious.
Re:Roll your own distro? (Score:5, Informative)
Honestly though, like stated above, once you understand that Linux basically treats everything like a file... you can fix pretty much anything. As far as a good reference or tips site. Google [google.com]. 99% of the time, a quick cut and paste of an error will direct you to the right place. (That is if you don't understand it right away.)
Wiki (Score:2, Informative)
Real men (Score:1, Informative)
Re:Only thing to understand... (Score:4, Informative)
SOme input (Score:3, Informative)
See 'man Linux Filesystem Hierarchy'. In case for some reason that doesn't work on your system, here is a link -> http://tldp.org/LDP/Linux-Filesystem-Hierarchy/ht
Read a general introduction to Unix (Score:4, Informative)
There is one "classic" Unix introduction book that I can strongly recommend, and that you can probably buy used for a dollar: Exploring the Unix System [amazon.ca] by Stephen Kochan and Patrick Wood. Make sure to get the paperback edition that is about 400 pages. Also, apparently the authors are going to release an updated version of that book -- check http://www.kochan-wood.com [kochan-wood.com] for updates.
Once you learn the fundamentals of Unix systems, then you would be ready to learn the modern tools available in Linux distributions. Remember that is much more important to learn the principles and philosophy that Unix was built upon, rather than attempting to memorize arcane details.
Re:heres a few (Score:3, Informative)
it should be debuntu.org
Re:Roll your own distro? (Score:4, Informative)
When it breaks, portage doesn't tell you why, you basically have to search the Gentoo forums for an answer. In the inevitable thread(s) related to the problem I often find a response from a dev which says that you need to update X and Y together, so both X and Y block each other. Having the package management system manage packages for you is evidently too much to ask.
I do like Gentoo's arrangement of config files etc. though. It's nice to work with, just shitty to update.
Re:Only thing to understand... (Score:5, Informative)
For the Ask Slashdotter:
There are a few others, but these guys are the important ones for what follows. There is also a
GCC is your compiler. You probably won't have to play around with it much, but I'll talk about some tricks to give you more insight into Linux. Suppose there's a program you want to try. You create a dummy account called "dummy" for it (so your data won't be in harm's way if it's buggy). Now, when you compile the program, you'll probably have to write
Now, suppose you end up really liking the program, and you want to be able to use it from your account, but want to deny everyone else access. You can just mv
Of course, you don't want to have to keep typing
Now you can type the program's name from any location, and it will run. But only until you restart your shell. To make the change permanent, you'll have to edit your
There are a lot of magic numbers and constructs in my post. Think of it as an invitation to learn about what you're interested in.
Old school, learn Unix (Score:3, Informative)
When I was learning about Linux, back in the mid-90s, the most valuable resource I found was The Internals of the 4.3BSD Operating System by McKusick, Quarterman, Leffler and Karels. This book acquainted me with the design goals of unix-like operating systems, and the issues of implementing these patterns.
Also, I'd pick either Aileen Frisch's Essential System Administration or UNIX System Administration Handbook by Evi Nemeth.
Fast forward to the 21st century, I now spend the bulk of my time using FreeBSD.
Linux is great, but remember that the thing that makes it great is that it's a unix-like OS. Learning the skills to be comfortable on Linux, Solaris, *BSD, HP-UX, AIX, or whatever the flavor of the day, will take you further than limiting yourself to just one.
Good luck!
Use the source luke, use the source ! (Score:2, Informative)
Of course, RTFM/RTFMan is always a good idea, but usually, a " --help" gets you through most of the time.
Now, of course, not everything is a shell script, and you do not have the time to study the manual pages or the documentation. Make sure that you have various tracing tools (system/network/etc):
Using those tools on misbehaving/unknown programs is going to give you some insight on how they work, and _what_ exactly they are doing. Their output can really be intimidating, but once you get some minial knowledge about protocols and other inner workings
And of course, having some basic idea in programming in the langague of you main applications is going to be helpful, but that really depend on how much time you want to devote to it and how programming-inclined you are.
Never forget that the unix philosophy is not about monolythic applications, but rather distributing tasks to smaller utilities. So learn about all those funny commands that are displayed when you press any keyboard letter and . You are going to be surprised: did you know that linux has "cut" and "paste" has commands ?
In my opinion the best way... (Score:2, Informative)
Why not do the most obvious thing? (Score:5, Informative)
1. What I learned from my local LUG
2. What I learned from my best friend, the Linux Guru
3. What I learned from reading a multitude of books and websites
4. Through classwork at the local business college with a Linux-friendly IT program
Interact with people who know about Linux. Ask questions. Read HOWTOs. Get reference books and read them.
Tools are the key (Score:5, Informative)
First things first is the terminal (xterm, kterm whichever it doesn't matter) use it. Forget the GUIs, use the shell.
That brings us onto the shell itself. Pick one and stick with it for a while. On linux most people prefer bash, its a good choice as even though its not on all unixes by default its not difficult to obtain (just don't try to set the root users default shell to bash on solaris)
Learn the language of the shell, pipes, redirects, command line interpretation of special characters, handy tricks like tab complete, loops, variables, tests and use these all on one liners - progress to script files and also learn about functions - shell scripts are usually going to be fairly primitive tasks but they are the key to an easy life as an admin.
Man is your friend - and should always be the first place you turn for help, then google, then forums.
Learn the basic commands, ls, mv, cp, rm, learn their options and understand the justifications for using them (-i? -f?)
Pick an editor and learn to drive it - this is a long process but well worth it. Don't bother with a GUI one, consider that later. On a default linux install you will probably have vim and emacs - try them both, see which you like and use it. Check out guides on how to customise them until they behave just how you want them (I have a 10 line
learn atleast the basics of the other important tools - at the very least find and grep. Awk and sed should certainly be on the list as you will encounter many scripts that use them, atleast some basic knowlege of perl would be handy (I prefer to use perl instead of awk and sed but thats my preference not everyone would agree)
Set up services and experiment, run a webserver, database server, mail server and learn as much as you can stand to about iptables to secure your box.
Keep backups, don't be afraid to break things, fixing what you broke (after finding out what you did to break it) is some of the best education yuo can have
All in all
Have fun!!
Re:Thanks (Score:3, Informative)
Scott Graneman Linux Phrasebook
-- this isa fairly small but amazingly comprehensive and very clear book on using the command line. The OReilly Pocket Linux is also good but much more limited.
Ward How Linux Works
-- fairly discursive, but once you've read it, you understand how it all works and the detail will slot into place
Schroder Linux Cookbook (or actually, anything she writes)
-- well, she's brilliant, doesn't cover everything, but what is covered is clear, detailed and after you work through it, you can do it, and you understand it.
Linux in a Nutshell
-- this is a sort of paper version of man, Graneman's book is a subset with more examples. But if you have this you can find every option in every command in an instant. Have it for reference.
I agree about slackware. Install slackware and work through their brilliant documentation. This is a good accompaniment to Ward's book.
"How Linux Works" No Starch Press (Score:2, Informative)
Some useful books (Score:1, Informative)
Understanding The Linux Kernel [amazon.com] is a good resource. For more conceptual stuff, Modern Operating Systems [amazon.com] is great.