Cover
title | : | Linux, Programmer's Reference |
author | : | Petersen, Richard. |
publisher | : | McGraw-Hill Professional |
isbn10 | asin | : |
print isbn13 | : | 9780072123555 |
ebook isbn13 | : | 9780072190656 |
language | : | English |
subject | Linux, Operating systems (Computers) |
publication date | : | 2000 |
lcc | : | QA76.76.O63P5227 2000eb |
ddc | : | 005.4/469 |
subject | : | Linux, Operating systems (Computers) |
Page i
Linux
PROGRAMMER'S REFERENCE, Second Edition
Richard Petersen
Page ii
Copyright 2000 by The McGraw-Hill Companies. All rights reserved. Manufactured in the United States of America. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher.
0-07-212355-9
The material in this eBook also appears in the print version of this title: 0-07-212355-9.
All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps.
McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. For more information, please contact George Hoare, Special Sales, at george_hoare@mcgraw-hill.com or (212) 904-4069.
TERMS OF USE
This is a copyrighted work and The McGraw-Hill Companies, Inc. (McGraw-Hill) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill's prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms.
THE WORK IS PROVIDED AS IS. McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.
DOI: 10.1036/0-07-212355-9
Page iii
About the Author
Richard Petersen, M.L.I.S., teaches Unix and C/C++ courses at the University of California at Berkeley. He is the author of Osborne's Linux: The Complete Reference, now in its second edition.
Page iv
This page intentionally left blank.
Page v
To my Uncle and Aunt
Gabriel and Bonnie
Page vi
This page intentionally left blank.
Page vii
CONTENTS @ A GLANCE
1 BASH Shell Programming | |
2 TCSH Shell Programming | |
3 Z-Shell Programming | |
4 Compilers and Libraries: gcc, g++, and gdb | |
5 Development Tools | |
6 Gnome Programming | |
7 KDE Programming | |
A Perl: Quick Reference | |
B Tcl and Tk | |
C TeX and LaTeX | |
Index | |
Page viii
This page intentionally left blank.
Page ix
CONTENTS
Contents at a Glance | vii |
Introduction | xix |
|
1 BASH Shell Programming | |
Shell Scripts: Commands and Comments | |
Control Structures | |
Jobs: Background, Kills, and Interruptions | |
Operators | |
Definition and Evaluation of Variables: =, $ | |
Here: << | |
Double Quotes, Single Quotes, and Backslashes: "", ", \ | |
Back Quotes: | |
Positional Parameters: $ | |
Arithmetic Operators | |
Redirecting the Standard Output: > | |
Appending the Standard Output: >> | |
The Standard Input: < | |
Pipe: | | |
Redirecting and Piping the Standard Error: >&, 2>, |& | |
Background: & | |
&& and | | | |
Functions: (){} | |
BASH Commands | |
Colon (:) | |
source, | |
CTRL-Z : Interruptions | |
alias | |
at | |
bg | |
bind | |
break | |
builtin | |
Next page