The Linux Knowledge Base and Tutorial

Total Page:16

File Type:pdf, Size:1020Kb

The Linux Knowledge Base and Tutorial The Linux Knowledge Base and Tutorial 16 January 2005 The Linux Knowledge Base and Tutorial www.linux-tutorial.info Table of Contents Terms of Use and Disclamier of Warranty . 1 Copyright . 2 Preface . 3 Chapter 1 Introduction to Operating Systems . 4 1.1 What Is an Operating System . 4 1.2 Processes . 6 1.2.1 Virtual Memory Basics . 12 1.3 Files and Directories . 13 1.4 Operating System Layers . 19 1.5 Moving On . 20 Chapter 2 Linux Basics . 22 2.1 What Linux is All About . 22 2.1.1 Guided Tour . 22 2.1.2 What Linux is Made of . 29 2.1.3 What Linux Does . 32 2.1.4 What goes with Linux . 34 2.2 Linux Documentation . 35 2.3 Other Resources . 40 2.3.1 Linux Certification . 41 Chapter 3 Working with the System . 45 3.1 Backing-up and Restoring Files . 45 3.2 Interacting with the System . 47 3.3 Logging In . 50 3.4 Logging Out . 52 3.5 When Things Go Wrong . 53 3.6 Accessing Disks . 57 Chapter 4 Shells and Utilities . 58 4.1 The Shell . 58 4.2 The Search Path . 61 4.3 Directory Paths . 63 4.4 Shell Variables . 64 4.5 Permissions . 66 4.6 Regular Expressions and Metacharacters . 70 4.7 Quotes . 78 4.8 Pipes and Redirection . 80 4.9 Interpreting the Command . 84 4.10 Different Kinds of Shells . 87 4.11 Command Line Editing . 88 4.12 Functions . 90 4.13 Job Control . 91 4.14 Aliases . 92 4.15 A Few More Constructs . 94 4.16 The C-Shell . 95 4.17 Commonly Used Utilities . 99 4.17.1 Examples of Commonly Used Utilities . 100 Directory listings: ls . 100 Removing files: rm . 101 Copying files: cp . 101 Renaming and moving files: mv . 102 Linking files: ln . 102 Display the contents of files: cat more and less . 103 Combining multiple files: cat . 103 Display the contents of files: more . 103 This document copyrighted material. All right reserved. See http://www.linux-tutorial.info/copyright.html for details. i www.linux-tutorial.info The Linux Knowledge Base and Tutorial Display the contents of files: less . 103. 4.18 Looking for Files . 103. 4.19 Looking Through Files . 110. 4.20 Basic Shell Scripting . 115. 4.21 Managing Scripts . 123. 4.22 Shell Odds and Ends . 125. Chapter 5 Editing Files . 127. 5.1 Vi . 127. 5.1.1 vi Basics . 127. 5.1.2 Changing Text in vi . 130. 5.1.3 Moving Around in vi . 131. 5.1.4 Searching in vi . 132. 5.1.5 vi Buffers . 135. 5.1.6 vi Magic . 138. 5.1.7 Command Output in vi . 140. 5.1.8 More vi Magic . 141. 5.1.9 vi Odds and Ends . 141. 5.1.10 Configuring vi . 144. 5.2 Sed . 144. 5.3 Awk . 149. 5.4 Perl . 155. Chapter 6 Basic Administration . 177. 6.1 Starting and Stopping the System . 177. 6.1.1 The Boot Process . 177. 6.1.2 Run Levels . 183. 6.1.3 Init Scripts . 186. 6.1.4 LILO-The Linux Loader . 190. 6.1.5 Stopping the System . 192. 6.2 User Accounts . 194. 6.2.1 logging in . 199. 6.3 Terminals . 201. 6.3.1 Terminal Capabilities . 202. 6.3.2 Terminal Settings . 203. 6.4 Printers and Interfaces . 206. 6.4.1 advanced formatting . 209. 6.4.2 printcap . 211. 6.4.3 remote printing . 212. 6.5 System Logging . 212. 6.5.1 Syslogd . 212. 6.5.2 Managing System Logs . 216. 6.6 Backups . 219. 6.7 cron . 220. 6.8 User Communication . 224. 6.9 Webmin . 226. Chapter 7 The X Windowing System . 232. 7.1 Configuring the X-Windows Server . 232. 7.2 The Basics of X . 236. 7.3 Resources . 239. 7.4 Colors . 242. 7.5 Displaying Clients . 243. 7.6 Fonts . 245. 7.7 The Window Manager . 250. 7.8 Remote Access . 253. 7.8.1 XDMCP . 254. Chapter 8 The Computer Itself . 256. 8.1 Basic Input-Output Services and the System Bus . 256. This document copyrighted material. All right reserved. See http://www.linux-tutorial.info/copyright.html for details. ii The Linux Knowledge Base and Tutorial www.linux-tutorial.info 8.2 The Expansion Bus . 259. 8.2.1 Industry Standard Architecture ISA . 260. 8.2.2 MCA . 265. 8.2.3 Extended Industry Standard Architecture EISA . 267. 8.2.4 The Small Computer Systems Interface SCSI . 269. 8.2.5 Termination . 276. 8.2.6 PCI . 277. 8.2.7 AGP . 278. 8.3 Memory . 278. 8.3.1 RAM . 279. 8.3.2 Cache Memory . 283. 8.4 The Central Processing Unit . 285. 8.4.1 Intel Processors . 286. 8.4.2 AMD . 296. 8.4.3 Alpha Processors . 297. 8.4.4 Mips . 299. 8.4.5 SPARC . 299. 8.4.6 ARM Processors . 299. 8.5 Motherboards . 300. 8.6 Hard Disks . 302. 8.6.1 RAID . 313. 8.6.2 Serial ATA . 317. 8.7 Floppy Drives . 320. 8.8 Tape Drives . 322. 8.9 CD-ROMS . 325. 8.10 Serial Ports . 327. 8.11 Parallel Ports . 331. 8.12 Video Cards and Monitors . 333. 8.12.1 Video Card Common Problems . 336. 8.13 Modems . 337. 8.14 Printers . 341. 8.15 Mice . 348. 8.16 Uninterruptable Power Supplies . 349. 8.17 Cases . 349. 8.18 The Right Hardware . 351. 8.19 HW Diagnostics . 360. Chapter 9 Networking . 367. 9.1 TCP-IP . 367. 9.1.1 IP Addressing . 373. 9.1.2 Pseudo Terminals . 375. 9.1.3 Network Services . 376. 9.1.4 Network Standards . 379. 9.1.5 Subnet Masks . 380. 9.1.6 Routing and IP Gateways . 382. 9.1.7 The Domain Name System . 386. 9.1.7.1 Configuring the Domain Name System DNS . 390. 9.2 DHCP . 407. 9.3 NFS . ..
Recommended publications
  • Ajuba Solutions Version 1.4 COPYRIGHT Copyright © 1998-2000 Ajuba Solutions Inc
    • • • • • • Ajuba Solutions Version 1.4 COPYRIGHT Copyright © 1998-2000 Ajuba Solutions Inc. All rights reserved. Information in this document is subject to change without notice. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means electronic or mechanical, including but not limited to photocopying or recording, for any purpose other than the purchaser’s personal use, without the express written permission of Ajuba Solutions Inc. Ajuba Solutions Inc. 2593 Coast Avenue Mountain View, CA 94043 U.S.A http://www.ajubasolutions.com TRADEMARKS TclPro and Ajuba Solutions are trademarks of Ajuba Solutions Inc. Other products and company names not owned by Ajuba Solutions Inc. that appear in this manual may be trademarks of their respective owners. ACKNOWLEDGEMENTS Michael McLennan is the primary developer of [incr Tcl] and [incr Tk]. Jim Ingham and Lee Bernhard handled the Macintosh and Windows ports of [incr Tcl] and [incr Tk]. Mark Ulferts is the primary developer of [incr Widgets], with other contributions from Sue Yockey, John Sigler, Bill Scott, Alfredo Jahn, Bret Schuhmacher, Tako Schotanus, and Kris Raney. Mark Diekhans and Karl Lehenbauer are the primary developers of Extended Tcl (TclX). Don Libes is the primary developer of Expect. TclPro Wrapper incorporates compression code from the Info-ZIP group. There are no extra charges or costs in TclPro due to the use of this code, and the original compression sources are freely available from http://www.cdrom.com/pub/infozip or ftp://ftp.cdrom.com/pub/infozip. NOTE: TclPro is packaged on this CD using Info-ZIP’s compression utility.
    [Show full text]
  • And PC 750 (Type 6887)
    Technical Information Manual PC 730 (Type 6877) and PC 750 (Type 6887) Technical Information Manual IBM PC 730 (Type 6877) and PC 750 (Type 6887) Note Before using this information and the product it supports, be sure to read the general information under Appendix B, “Notices and Trademarks” on page 65. First Edition (June 1996) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time. It is possible that this publication may contain reference to, or information about, IBM products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that IBM intends to announce such IBM products, programming, or services in your country. Requests for technical information about IBM products should be made to your IBM reseller or IBM marketing representative. IBM may have patents or pending patent applications covering subject matter in this document.
    [Show full text]
  • Dwarf's Guide to Debian GNU/Linux
    Dwarf’s Guide to Debian GNU/Linux 2001 Dale Scheetz Dwarf’s Guide to Debian GNU/Linux Copyright c 2001 Dale Scheetz Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being Chapter 1 Introduction, with no Front-Cover Texts, and with the Back-Cover Texts being “The early development of the material in this work was produced with the financial support of Planet Linux. This support was intrumental in bringing this project to completion.” A copy of the license is included in the section entitled “Appendix 9: GNU Free Documentation License” which can be found on page 271. Trademark Acknowledgements All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. The publisher 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. Apple and Macintosh are registered trademarks of Apple Computer, Inc. CP/M is a registered trademark of Caldera, Inc. IBM is a registered trademark of International Business Machines, Inc. MS is a trademark of Microsoft Corporation. Windows is a trademark of Microsoft Corporation. X Window System is a registered trademark of X Consortium, Inc. ii dedicated to Linux users everywhere iii CREDITS First I want to thank Ian Murdock for writing the History section. His per- spectives on those early years have helped latecomers like Dwarf understand the founding principles upon which Debian is based.
    [Show full text]
  • PIC Licensing Information User Manual
    Oracle® Communications Performance Intelligence Center Licensing Information User Manual Release 10.1 E56971 Revision 3 April 2015 Oracle Communications Performance Intelligence Center Licensing Information User Manual, Release 10.1 Copyright © 2003, 2015 Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notices are applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
    [Show full text]
  • Advanced Tcl E D
    PART II I I . A d v a n c Advanced Tcl e d T c l Part II describes advanced programming techniques that support sophisticated applications. The Tcl interfaces remain simple, so you can quickly construct pow- erful applications. Chapter 10 describes eval, which lets you create Tcl programs on the fly. There are tricks with using eval correctly, and a few rules of thumb to make your life easier. Chapter 11 describes regular expressions. This is the most powerful string processing facility in Tcl. This chapter includes a cookbook of useful regular expressions. Chapter 12 describes the library and package facility used to organize your code into reusable modules. Chapter 13 describes introspection and debugging. Introspection provides information about the state of the Tcl interpreter. Chapter 14 describes namespaces that partition the global scope for vari- ables and procedures. Namespaces help you structure large Tcl applications. Chapter 15 describes the features that support Internationalization, includ- ing Unicode, other character set encodings, and message catalogs. Chapter 16 describes event-driven I/O programming. This lets you run pro- cess pipelines in the background. It is also very useful with network socket pro- gramming, which is the topic of Chapter 17. Chapter 18 describes TclHttpd, a Web server built entirely in Tcl. You can build applications on top of TclHttpd, or integrate the server into existing appli- cations to give them a web interface. TclHttpd also supports regular Web sites. Chapter 19 describes Safe-Tcl and using multiple Tcl interpreters. You can create multiple Tcl interpreters for your application. If an interpreter is safe, then you can grant it restricted functionality.
    [Show full text]
  • Linux Installation and Getting Started
    Linux Installation and Getting Started Copyright c 1992–1996 Matt Welsh Version 2.3, 22 February 1996. This book is an installation and new-user guide for the Linux system, meant for UNIX novices and gurus alike. Contained herein is information on how to obtain Linux, installation of the software, a beginning tutorial for new UNIX users, and an introduction to system administration. It is meant to be general enough to be applicable to any distribution of the Linux software. This book is freely distributable; you may copy and redistribute it under certain conditions. Please see the copyright and distribution statement on page xiii. Contents Preface ix Audience ............................................... ix Organization.............................................. x Acknowledgments . x CreditsandLegalese ......................................... xii Documentation Conventions . xiv 1 Introduction to Linux 1 1.1 About This Book ........................................ 1 1.2 A Brief History of Linux .................................... 2 1.3 System Features ......................................... 4 1.4 Software Features ........................................ 5 1.4.1 Basic commands and utilities ............................. 6 1.4.2 Text processing and word processing ......................... 7 1.4.3 Programming languages and utilities .......................... 9 1.4.4 The X Window System ................................. 10 1.4.5 Networking ....................................... 11 1.4.6 Telecommunications and BBS software .......................
    [Show full text]
  • GNU/Linux AI & Alife HOWTO
    GNU/Linux AI & Alife HOWTO GNU/Linux AI & Alife HOWTO Table of Contents GNU/Linux AI & Alife HOWTO......................................................................................................................1 by John Eikenberry..................................................................................................................................1 1. Introduction..........................................................................................................................................1 2. Traditional Artificial Intelligence........................................................................................................1 3. Connectionism.....................................................................................................................................1 4. Evolutionary Computing......................................................................................................................1 5. Alife & Complex Systems...................................................................................................................1 6. Agents & Robotics...............................................................................................................................1 7. Programming languages.......................................................................................................................2 8. Missing & Dead...................................................................................................................................2 1. Introduction.........................................................................................................................................2
    [Show full text]
  • Applyx 076 (LYX 2.1.5)
    Applyx 076 (LYX 2.1.5) Pierre L. Douillet 17 septembre 2019 (a short tale of modern ages - 3) Résumé Tant que l’on n’a jamais su que Alzheimer s’écrivait avec un "h", il n’y a aucun problème à ne pas s’en souvenir. Mais il n’y a rien de plus agaçant que de savoir que l’on a rencontré la réponse à un problème technique dans un bouquin de 999 pages (et c’était sur une page de gauche, mais peut-être aussi sur une page de droite)... Tandis qu’un document informatisé est facile à interroger, et en même temps plus difficile à égarer qu’une suite de notes papier. Les distributions visées sont SuSE − 6:1, SuSE − 6:2, SuSE − 6:3, SuSE − 6:4, SuSE − 7:0, SuSE − 7:2, SuSE − 7:3, SuSE − 8:0, SuSE − 8:1, SuSE − 9:3, SuSE − 10:2, SuSE − 11:0, SuSE − 11:3, SuSE − 11:4; SuSE − 13:1 et SuSE − 42:1. D’autres distributions existent. Par exemple RedHat, dont au moins une livraison formate spontanément tous les disques durs d’une machine, etc. Dans ce qui suit, les items numérotés décrivent les questions ayant trouvé une réponse (même désagréable) tandis que les items avec des boulets décrivent les questions restées en suspens. Par ailleurs, la taille de ce document augmentant au fil du temps, nous l’avons fractionné en quatre parties : (1) installation proprement dite, (2) configuration d’un système installé, (3) partie "appli- cative" des problèmes rencontrés, (4) collation des batchs utilisés pour la configuration du barnum.
    [Show full text]
  • Red Hat Enterprise Linux 7 7.8 Release Notes
    Red Hat Enterprise Linux 7 7.8 Release Notes Release Notes for Red Hat Enterprise Linux 7.8 Last Updated: 2021-03-02 Red Hat Enterprise Linux 7 7.8 Release Notes Release Notes for Red Hat Enterprise Linux 7.8 Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
    [Show full text]
  • Red Hat Enterprise Linux 7 7.9 Release Notes
    Red Hat Enterprise Linux 7 7.9 Release Notes Release Notes for Red Hat Enterprise Linux 7.9 Last Updated: 2021-08-17 Red Hat Enterprise Linux 7 7.9 Release Notes Release Notes for Red Hat Enterprise Linux 7.9 Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
    [Show full text]
  • The Best Nix for a Combined Honeypot Sensor Server Stephen M
    Regis University ePublications at Regis University All Regis University Theses Spring 2011 The Best Nix for a Combined Honeypot Sensor Server Stephen M. Rodriguez Regis University Follow this and additional works at: https://epublications.regis.edu/theses Part of the Computer Sciences Commons Recommended Citation Rodriguez, Stephen M., "The Best Nix for a Combined Honeypot Sensor Server" (2011). All Regis University Theses. 632. https://epublications.regis.edu/theses/632 This Thesis - Open Access is brought to you for free and open access by ePublications at Regis University. It has been accepted for inclusion in All Regis University Theses by an authorized administrator of ePublications at Regis University. For more information, please contact [email protected]. Regis University College for Professional Studies Graduate Programs Final Project/Thesis Disclaimer Use of the materials available in the Regis University Thesis Collection (“Collection”) is limited and restricted to those users who agree to comply with the following terms of use. Regis University reserves the right to deny access to the Collection to any person who violates these terms of use or who seeks to or does alter, avoid or supersede the functional conditions, restrictions and limitations of the Collection. The site may be used only for lawful purposes. The user is solely responsible for knowing and adhering to any and all applicable laws, rules, and regulations relating or pertaining to use of the Collection. All content in this Collection is owned by and subject to the exclusive control of Regis University and the authors of the materials. It is available only for research purposes and may not be used in violation of copyright laws or for unlawful purposes.
    [Show full text]
  • TORQUE Resource Manager Administrator Guide 4.2.10
    TORQUE Resource Manager Administrator Guide 4.2.10 March 2015 © 2015 Adaptive Computing Enterprises Inc. All rights reserved. Distribution of this document for commercial purposes in either hard or soft copy form is strictly prohibited without prior written consent from Adaptive Computing Enterprises Inc. Adaptive Computing, Cluster Resources, Moab, Moab Workload Manager, Moab Viewpoint, Moab Cluster Manager, Moab Cluster Suite, Moab Grid Scheduler, Moab Grid Suite, Moab Access Portal, and other Adaptive Computing products are either registered trademarks or trademarks of Adaptive Computing Enterprises Inc. The Adaptive Computing logo and the Cluster Resources logo are trademarks of Adaptive Computing Enterprises Inc. All other company and product names may be trademarks of their respective companies. Adaptive Computing Enterprises Inc. 1712 S. East Bay Blvd., Suite 300 Provo, UT 84606 +1 (801) 717-3700 www.adaptivecomputing.com Scan to open online help ii Contents Welcome ix Introduction ix TORQUE Administrator Guide overview xi Chapter 1: Overview 1 TORQUE installation overview 1 TORQUE architecture 1 Installing TORQUE 2 Compute nodes 5 Enabling TORQUE as a service 7 Initializing/Configuring TORQUE on the server (pbs_server) 7 Specifying compute nodes 9 Configuring TORQUE on compute nodes 10 Configuring Ports 11 Configuring trqauthd for client commands 13 Finalizing configurations 14 Advanced configuration 14 Customizing the install 15 Server configuration 21 Manual setup of initial server configuration 26 Server node file configuration
    [Show full text]