Review: The Linux Cookbook 126
The LinuxCookbook | |
author | Michael Stutz |
pages | 300 |
publisher | No Starch Press |
rating | 7 |
reviewer | Craig Maloney |
ISBN | 1-886411-48-4 |
summary | Hundreds of answers (with a focus on the command-line) to commonand not-so common questions. |
Allez Cuisine!
The Linux Cookbook is a collection of "recipes" for doing various tasks with your Linux machine. Where the Cookbook shines, though is the sheer number and variety of these recipes. There are plenty of varied tasks covered in the book, from the simple 'How do I copy a file?' to the more complex 'How do I archive a web site?', Six chapters deal with the various aspects of text: analyzing, searching and replacing, grammar checking, and formatting. There are even chapters dealing with the less-explored topics of customizing X, setting up reminders, and editing sound files.
Recipe Format:
The recipe format is both the book's strongest feature and its weakest point. The recipes make for a well-organized and logical structure to find information. Each point and sub-point is clearly marked, and makes for a very quick and enjoyable read. Unfortunately, topics that could benefit from a different approach are just not covered thoroughly. In the section for listing files, ls is well covered, while Midnight Commander is briefly introduced. This wouldn't bother me as much, except Midnight Commander and Mozilla URLs are given at the beginning of the section. This presentation could also lead people to think the material presented is the only way, or the best way to do these commands. There is only one method mentioned for shutting down a Linux machine; the venerable CTRL-ALT-DEL. No mention is made in the book of the shutdown command. Granted, CTRL-ALT-DEL will get the job done, but I'm not sure I would have presented it as the best, or only way to shut down a Linux machine. [T - Especially when on many distros, CTRL-ALT-DELETE is configured to restart rather than shut down the machine; this behavior, though, is configurable through /etc/inittab.]
Season to taste:
As I've mentioned in the previous section, some of the commands the author chose as his answers are quite curious to me. In the section to find hostnames from IP addresses, the author has chosen to use the command "dig" rather than the command I generally use "nslookup". Granted, "dig" gives other useful information aside from the IP and hostname, but the author doesn't seem to care about the additional information when presenting the output of the command.
This book also concentrates on using GNU and Open Source software for it's solutions. There is no mention of software that is not strictly Open Source. The only package information is for the Debian distribution by providing the apt name for retrieving the package. No other distribution is mentioned as having packages available. The author's reasoning is that Debian is the only "entirely committed to free software by design" distribution. URL's are provided only for packages that are not distributed by default with Debian, which might prove to be a nuisance for people using other distributions. I found myself trying some recipes, only to find my distribution didn't include that command by default.
Linux is a command-line operating system by default, and this book tries to work within those defaults by providing command-line methods rather than GUI methods. This gets around some of the various intricacies of the various distributions, but might prove confusing for the person who boots up the first time and can't find virtual console one because GDM is running. When appropriate, the book will defer to a GUI tool rather than a command-line tool. The GIMP is briefly discussed for several of the recipes, and GUI programs make up less than 10% of the answers to the recipe questions.
So, what's in it for me?:
It's tough for me to fully recommend this book to everyone. For the beginner, I recommend caution when starting off with this book. They may want to make this book their second book along with an installation and getting started tutorial. Beginners will find this book invaluable once they have a firm grasp on their distribution before being able to fully handle this book. For the seasoned Linux user, I recommend reading this book while putting your suppositions aside. There is plenty of good information to be had in these pages, and the author has tried painstakingly to make the answers in it as relevant to every Linux user as he can. The Linux Cookbook is a useful collection for those who don't mind getting comfortable with their shell prompt and a search engine.
There is also an electronic version of this book available at http://dsl.org/cookbook which is a living version of the printed book; for the sake of this review, only the printed book was reviewed.
You can purchase The Linux Cookbook from Fatbrain.
Iron Chef (Score:2, Funny)
mmm roast penguin (Score:5, Funny)
mmm, linux. delicious.
The recipie: (Score:5, Funny)
Re:The recipie: (Score:4, Funny)
More Free Recipes (Score:1)
http://snoot.org/factory/recipe/
(Sorry, this is OT but not entirely irrelevant.
Re:mmm roast penguin (Score:1)
To Serve Penguin (Score:1)
Re:mmm roast penguin (Score:1)
nslookup and dig (Score:3, Informative)
Re:nslookup and dig (Score:1, Interesting)
More seriously, I like the feel and simplicity of nslookup. Is it so hard to maintain? Why annoy us with the deprication message when you can just give us more choices? If I need dig, I use dig. If I need a simple nslookup, well..
Re:nslookup and dig (Score:3, Insightful)
Re:nslookup and dig (Score:1)
Re:nslookup and dig (Score:2)
Re:nslookup and dig (Score:2)
Re:nslookup and dig (Score:2, Informative)
Re:nslookup and dig (Score:1)
use "host" (Score:3, Informative)
nlslookup is depricated (Score:2, Informative)
[tj@pheonix tj]$ nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> exit
dig is much better, IMHO, once you get used to it.
Re:nlslookup is depricated (Score:4, Informative)
No, dig is an apalling tool. While it may well be far more powerful than nslookup, the interface it presents to the end user is awful. It highlights perfectly everything that is wrong with letting the average geek design a user interface. Remember, it's not just DNS administrators that want to do DNS queries. Plus, of course, not all the world uses BIND any more. Naturally, I firmly believe that I'm the exception -- a geek that can design a user interface for the rest of the world. Perhaps that's the problem, though, and we're all naïve (or is that arrogant?) enough to overestimate our abilities, and believe we can accurately guage (and allow for) the stupidity of the average end user. But for now, I'll continue living in my sheltered world, believing myself superior. I prefer it that way :-)
Re:nlslookup is depricated (Score:2, Insightful)
Re:nlslookup is depricated (Score:2, Insightful)
Everything is relative. Compare the output of "nslookup slashdot.org" and "dig slashdot.org"...
Re:nlslookup is depricated (Score:1, Insightful)
BTW, nslookup appears to have been dep'd for awhile (among various distros). And we can still flame M$ in good conscience because if you don't like alias'ing -sil then you can rewrite the bloody program yourself!
<g>
-Mr. Davies
Re:nlslookup is depricated (Score:2)
That still falls into the trap of assuming that people wanting to do DNS queries are:
Re:nlslookup is depricated (Score:2)
The program can check the value of 'argv[0]' and determine the format to display the output in. The old ZModem program used to do this to support the older protocols of YModem and XModem.. Thus depending on how it was called 'rz - zmodem, rb - ymodem, or rx - xmodem' the program would know what to default to.
Wonderful! (Score:2, Informative)
(User runs off to order)
oh please (Score:3, Informative)
And we just have to look at how the distro companies are doing to know the answer to that question.
Re:oh please (Score:2, Insightful)
A lot of people will buy a boxed GNU/Linux distribution the first time, and then either download or use Cheapbytes from there on, but that's for something which needs to go on the computer anyway. A book, however, can be read away from the computer.
Dunstan
Re:oh please (Score:4, Insightful)
Re:oh please (Score:1)
And when you're done printing it on the cheap, you get a book on crap paper with poor print quality and an old 3-ring binder. Or will you pay Kinko's to bind this for you?
My time and my eyesight are worth a few bucks to me.
Go ahead and waste your time printing and futzing. I'll spend it reading and learning something (or just waste it on
Re:oh please (Score:2)
I bought it a few months ago and have found it very useful. I can consult it when I'm away from a computer.
Re:oh please (Score:2)
Re:oh please (Score:2)
- Jim Greenlee, Georgia Tech CS professor on the benefits of the textbook.
Re:oh please (Score:2)
Congressman. They like to bend their pages over.
Only Debian? Well yeah... (Score:3, Interesting)
"For the purposes of this book, I will assume that you are using the Debian GNU/Linux distribution, which, of all the major distributions, is the only one designed and assembled in the same manner that the Linux kernel and most other free software is written -- by individuals."
He gave fair warning in the introduction. Maybe he should have called it The Debian Cookbook, but I think that by sticking with one fully free (speech) distro he's showing the true spirit of open-source software.
Re:Only Debian? Well yeah... (Score:3, Funny)
And it is widely known that geeks only 'cook' frozen meals: 3 minutes in the microwave, and eat with a plastic fork.
Re:Only Debian? Well yeah... (Score:3, Funny)
Advanced Micro(wave) Devices, indeed.
Re:Only Debian? Well yeah... (Score:2)
Re:Only Debian? Well yeah... (Score:2)
I like leaving my leftover I brought for lunch out in the car until lunchtime during the summer (hold the mayo) so that it's nice and hot when I get to it. Unfortunately my insurance agent wouldn't let me reinsure my car as a household appliance.
Baked Slashdot (Score:5, Funny)
1 Cluster of Linux Webservers
1 Instance of Slashcode
1 DB of your choice
3 Intelligent Posters
38 Whiny karma-whores, who post frequently and then complain when their 'me too' style posts are modded down.
493 Moderators who never follow the guidelines, even if they've ever bothered to read them.
roughly 400,000 Trolls, flamers, evangelsits, ASCII artists, Katz-bashers, goat-sex linkers, Taco-haters, Microsoft-5uXX0r's and other assorted losers.
Instructions:
Combine listed ingredients in any given environment, heating with a steady stream of press releases from Apple, Microsoft, VA-Linux, the EFF, or the RIAA/MPAA. You can cull these press releases directly from CNet, Wired, Salon, ZDNet, or CNN if you don't have any. Once brought to a roiling boil, let bake under its own heat for as long as you can stand.
Serve chilled, with white wine and flava beans. Serves 2
More Free+Online Books (Score:5, Informative)
Numerical Recipies [nr.com] - Numerical Recipes in C, 2nd edition is the numerical methods book.
Autobook [slashdot.org] - GNU Autoconf, Automake and Libtool.
GGAD [developer.org] - GTK+/Gnome Application Development by Havoc Pennington. I'm not sure which is better, the book or the authors name!
WGA [gnome.org] - Writing GNOME Applications by John R. Sheets. Not complete, which is a pity. I'm sure that will change though.
Docbook [docbook.org] - The definitive guide to SGML.
CVS book [red-bean.com] - Open Source Development with CVS by Karl Fogel. It is not quite the complete book, but it is the interesting bits.
FreeBSD Handbook [freebsd.org] - FreeBSD documentation.
Maximum RPM [rpmdp.org] - Documentation for the RedHat package manager.
Based on that list, can anybody suggest further online books that I may be interested in? (Don't bother telling me about the old O'Reilly books, I know about those)
Re:More Free+Online Books (Score:1)
Corrected GGAD address (Score:3, Informative)
I think InformIT [informit.com] still do free online books -- they purchased Macmillan Press' old stuff and used to have many titles online.
Re:Corrected GGAD address (Score:1)
Re:More Free+Online Books (Score:3, Interesting)
I can't help but make a shameless plug for my own free+online book [globalspin.com] about creating high-performance Web sites with Perl. Wait, I don't have to! My .sig will do it for me. :)
~chris
Re:More Free+Online Books (Score:1)
I really wonder whether releasing some of their books with a rather generous license harms or benefits the sales figures. I know that when I was looking for a book about GNOME, I bought Havoc's GGAD book in preference to one of the others because I liked the license.
Re:More Free+Online Books (Score:1)
I really wonder whether releasing some of their books with a rather generous license harms or benefits the sales figures.
I honestly don't know. I've noticed that my Amazon Sales Rank seems to improve when there are more visitors to the site, though. I assume that more people find the book with a Google search than would find it on the bookshelves.
~chris
Re:More Free+Online Books (Score:4, Informative)
Re:More Free+Online Books (Score:2, Interesting)
Numerical Recipes (Score:3, Informative)
I can't really agree with that [nasa.gov].
Re:Numerical Recipes (Score:1)
Their C code really sucks, but I'd always assummed that the text was basically correct. Your link provides pretty good proof that that is not the case.
(The licensing restrictions for the code appears to conflict with the GPL, so I generally can't/won't use it anyway).
Re:Numerical Recipes (Score:1)
Actually, GSL is quite good, although a bit bloated.
Re:Numerical Recipes (Score:2)
It is naïve to hope that every computational problem can be solved by a simple procedure that can be described in a few pages of chatty prose, and using a page or two of Fortran or C code. Today's ambitions for correctness, accuracy, precision, stability, "robustness", efficiency, etc. demand sophisticated codes developed by experts with deep understanding of their disciplines. We have long ago outgrown the capabilities of the simplistic approaches of 30 years ago.
Well! True. At the same time, it's not a bad place to start. Sometimes a chatty breeze is better for understanding than a phd level peer review trade journal. A fourth order Runge Kutta routine should not be your first ODE solver any more than an extrapolation routine should be used in production.
By the way, the NR authors themselves recomend FORTRAN over C.
Re:Numerical Recipes (Score:1)
Re:Numerical Recipes (Score:2)
I think you correctly identify the strengths of NR, and if I do remember correctly (it's a long time since I read the whole anti-NR page), they give them some credit for it too.
The main problem with NR is that as long as you understand the methods there fully, and realize their limitations, you're on safe grounds. Sometimes you can appreciate them fully from NR itself, and sometimes you can't, and a few of the methods are just flawed. So, you can use the stuff in NR when you fully understand it, but once you've reached that level, you've probably allready outgrown it... :-)
Re:More Free+Online Books - O'Reilly (Score:4, Informative)
Re:More Free+Online Books (Score:1)
Another good CLI book... (Score:5, Informative)
Re:Another good CLI book... (Score:2)
However, it is geared toward a completely different audience. It is a reference manual for seasoned UNIX users, not Linux newbies.
Re:Another good CLI book... (Score:1)
I got a copy when I got my first Unix account (not machine) at college, and I found it very helpful. I can see that it wouldn't so good if you are supposed to be adminning your own system.
[rant]I miss the days of large shared unix systems. There was a sense of community among the users at a site that isn't there today.[/rant]
I have it and have found it very useful (Score:4, Informative)
I highly recommend this book to people who have been dual-booting Linux for awhile but are still having a hard time installing software and configuring the environment - stuff too simple for the guys who know what they are doing to even talk about.
For a good time... (Score:2, Funny)
1. Edit
2. Change default runlevel to 6
3. Reboot
4. Reboot
5. Reboot
6. Reboot
7. Reboot
8.
It's on andamooka, slash site for annotations (Score:5, Interesting)
Another site that carries it is the slashcoded Andamooka [andamooka.org] (with which I am not associated), which has the dual advantage of carrying many more open source books and permitting registered users to enter their own annotations on line.
Sounds like "linux for dummies" (Score:1)
Re:Sounds like "linux for dummies" (Score:1)
"Cookbook" as in "Perl Cookbook"? (Score:2, Informative)
PS:The "Programming Perl" was my previous favourite reference book, but the online "perldoc" documentation replaces that now.
Another Cooking Theme Author... (Score:3, Informative)
Which FM to R (Score:1, Troll)
Actually, newbies, don't let him fool you -- it's rm -f, as in:
rm -f
Now you're all set!
Hey I know you (Score:2, Funny)
I remember playing Quake CTF online and asked how to bind the grapple to a key. I think you must be the guy who advised me to type: "unbindall".
ease of use (Score:2, Insightful)
Re:ease of use (Score:1, Informative)
You must have downloaded the sources. There are a couple HTML versions on the web or try "apt-get linuxcookbook" (for info version on Debian).
Then again, just buy a copy of the book...
Re:ease of use (Score:1)
dig vs. nslookup (Score:3, Informative)