Main index

Introducing UNIX and Linux


Contents

Preface

The computing environment
UNIX and Linux design and organisation
Installing Linux
Getting started
Files
Processes and devices
Introduction to shells
More on shells
Advanced shell programming
Regular expressions and filters
Awk
Perl
Maintaining your Linux OS
Other issues

Answers to selected problems
Summary of utilities
Acronyms

Contact us
Errata

Preface

UNIX is an operating system which has seen substantial growth in its popularity over the last few years and is used by many universities and colleges, as well as in industry. Linux is a UNIX-like operating system for PCs which is freely available and has become a serious alternative to proprietary systems such as Windows. This book is a beginner's guide for students who have to use UNIX and/or Linux. No prior knowledge of programming is assumed, nor is any experience of using computers. We do, however, expect our audience to have a serious interest in computing, and a typical reader might be a student in the first year of a degree or HND course.

UNIX is more than just a computer operating system, it is a philosophy of programming. Learning UNIX involves becoming familiar not only with the commands it affords the user, but also with the methodology it employs. It is a very powerful tool in the hands of an experienced practitioner, but it can be daunting for the novice. We introduce enough detail for the reader to be able to utilise the facilities in UNIX, but no more.

In 1993 an International Standard was published, known as 'POSIX.2', which specifies the constructs and commands that a UNIX system should have available to its users. This book follows that standard. However, POSIX is a 'minimal' standard, and most UNIX or Linux systems contain much more. We discuss in this book all the basic constructs and commands of UNIX (as defined in POSIX.2), sufficient for the reader to be able to use each of them, together with some of the more common and useful extensions. We do not delve into any in fine detail; part of the UNIX philosophy is that such information is available online. The reader who requires more sophisticated use of UNIX after reading this book will know how and where to find the extra information they need.

To get the most from this book, you should have access to a UNIX computer system or a PC running Linux, as much of the text relies on your being able to try out examples. If you have a PC running Windows, we discuss how you can install Linux on your PC.

This book is a new version of Beginning UNIX, which is no longer in print. The material covered in chapters 4-11 is substantially the same as the corresponding chapters in Beginning UNIX, but the remaining chapters are new. We have expanded the coverage to include discussion of Linux and related issues, including installation and maintenance on a PC. A new chapter on Perl has been included. Technical material is now consistent with current Linux distributions in addition to Solaris and other versions of the UNIX operating system.

Acknowledgements

Grateful thanks are due to Nathan Griffiths and Steve Matthews for commenting on draft versions of this book. Thanks also to Hugh Glaser for encouragement and feedback, and to students at Warwick and Southampton for valuable input.

Trademarks

Adobe, Acrobat and Framemaker are registered trademarks of Adobe Systems Incorporated.
BeOS is a registered trademark of Be, Inc.
Eudora is a registered trademark of the University of Illinois Board of Trustees, licensed to QUALCOMM Inc.
Internet Explorer, Outlook, Windows, Windows 95, Windows NT, Windows 2000 and Windows XP are registered trademarks of Microsoft Corporation.
Java is a trademark of Sun Microsystems, Inc.
KDE, K Desktop Environment and KOffice are trademarks of KDE e.V.
Linux is a registered trademark of Linus Torvalds.
MacOS is a registered trademark of Apple Computer, Inc.
Mandrake and Linux-Mandrake are registered trademarks of MandrakeSoft SA and MandrakeSoft, Inc.
Mozilla is a trademark of the Mozilla Organization.
Netscape Navigator is a registered trademark of Netscape Communications Corporation.
Opera is a trademark of Opera Software AS.
PalmOS is a registered trademark of Palm, Inc.
Pentium is a registered trademark of Intel Corporation.
PostScript is a registered trademark of Adobe Systems, Inc.
Red Hat and RPM are registered trademarks of Red Hat, Inc.
SPARC is a registered trademark of SPARC International, Inc.
StuffIt is a trademark of Aladdin Systems, Inc.
SuSE is a registered trademark of SuSE AG.
TeX is a trademark of the American Mathematical Society (AMS).
UNIX is a registered trademark of The Open Group.
VMS is a registered trademark of COMPAQ Computer Corporation.
VMware is a registered trademark of VMware, Inc.
WordPerfect is a registered trademark of Corel Corporation.
X Windows is a registered trademark of the Massachusetts Institute of Technology.
All other trademarks are the property of their respective owners.


Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck