Summary
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 Editionwill 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 Minuteswill get you up and running with UNIX in no time.
Author Biography
Sams Teach Yourself Unix in 10 Minutes About the Author
Robert Shimonski is a well-known networking and security expert consulting out of the Long Island, New York area. Rob has authored over 30 books on information technology that include topics specializing in systems engineering with Unix and Microsoft technologies, as well as networking and security design with Check Point and Cisco technologies.
Rob has also deployed state-of-the-art technology in hundreds of companies worldwidejust recently designing and implementing a global MPLS network spanning hundreds of sites. Rob was fortunate to have been able to keep up with his love for Unix by deploying Linux systems and freeware networking and security tools such as Ethereal, NMIS, and MRTG, to name a few.
Because of Rob's unique blend of Unix- and Linux-related real world experience, Rob has served as a technical editor and author on countless Unix- and Linux- related articles and books. Rob was also the networking and security expert chosen to help develop and design LinuxWorld Magazine. You can view LinuxWorld Magazine at http://www.linuxworld.com. To learn more about Roberts's book projects, please visit him at http://www.rsnetworks.net.
© Copyright Pearson Education. All rights reserved.
Table of Contents
Introduction |
|
xi | |
Part I Learning the Unix Environment: Baby Steps |
|
|
|
1 | (15) |
|
Practicing with Unix: It Really Does Make You Perfect! |
|
|
2 | (1) |
|
|
3 | (2) |
|
|
5 | (3) |
|
|
8 | (2) |
|
|
10 | (3) |
|
|
13 | (2) |
|
|
15 | (1) |
|
|
16 | (13) |
|
|
17 | (1) |
|
|
18 | (3) |
|
|
21 | (3) |
|
|
24 | (1) |
|
Graphical Help (Using KDE) |
|
|
25 | (1) |
|
|
25 | (2) |
|
|
27 | (2) |
|
3 Interfacing with Unix Graphically |
|
|
29 | (18) |
|
Overview of the X Window System |
|
|
29 | (1) |
|
How Many Windows Are There? |
|
|
30 | (1) |
|
X Window System Functionality |
|
|
30 | (6) |
|
|
36 | (2) |
|
X Window System Look and Feel |
|
|
38 | (2) |
|
|
40 | (3) |
|
|
43 | (2) |
|
|
45 | (2) |
Part II Navigating the Unix File System |
|
|
4 The File System Explained |
|
|
47 | (19) |
|
|
47 | (3) |
|
Navigating the File System |
|
|
50 | (12) |
|
Navigating the File System with the GUI |
|
|
62 | (2) |
|
|
64 | (2) |
|
5 File System Navigation Techniques |
|
|
66 | (10) |
|
|
66 | (4) |
|
Finding Data with Other Unix Commands |
|
|
70 | (1) |
|
|
71 | (1) |
|
Using the KDE Find Feature |
|
|
72 | (2) |
|
|
74 | (2) |
Part III File System Utilities |
|
|
|
76 | (17) |
|
Working with Files at the Unix Shell Prompt |
|
|
77 | (14) |
|
|
91 | (2) |
|
|
93 | (9) |
|
|
93 | (3) |
|
Making Output Readable with Pagers |
|
|
96 | (3) |
|
|
99 | (2) |
|
|
101 | (1) |
|
|
102 | (12) |
|
|
103 | (1) |
|
|
103 | (4) |
|
|
107 | (4) |
|
Desktop Environment Tools: KDE's Built-in Editor |
|
|
111 | (1) |
|
|
112 | (2) |
|
9 Text and File Utilities |
|
|
114 | (11) |
|
|
115 | (1) |
|
|
116 | (1) |
|
The cliff and patch Commands |
|
|
117 | (2) |
|
Tying It All Together: File Management Skills Test |
|
|
119 | (4) |
|
|
123 | (2) |
|
10 Compression and Archiving Tools |
|
|
125 | (12) |
|
|
125 | (1) |
|
|
126 | (2) |
|
Compressing Files in Unix |
|
|
128 | (4) |
|
|
132 | (2) |
|
|
134 | (1) |
|
|
135 | (2) |
Part IV Working with the Shell |
|
|
11 Managing Processes in Unix |
|
|
137 | (13) |
|
|
138 | (2) |
|
|
140 | (2) |
|
|
142 | (1) |
|
|
143 | (5) |
|
|
148 | (2) |
|
|
150 | (8) |
|
|
150 | (2) |
|
|
152 | (3) |
|
|
155 | (1) |
|
|
156 | (2) |
|
|
158 | (8) |
|
Pattern Matching and Regular Expressions |
|
|
158 | (2) |
|
|
160 | (2) |
|
|
162 | (2) |
|
|
164 | (1) |
|
|
164 | (2) |
|
14 Shell Scripting Fundamentals |
|
|
166 | (9) |
|
Building Unix Shell Script Files |
|
|
170 | (1) |
|
|
171 | (2) |
|
|
173 | (1) |
|
|
174 | (1) |
Part V Environment Customization |
|
|
|
175 | (11) |
|
|
175 | (2) |
|
|
177 | (2) |
|
|
179 | (3) |
|
|
182 | (1) |
|
|
183 | (1) |
|
|
183 | (1) |
|
|
184 | (2) |
|
16 Modifying Your Environment |
|
|
186 | (8) |
|
|
186 | (1) |
|
|
187 | (2) |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
191 | (1) |
|
|
192 | (2) |
Part VI Networking and Communications |
|
|
|
194 | (7) |
|
|
195 | (3) |
|
|
198 | (1) |
|
|
199 | (1) |
|
|
200 | (1) |
|
18 Networking and Security |
|
|
201 | (8) |
|
|
202 | (1) |
|
|
203 | (1) |
|
|
204 | (2) |
|
|
206 | (1) |
|
|
206 | (2) |
|
|
208 | (1) |
Part VII Tips and Tricks |
|
|
19 Configuring Permissions in Unix |
|
|
209 | (10) |
|
Unix File and Directory Permissions |
|
|
209 | (3) |
|
|
212 | (1) |
|
|
213 | (4) |
|
|
217 | (1) |
|
|
218 | (1) |
|
20 Unix Privileged Commands |
|
|
219 | (7) |
|
|
219 | (2) |
|
|
221 | (1) |
|
|
222 | (1) |
|
|
223 | (1) |
|
|
224 | |
Part VIII Appendix |
|
|
A Learn More About Unix: Reference |
|
|
226 | (3) |
Index |
|
229 | |
Excerpts
= 0) {slash = '\\';} else {slash = '/';}openLoc = figLoc.substring(0, figLoc.lastIndexOf(slash) + 1);while (pPage.substring(0,3) == '../') {openLoc = openLoc.substring(0, openLoc.lastIndexOf(slash, openLoc.length - 2)+ 1);pPage = pPage.substring(3, pPage.length + 1);}popUpWin =window.open('','popWin','resizable=1,scrollbars=1,location=0,toolbar=0,width=525,height=394');figDoc = popUpWin.document;zhtm= ' ' + pPage + ' ';zhtm += ' ';zhtm += ' ';zhtm += ' ';zhtm += '' + pPage.substring(pPage.lastIndexOf('/') + 1, pPage.length) + '';zhtm += ' ';figDoc.write(zhtm);figDoc.close();}// modified 3.1.99 RWE v4.1 --> Introduction Introduction Welcome toSamsTeach Yourself Unix in 10 MinutesWelcome toSams 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 is to ensure that you walk away with a fundamental understanding of Unix, how to navigate and use it, and how to become more productive with it. Another goal of this book is to show you other avenues for gathering information that will help you continue your education beyond the lessons herein. Unix OverviewBecause of growing market share from companies such as Red Hat, Sun, IBM, and Novell, it's no wonder that Unix is becoming more and more of a household name. Unix (and Linux, which is Linus Torvald's version of Unix) is now found in most firewall and Web-server-based systems as well as all the way to the desktop for end user productivity and development. Unix has deep roots in the computer industry. First surfacing in universities and the military, it began to grow more and more in use with the massive development and expansion of the Internet. Once Linux was released, the landscape of Unix changed forever. Now, Linux (an easier to use version of the Unix operating system) and Unix are both found almost everywhere you look, and to ignore them is simply impossible.Some common versions of Unix (called distributions, or distros for short) you may have heard of are Sun Solaris, IBM AIX, FreeBSD, Red Hat Linux, SuSE Linux (also known as Novell SUSE), and SCO ACE. Although these versions of the Unix operating system have differences, they all share the same thing: a basic Unix kernel that can be openly worked on and developed by anyone with the knowledge to do so. In this book, we will focus on the similarities between all versions of Unix so that you can use any one of them and still be productive.U