SAMS Teach Yourself Unix in 10 Minutes By Robert Shimonski Publisher: Sams Publishing Pub Date: June 15, 2005 ISBN: 0-672-32764-3 Pages: 256 Table of Contents | Index If you're in need of a quick, concise tutorial to learn Unix and get on your way, this is it. Sams Teach Yourself UNIX in 10 Minutes, Second Edition will help you quickly and easily learn UNIX essentials and review UNIX features and functions. You will master components of UNIX programming through clear, concise learning modules and step-by-step instructions without having to wade through a lot of fluff and theory. You will learn to: Get onto the system and use the command line• Move about the file system• Create, move, rename and delete files and directories• Slice and dice command pipe data• Use the vi Editor• Print in the UNIX environment• And more!• Whatever your expertise level, Sams Teach Yourself UNIX in 10 Minutes will get you up and running with UNIX in no time. SAMS Teach Yourself Unix in 10 Minutes By Robert Shimonski Publisher: Sams Publishing Pub Date: June 15, 2005 ISBN: 0-672-32764-3 Pages: 256 Table of Contents | Index Copyright About the Author Acknowledgments We Want to Hear from You! 1 1 Reader Services Introduction Welcome to Sams Teach Yourself Unix in 10 Minutes Unix Overview Versions of Unix Teach Yourself Unix in 10 Minutes How Do You Use Unix? Getting More Information Who This Book Is For Author Note Conventions Used in This Book Lesson 1. Getting Started Practicing with Unix: It Really Does Make 2 2 You Perfect! Prepare to Log In The Login Process The Logout Process Shell Game Working Within the Shell Summary Lesson 2. Getting Help Finding Help in Unix Using the Unix Man Pages More Help Even More Help! Graphical Help (Using KDE) Additional Documentation Summary Lesson 3. Interfacing with Unix Graphically Overview of the X 3 3 Window System How Many Windows Are There? X Window System Functionality Window Placement X Window System Look and Feel Window Managers Desktop Environments Summary Lesson 4. The File System Explained File System Design Navigating the File System Navigating the File System with the GUI Summary Lesson 5. File System Navigation Techniques Using the find 4 4 Command Finding Data with Other Unix Commands The grep Command Using the KDE Find Feature Summary Lesson 6. Working with the Shell Working with Files at the Unix Shell Prompt Summary Lesson 7. Reading Files The cat Command Making Output Readable with Pagers The tail Command Summary Lesson 8. Text Editing Text Editing with 5 5 Unix The vi Editor The emacs Editor Desktop Environment Tools: KDE's Built-in Editor Summary Lesson 9. Text and File Utilities The wc Command The split Command The diff and patch Commands Tying It All Together: File Management Skills Test Summary Lesson 10. Compression and Archiving Tools Managing Files in Unix Managing Your Disk Usage 6 6 Compressing Files in Unix The tar Command Using uuencode/uudecode Summary Lesson 11. Managing Processes in Unix Multitasking The ps Command The kill Command The at and cron Commands Summary Lesson 12. Input and Output I/O Redirection Standard I/O Pipes Summary Lesson 13. Regular Expressions Pattern Matching and Regular Expressions Using . and * Using 7 7 [] and ^ Using ^ (Again) and $ Summary Lesson 14. Shell Scripting Fundamentals Building Unix Shell Script Files Using foreach Using while and if Summary Lesson 15. User Utilities Using chsh The passwd Command Using finger and chfn Using date Using uptime Using who Summary Lesson 16. Modifying Your Environment Aliases Environment Variables 8 8 Paths Using Dot Files Working with the GUI Summary Lesson 17. Printing with Unix The lpr Command The lpq Command The lprm Command Summary Lesson 18. Networking and Security Using telnet Using ssh Using rlogin Using slogin Using ftp Summary Lesson 19. Configuring Permissions in Unix Unix File and Directory Permissions Using ls -l 9 9 Using chmod Using chgrp Summary Lesson 20. Unix Privileged Commands Root Refresher Single-User Mode fsck shutdown/reboot Summary Appendix A. Learn More About Unix: Reference Index Copyright Copyright © 2005 by Sams Publishing All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein. Library of Congress Catalog Card Number: 2004098030 Printed in the United States of America First Printing: June 2005 08 07 06 05 4 3 2 1 Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. 10 10 [...]... Publishing title, visit our website at www.samspublishing.com Type the ISBN (excluding hyphens) or the title of a book in the Search field to find the page you're looking for Introduction Welcome to Sams Teach Yourself Unix in 10 Minutes Unix Overview Versions of Unix Teach Yourself Unix in 10 Minutes How Do You Use Unix? Getting More Information Who This Book Is For Author Note Conventions Used in This... This Book Welcome to Sams Teach Yourself Unix in 10 Minutes Welcome to Sams Teach Yourself Unix in 10 Minutes If you are new to Unix or just want to learn more about it, you have undoubtedly chosen the perfect companion for your journey Whatever your reasons were for picking up this book, you will be glad that you did, because it is filled with useful information to help you learn Unix This book's mission... how things work on your system as well as how things work on other distributions of Unix Teach Yourself Unix in 10 Minutes In each 10- minute lesson, you are given a small amount of material to master In most cases, the material in each lesson builds on that presented in the previous lesson, so although you can jump around between lessons, you will be best served to start the book at the beginning and... beginning and move through it in order You can come back and forth as you master each lesson, in case you forget a command or how to do something This book is divided into seven parts Part I, "Learning the Unix Environment: Baby Steps," covers logging in to a Unix (or Linux) system so you can begin to learn Unix You will learn how to get into Unix (and Linux) so that you can work within it Part I also shows... most of your interaction with Unix is likely to be textual commands typed at a command-line prompt Most implementations of Unix do provide a graphical user interface (GUI); however, even when running the GUI, much of what you are likely to do involves typing commands into terminal windows that are available in the GUI We will be covering both in this book, because some versions of Unix install graphically... example, with a Microsoft Windows desktop operating system such as Windows XP Professional, you would log in to the system with the Administrator account and use an assigned password configured by the administrator of that system to gain access In Unix, the logistical setup for logging in is essentially the same Other things to remember about the Unix login process are as follows: • In Unix, there are different... files used in other versions: • Linux distributions use ****.m4 files • IRIX will use a secondary proprietary means if xinitrc does not load initially The xinitrc File Goes by Other Names Just like many other things in Unix, there are variations in the name of the xinitrc file in different distributions Other known versions of this file include Xinit, xinit, Xinitrc, or xsession Remember, Unix is case... 32 Unix and Linux Resources Online Unix resources can be found online quickly if you use a search engine to locate them Using your favorite Web browser, run a search for "unix help" or "unix commands." You can even be more specific The results should keep you busy for quite some time In addition, some of the most helpful Unix- and Linux-based sites on the Web as of the printing of this publication include... where your installation differs from the collective norm • Online Resources The Linux Documentation Project provides an excellent starting point when wading through the mountains of Linux information online Remember, even though the information is specifically for Linux, most of it applies to other Unix variations as well The comp .unix. * newsgroups are also extremely useful for hard-to-find answers... how to print with Unix as well as how to set up basic networking and security Part VII, "Tips and Tricks," covers advanced topics and some Linux so that you can work within Linux (since it's easier to get and use) and learn Unix in the convenience of your home or anywhere else you may want to put a new Linux- or Unix- based system How Do You Use Unix? Unless you're simply using a Unix machine as a platform . expertise level, Sams Teach Yourself UNIX in 10 Minutes will get you up and running with UNIX in no time. SAMS Teach Yourself Unix in 10 Minutes By Robert Shimonski Publisher: Sams Publishing Pub Date:. for. Introduction Welcome to Sams Teach Yourself Unix in 10 Minutes Unix Overview Versions of Unix Teach Yourself Unix in 10 Minutes How Do You Use Unix? Getting More Information Who This Book Is. For Author Note Conventions Used in This Book Welcome to Sams Teach Yourself Unix in 10 Minutes Welcome to Sams Teach Yourself Unix in 10 Minutes. If you are new to Unix or just want to learn more about