A Practical Guide to Linux
Author: Mark Sobell
Publisher: Addison Wesley Longman
Price: $38 US
Reviewer: Todd Sundsted
Mark Sobell's A Practical Guide to Linux is one of a growing number of books on the Linux operating system. It combines about equal parts topical guide and command reference. It is written for the “next” generation of Linux users—programmers, web designers and technically oriented people who are looking for an alternative to Microsoft's operating system and products—rather than the “hacker” generation (who brought Linux to this point).
The Linux universe is expanding at an ever increasing rate. Consequently, books of this type are faced with the challenge of being simultaneously comprehensive, relevant and up to date. To this book we must add a fourth challenge—as the title suggests, the material in the book must be practical. Of the three (or four), being comprehensive is perhaps the easiest to achieve.
Let's look briefly at what Mark Sobell offers us. Part I is organized into chapters, each covering a separate topic.
After a brief introduction to Linux and its features in chapter one, Mark immediately gets down to the business of using Linux in chapter two. In it, he teaches the reader how to log in, edit files, access the on-line manual pages and use the command line. It is pretty basic stuff that is necessary for the complete beginner.
In chapter three, Mark teaches the reader how to use the most common command-line utilities—tools like cp, mv and grep. Chapter three ends with a useful section on locating other users, communicating with them, and sending electronic mail.
Chapter four introduces the Linux file system. It describes the tree-like organization of the Linux file system, introduces files and directories, and describes how to work with them.
Chapter five introduces the command-line shell and related topics including input and output redirection, pipes and the file name wild card characters “?” and “*”. The material in this chapter is not specific to any of the common command-line shells, but instead introduces the features common to all of them.
Most users expect computers to have a graphical user interface (GUI). Therefore, the sixth chapter introduces the X Window System—the most common windowing system available to Linux users. Chapter six contains an introduction to the X Window System and its user interface components—buttons, sliders, and kin—and the mouse. It also describes briefly two of the most popular window managers available for X—MWM (Motif Window Manager) and FVWM (Feeble Virtual Window Manager) and provides information on customizing each.
In the seventh chapter, Mark introduces two very important topics—networking and the Internet. He describes the different network types and the various network utilities typically found on a machine running Linux. He also explains how to access both Usenet newsgroups and the World Wide Web.
Chapters eight and nine introduce the ubiquitous vi text editor and the Emacs text editor, respectively. While not the WYSIWYG writing tools many new users of Linux expect, they are inarguably an essential part of the repertoire of programmers, system administrators, web developers and others. The chapter on the vi editor is quite complete. The chapter on Emacs contains just enough material to get you going, but nowhere near enough to make you a master of this complex but powerful tool. No manual entry for p Chapter eleven introduces the topic of shell programming (or writing shell scripts).
In chapter fourteen, Mark introduces the tools of the programmer's trade—the C compiler, make and the source code management utilities. This chapter is easy to read but the material is not really necessary. Readers with any programming experience at all will find it far too basic, and beginners won't find enough information to make them into even fledgling programmers.
The final chapter of part one, chapter fifteen, introduces system administration. In this chapter the reader is taught how to boot the Linux system, backup files, install software, and rebuild the kernel.
Part II is a command reference that is quite well done. Each entry in the reference describes the syntax of a command, summarizes its operation, describes its arguments and options, provides a few noteworthy comments and illustrates several examples of its use. While there is nothing here that couldn't be obtained from a careful reading of the man pages for each command, the format is easier to read and the examples are far more useful. Occasionally an entry omits some of the less used features of a command. In those cases you'll have to refer to the man pages for the command or to other documentation.
Four appendices round out the book—one on regular expressions, one on accessing the copious Linux documentation available on-line (appropriately titled “Help!”), one on software emulators and one on POSIX and POSIX compliance.
My overall impression of Mark Sobell's book was positive. The chapters on the various command line shells easily took top honors for best of the book. Like it or not, the command line is an integral part of using Linux, and familiarity with one of the available shells is necessary to fully utilize its power. Users new to the Linux world will undoubtedly be daunted by the flexibility offered by the even the simplest shells—especially if their previous experience was limited solely to the DOS shell. A good introduction, however, goes a long way toward making the process of learning painless, and once learned, the user will find the flexibility and power exciting.
The chapter on vi was very solid. I only use vi when I don't feel like waiting for Emacs to start—that turns out to be quite often when I'm performing system administration tasks. Consequently, I use vi a lot more than I ever thought I would. I have a feeling that vi is here to stay and that learning to use it effectively is best done early.
I liked the command reference in part II of the book. While not a replacement for the on-line manual pages, it was fun to flip through off-line. The on-line manual pages are great when you know what you're looking for, but they're not much fun to browse. Part II, on the other hand, made good reading while waiting for a compile to finish or a page to load into my browser.
The least useful chapter, in my opinion, was chapter fourteen—Programming Tools. The material presented seems too basic for an experienced programmer, yet too superficial for a beginner. But then, as I think more about it, one group does come to mind—those programmers who are proficient in C or C++ but who have gained all of that experience while working in an Integrated Development Environment (IDE) on another operating system. Compiling and building an application from a command-line environment would be a big change. Chapter fourteen would help them get started.
I found the sections on customizing FVWM and MWM, in chapter six, to be too brief. I'm also concerned that, given the existence of two mutually incompatible (from a configuration file perspective anyway) but common versions of FVWM (1.x, 2.x and 95), the section on FVWM configuration might cause more harm than good for beginners. Perhaps Mark could have mentioned configuration, explained what pieces of each window manager can be configured, pointed the reader in the direction of the manual page and moved on.
I also found the inclusion of material on the various emulators to be of little use. While I consider both Wine and Executor to be two of the most impressive products I have ever seen, given their current (sometimes extreme) limitations they are unlikely to be useful to any more than a small minority of Linux users. WABI and iBCS may have a slightly broader appeal, at least to those who need to run legacy applications, but neither emulator will replace the need for good native Linux implementations of solid application suites.
I would have liked a chapter on Perl. Like the command-line shells, Perl is a tool many users—especially those administering their own systems—will find useful. Indeed, whether one writes system administration programs, backup tools or CGI scripts, Perl seems to be the language of choice for a large number of experienced Linux users.
So, how did A Practical Guide to Linux do against the four challenges I mentioned earlier? It is definitely comprehensive (but that's the easy part). It's also relevant—most of the tools and utilities covered within its pages are here to stay. Aside from the material on the Internet (which admittedly is moving at a lightning pace), it is up-to-date. And, except for the chapter on programming, it is very practical.
The fact is, I'd buy it. It's every bit as good as any of the other Linux books available and better than many.
Todd Sundsted is a programmer, writer, and die-hard Linux enthusiast. He writes the “How-To Java” column for JavaWorld (http://www.javaworld.com/) and provides training and consulting through Etcee (http://www.etcee.com/). He can be reached via e-mail at firstname.lastname@example.org.
|Designing Electronics with Linux||May 22, 2013|
|Dynamic DNS—an Object Lesson in Problem Solving||May 21, 2013|
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
- New Products
- Linux Systems Administrator
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- Designing Electronics with Linux
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Nice article, thanks for the
7 hours 23 min ago
- I once had a better way I
13 hours 9 min ago
- Not only you I too assumed
13 hours 26 min ago
- another very interesting
15 hours 19 min ago
- Reply to comment | Linux Journal
17 hours 12 min ago
- Reply to comment | Linux Journal
1 day 7 min ago
- Reply to comment | Linux Journal
1 day 23 min ago
- Favorite (and easily brute-forced) pw's
1 day 2 hours ago
- Have you tried Boxen? It's a
1 day 8 hours ago
- seo services in india
1 day 12 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?