Home > Store

Linux Desk Reference, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Linux Desk Reference, 2nd Edition

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2002
  • Dimensions: 6" x 9"
  • Pages: 608
  • Edition: 2nd
  • Book
  • ISBN-10: 0-13-061989-2
  • ISBN-13: 978-0-13-061989-1

This handy 6"x9" Linux desk reference packs information about every command Linux users will need -- organized for maximum value and convenience. In this brand-new Second Edition, Scott Hawkins has refreshed entries throughout, and added four new chapters -- including all-new coverage of the tc shell, Emacs editor, and Apache Web server. Unlike some Linux references, Linux Desk Reference is organized by function, so new Linux users can find what they're looking for fast -- and a great "roadmap-style" alphabetical reference gets experts the information they need just as quickly. The book's coverage is exceptionally broad, ranging from files, processes, I/O, and user accounts through networking, security, and Windows connectivity. Every chapter begins with a brief discussion of relevant terms and concepts, followed by a brief summary of all relevant commands, a list of related files, and then a complete listing of the commands, complete with options and examples. This is the only Linux reference that contains real-world examples for every command; in many cases, it even provides diagrams and sample output. For all Linux users who need a quality, complete Linux reference -- including beginners, power users, developers, and sysadmins.

Sample Content

Table of Contents



Acknowledgments.


Introduction.


1. Documentation.

apropos, info, locate, makewhatis, man, updatedb, whatis, whereis.

I. SYSTEM STRUCTURES.

2. Files.

chgrp, chmod, chown, cksum, cp, dd, file, install, ln, lockfile, ls, mv, pathchk, rm, stat, sum, symlinks, touch.

3. Process.

&, ^, bg, fg, fuser, fuser, fuser -V, jobs, kill, kill -l, killall, nice, nohup, pidof, ps, pstree, renice, top.

4. Standard Input, Output, and Error.

>, <, 2>, >>, |, tee, script, xargs.

5. Directories.

cd, mkdir, pwd, rmdir, symlinks.

6. Users.

chfn, chpasswd, finger, groupmod, groups, grpck, id, passwd, pwck, su, useradd, useradd -D, userdel, usermod, users, who.

7. Paths.

basename, dirname, namei, pathchk.

8. The Bash Shell.

alias, unalias, history, let, EXPRESSION, until, while, for, test, pushd, popd, dirs.

9. The TC Shell.

history, history, history, dirs, popd, pushd, exec, bg, exec, command, fg, hup, jobs, kill, kill-l, limit, migrate, migrate, nohup, notify, onintr, sched, sched -n, stop, suspend, time, unlimit, wait, alias, unalias, pattern, break, breaksw, case, continue, default, eval arg ..., foreach name ((wordlist)), ..., end, filetest -op file ..., goto word, repeat count command, shift, endsw, while, ..., end, bindkey, bindkey, bindkey, settc cap, value, setty, telltc, alloc, built-ins, chdir, echo, exit, hashstat, inlib, log, login, logout, ls-F, newgrp, printenv, rehash, rootnode, set, set name ..., set name=word ..., set, set name, setenv, source, umask, unhash, unset, unsetenv, watchlog, where, which.

10. Terminal and Keyboard.

captoinfo, clear, dumpkeys, getkeycodes, getty, infocmp, loadkeys, login, setterm, stty, tic, tput, tset, reset.

11. Disks.

badblocks, cfdisk, du, fdformat, fdisk, quota, setfdprm.

12. Filesystems.

debugfs, df, dumpe2fs, e2fsck, fsck, fsck.minix, fuser, lsattr, lsof, mkfs, mkfs.minix, mklost+found, mkswap, mount, mountd, rdev, /sbin/swapoff, /sbin/swapon, sync, tune2fs, umount.

13. Printers and Print Queues.

lpc, lpd, lpq, lpr, lprm, pr, tunelp.

14. Daemons.

fingerd, ftpd, gated, gdc, /usr/sbin/ , in.identd, /usr/etc/imapd, inetd, klogd, lpd, /usr/sbin/ , rpc.mountd named, /usr/sbin/, rpc.nfsd, pppd, rexecd, rlogind, rshd, rwhod, syslogd, talkd, tcpd, /usr/sbin/, in.telnetd, tftpd, rpc.yppasswdd, rpc.yppasswdd.

15. Machine Information.

arch, hostname, hwclock, uname.

16. Kernel.

depmod, depmod, depmod, modprobe, modprobe, modprobe, modprobe, modprobe, modprobe insmod, kerneld, ksyms, lsmod, bdflush, rmmod.

II. MANIPULATING DATA AND TEXT FILES.

17. Displaying Files.

cat, head, head, less, look, rev, tac, tail.

18. Comparing and Merging Files.

comm, cmp, diff, diff3, sdiff.

19. Data Files.

colrm, column, csplit, cut, expand, fmt, fold, merge, paste, sort, tr, unexpand, uniq.

20. Document Formatting.

colcrt, eqn, gs, groff, grog, gxditview, tbl, tex, troff, xdvi.

21. The vi Editor.
22. Emacs.
23. Archiving and Compression.

compress, uncompress, cpio, dump, gzexe, gzip, gunzip, restore key, shar, shar -S, tar, unshar, uuencode, zcmp, zdiff, zgrep, zmore, znew.

III. COMMON TASKS.

24. Startup and Shutdown.

dmesg, halt, reboot, poweroff, lilo, rdev, ramsize, rootflags, runlevel, shutdown, swapon, swapoff, sync, init, telinit.

25. X Window System.

XF86Setup, XF86Setup, X, startx, SuperProbe, xdm, xf86config, xinit, xmseconfig, xterm, xvidtune.

26. Scheduling.

at, atq, atrm, batch, crontab, crontab, sleep, usleep.

27. Finding Stuff.

find, finger, grep, locate, updatedb, which progname ....

28. Diagnostics and System Performance.

df, dmesg, free, ipcs, pstree, runlevel, tload, top, vmstat, vmstat, who.

29. Security.

ipfwadm, pgpe, pgpk, pgps, pgpv.

30. Miscellaneous.

cal, date, date, fortune, ispell, printf, rpm, strfile.

IV. NETWORKING.

31. TCP/IP.

arp, bootpd, bootptab, bootpgw, bootptest, dip, diplogin, diplogini, hostname, gated, gdc, ifconfig, netstat, Ouput Description, nslookup, rmail user ..., route, routed, /etc/gateways, rusers, tcpdchk, tcpdmatch, tcpdmatch, traceroute.

32. Networking Applications.

ftp, hostname, netstat, ping, rarp, rcp, rdate, rdist, rlogin, rsh, rusers, rwho, telnet, tftp.

33. NIS and NFS.

hostname, domainname, dnsdomainname, nisdomainname, ypdomainname, /usr/lib/yp/makedbm, /usr/sbin/ypbind, ypcat, yppasswd, ypchfn, ypchsh, /usr/lib/yp/ypinit, ypmatch, yppoll, /usr/sbin/yppush, /usr/sbin/ypserv, ypset, ypwhich, /usr/lib/yp/ypxfr.

34. DOS and Windows Connectivity.

mattrib, mbadblocks DRIVE:, mcd, mcopy, mdel, mdeltree, mdu, mformat, mlabel, mmd, mrd, mmove, mmove, mtype, xcopy, nmbd, smbclient servicename, smbmount, smbd, smbumount, smbstatus, testparm.

35. Mail and Other Communication.

biff, elm, elm, fetchmail, fetchmailconf, formail, mail, makemap, mesg, mimencode, rmail, rwall, sendmail, newaliases, mailq, talk user, uuencode, uudecode, wall, write.

36. Apache.

ServerType, Port, HostnameLookups, User & Group, BrowserMatch, ServerAdmin, ServerRoot, BindAddress, ErrorLog, TransferLog, PidFile, CacheNegotiatedDocs, Timeout, KeepAlive, MaxKeepAliveRequests, KeepAliveTimeout, MinSpareServers, MaxSpareServers, StartServers, MaxClients, MaxRequestsPerChild, <Directory>, Location, Options, AllowOverride, order, allow, deny, DocumentRoot, UserDir, DirectoryIndex, FancyIndexing, AddDescription, ReadmeName, HeaderName, IndexIgnore, AccessFileName, DefaultType, AddLanguage, LanguagePriority, ScriptAlias, AddHandler.

Appendix A.
Glossary.
Index.

Preface

Introduction

I hope you get a lot of use out of this book. Since I first got started with Unix in 1986, I've spent a ton of cash buying reference books. I've always been a bibliophile, and computer books have the advantage of being tax deductible, so I've amassed quite a collection. It always annoys me when I get home and the glitzy, well-packaged, 400-page document-o-rama I just shelled out $50 for turns out to contain only 5 pages of actual information or, worse, to be full of information but so poorly organized that it's more trouble than it's worth to find what I need. I've got a shelf full of them, which I will sell cheap.

What I've tried to do here is incorporate the best features from my collection. I know what I like-a good index, thorough technical coverage, relevant examples, and concise explanations (in English). Also, in the process of writing this book I've become almost supernaturally attuned to the subject of computer reference books-you can whisper "Linux in a Nutshell" from 30 feet away across a crowded room and my ears will perk up like a retriever on point. The number one complaint I hear about reference books is "not enough examples." I'm not unsympathetic; thinking up, configuring, and testing all the examples for this book slowed the writing process down to a crawl. But, as my editor pointed out, I'm not doing this for my health. So you will find that for every command in this book there is an accompanying example.

To some extent, Linux commands tend to come in clusters. For example, there are a dozen or so that handle filesystems, another half dozen for fiddling with disks, a whole slew that do things with files, and so forth. Sometimes the command clusters follow a naming convention, as in the case of the "remote" commands (rlogin, rsh, etc.); other times they do not. It occurred to me that it wouldn't be entirely wrong to group the Linux commands into clusters (one for users, another for disks, etc.) and then treat the clusters as data structures. Technically, a data structure consists of two things:

  • a specification for how data will be stored
  • a specification of methods by which the data will be accessed

That's not a perfect description of how the chapters are arranged, but it isn't bad either. At the beginning of each chapter there is a high-level discussion of what purpose each "data structure" serves, how that service is accomplished, and the jargon that has sprung up around it. This provides background for the detailed description of commands that follows. Hopefully, this will provide enough information for newcomers to get started and perhaps be of some value for experienced users as well.

Of course, as you can tell from a quick glance through the contents, the main thrust of this book is information on actual user commands. I have collected what I believe to be a fairly thorough subset of the most useful Linux commands, together with their options and some suggestions for use. Information on configuration and use of the various subsystems (e.g., NIS, Samba, Networking) is also included, either explicitly or as part of the examples.

How to Use This Book

When You Know Exactly What You Need

For the advanced users who know exactly what command they are after and are looking only for examples or command line options, the book has two command indexes:

  • all commands are indexed in the back of the book, as are term definitions, procedures, and the rest of the content.
  • there is a second index in the front for executable programs only.

When You Know What You Need But Not What It's Called

Did you ever find yourself digging around looking for a command that you know must exist, only you don't have any idea what it might be called? Back when I was in school I clearly remember fumbling around for an hour trying to figure out what command I'd use to lower the priority of a running process. There was nothing in the man pages under "priority" or "process," but I knew it had to be out there somewhere.

This book is arranged by concept. If you want to find out how to do something with filesystems, flip to the chapter on filesystems. In each chapter, there's a brief discussion of relevant terms and concepts, followed by a one-line summary of all the relevant commands, a list of related files, and finally a complete listing of the commands with options and examples.

When You're Just Getting Started

This book explains all of the basic concepts you need to understand to use your Linux system. If you're not familiar with particular terms, they are defined in the text and indexed in the back. There's also a glossary. For every command, there is at least one example. For the more popular or confusing commands, there are frequently two or more. Where I thought it would be helpful, I included diagrams and sample output.

Conventions of This Book

Introductions

There's a certain amount of overhead involved in learning the Linux system. Some of the concepts can be counterintuitive at first glance, particularly if you're still in the process of switching over from one of the lesser operating systems. Each chapter in this book starts off with a few of pages of notes about the concepts, terms, and theory underlying the commands. Hopefully, this will help you get a feel for how the commands make up subsystems and how the subsystems make up Linux.

Related Files

Most Unix commands take configuration or startup information from one or more files. The entries in this section are a listing of the files associated with the commands in each chapter.

Commands

Each chapter contains a detailed listing of commands, together with options and examples.

A Final Word

Any single book that purports to cover the entire Linux operating system is probably lying. There's so much going on that what you can fit between two covers is, of necessity, a reflection of the experiences and prejudices of its author. To the extent that I neglected <your favorite command/suite/utility> I really do apologize. If it's any consolation, it wasn't from lack of effort. If you have comments, corrections, or suggestions for improvement, feel free to contact me at:

s_hawkins@mindspring.com

As a postscript, some of you may be wondering about the significance of the Minotaur on the cover of this book. Tradition has it that Daedalus, a mythological inventor and the spiritual ancestor of hackers everywhere, built a large and complex maze in Crete (the Labyrinth, capital L) at the behest of King Minos. The Minotaur was a bastard child of the Queen Pasiphae (Minos' wife) and some unusually handsome livestock. He had a man's body and the head of a bull, which (understandably) made him a bit shy and grumpy. Perhaps as a consequence, he was also very territorial—he never left the Labyrinth, and ran it with an iron fist. Most significantly, the Mintaur had little patience with incompetence. He was famous throughout the kingdom for biting the heads off any ignorant schmucks who became lost in his world. When I was asked to suggest a mythological beastie for the cover of a system administration text, there was really only one choice.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020