Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer



Similar documents
Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Tutorial 0A Programming on the command line

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

HP-UX Essentials and Shell Programming Course Summary

Introduction to Mac OS X

A candidate following a programme of learning leading to this unit will be able to:

Linux System Administration on Red Hat

USEFUL UNIX COMMANDS

Tera Term Telnet. Introduction

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

Introduction to AIX 6L System Administration Course Summary

Unix Sampler. PEOPLE whoami id who

ICS 351: Today's plan

Fundamentals of UNIX Lab Networking Commands (Estimated time: 45 min.)

A Crash Course on UNIX

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

Command Line Crash Course For Unix

NCDware Publications Roadmap

THE WHOLE INTERNET USER'S GUIDE & CATALOG EDKROL

A UNIX/Linux in a nutshell

Thirty Useful Unix Commands

Command Line - Part 1

Enterprise Reporting Server v3.5

Training Day : Linux

Introduction to the UNIX Operating System and Open Windows Desktop Environment

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Tutorial Guide to the IS Unix Service

Basic System. Vyatta System. REFERENCE GUIDE Using the CLI Working with Configuration System Management User Management Logging VYATTA, INC.

The latest update can be found on the Bruker FTP servers:

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009

SO114 - Solaris 10 OE Network Administration

Linux System Administration. System Administration Tasks

Getting Started in Red Hat Linux An Overview of Red Hat Linux p. 3 Introducing Red Hat Linux p. 4 What Is Linux? p. 5 Linux's Roots in UNIX p.

Computing Service G72. File Transfer Using SCP, SFTP or FTP. many leaflets can be found at:

Backup of ESXi Virtual Machines using Affa

CS 103 Lab Linux and Virtual Machines

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

LSN 10 Linux Overview

Basic Linux and Unix commands, editing and transfering files

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Specialized Programme on Internetworking Design and LAN WAN Administration

Using Symantec NetBackup with Symantec Security Information Manager 4.5

Unix Tools. Overview. Editors. Editors nedit vi Browsers/HTML Editors Mail Tools Utilities xv xman ftp

List of FTP commands for the Microsoft command-line FTP client

CDS and Clearing Limited Thapathali, Kathmandu 7 th Level (Technical) Syllabus

Professional. SlickEdif. John Hurst IC..T...L. i 1 8 О 7» \ WILEY \ Wiley Publishing, Inc.

Linux+ Guide to Linux Certification, Third Edition. Chapter 11 Compression, System Backup, and Software Installation

2- Electronic Mail (SMTP), File Transfer (FTP), & Remote Logging (TELNET)

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Training on Linux System Administration, LPI Certification Level 1

University of Toronto

Moxa Device Manager 2.0 User s Guide

Product Description. Licenses Notice. Introduction TC-200

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

Example of Standard API

UNISOL SysAdmin. SysAdmin helps systems administrators manage their UNIX systems and networks more effectively.

UNIX Tutorial for Beginners

Danware introduces NetOp Remote Control in version 7.01 replacing version 7.0 as the shipping version.

THREE YEAR DEGREE (HONS.) COURSE BACHELOR OF COMPUTER APPLICATION (BCA) First Year Paper I Computer Fundamentals

Configure thin client settings locally

Understanding the Pros and Cons of Combination Networks 7. Acknowledgments Introduction. Establishing the Numbers of Clients and Servers 4

How Do I Recover infiniti Remotes and Line Cards?

Introduction to the UNIX Operating System on IT Systems

File management Editing X Window KDE. Debian/GNU Linux. Introduction II. Károly Erdei. November 21, Károly Erdei Debian/GNU Linux 1/45

File Transfer Protocol. What is Anonymous FTP? What is FTP?

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

Introduction to the new mainframe Chapter 4: Interactive facilities of z/os: TSO/E, ISPF, and UNIX

SWsoft Plesk 8.2 for Linux/Unix Backup and Restore Utilities. Administrator's Guide

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

Network Probe User Guide

EMC DiskXtender File System Manager for UNIX/Linux Release 3.5

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

F-Secure. Securing the Mobile Distributed Enterprise. F-Secure SSH User's and Administrator's Guide

2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer

WebTrends Enterprise Reporting Server for Solaris and Linux

New Lab Intro to KDE Terminal Konsole

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster

Administrator's Guide

MySQL Backups: From strategy to Implementation

Red Hat Certifications: Red Hat Certified System Administrator (RHCSA)

SWsoft Plesk 8.3 for Linux/Unix Backup and Restore Utilities

Editing Files on Remote File Systems

Open Source Computational Fluid Dynamics

UNIX: Introduction to TELNET and FTP on UNIX

INASP: Effective Network Management Workshops

UNIX - FILE SYSTEM BASICS

Table of Contents GETTING STARTED Enter Password Dialog...3 Using Online Help...3 System Configuration Menu...4

Avaya Network Configuration Manager User Guide

VERITAS NetBackup TM 6.0

VERITAS NetBackup 6.0 for Microsoft Exchange Server

SYSTEM ADMINISTRATION LAB

First Steps. Remote Access Gateway IGW/922. with DIL/NetPC ADNP/9200

An Introduction to the Linux Command Shell For Beginners

Digi Port Authority- Remote. Setup Guide _A

AN INTRODUCTION TO UNIX

System i and System p. Customer service, support, and troubleshooting

Wakanda Studio Features

Transcription:

Fred Hantelmann LINUX Start-up Guide A self-contained introduction With 57 Figures Springer

Contents Contents Introduction 1 1.1 Linux Versus Unix 2 1.2 Kernel Architecture 3 1.3 Guide 5 1.4 Typographical Conventions 8 Development of Unix 9 2.1 Academic Versions 9 2.2 Commercial Breakthrough 11 2.3 PC Unix Variants 14 2.4 Free Unix Distributions 15 Operating Linux 17 3.1 Login, Logout, Shutdown 18 3.1.1 Virtual Consoles 20 3.2 Quick Lead-in 21 3.3 Command Interpreter 26 3.3.1 Command Syntax 27 3.3.2 Environment Variables 28 3.3.3 Editing the Command Line 29 3.3.4 Wildcards 30 3.3.5 Redirecting the Input and Output 31 3.3.6 Command Sequences and Background Processes 32 3.3.7 Pipelines 34 3.4 User Profiles 34 3.5 Online Help 35 VII

Contents Programs and Processes 39 4.1 Process Monitoring 40 4.1.1 ps 41 4.1.2 top 42 4.1.3 time 43 4.2 Creating Processes 45 4.3 Process Signals 45 4.4 Independent Processes 47 4.5 Process Priority 48 4.6 Daemons 49 4.6.1 Interval Controlled Daemons 50 4.6.2 Signal Controlled Daemons 51 Files and File Systems 55 5.1 File Systems 55 5.2 The Directory Tree 57 5.3 File Types 61 5.4 File Attributes 62 5.5 Device Files 65 5.6 Device Administration 68 5.6.1 Keyboard Adaption 68 5.6.2 Graphics Mode 69 5.6.3 Hard Disk Administration 70 5.6.4 CD-ROM Operation 72 5.6.5 Diskette (Floppy) Operation 72 5.6.6 Magnetic Tape Drives 74 5.6.7 Serial Connections 75 5.6.8 Printer Administration 77 5.6.9 Ethernet Configuration 78 5.6.10 Audio Configuration 81 File Oriented Commands 83 6.1 Changing the Working Directory: cd 83 6.1.1 Displaying the Working Directory: pwd 84 6.2 Creating and Removing 85 6.2.1 Creating Directories: mkdir 86

6.2.2 Removing Directories: rmdir 86 6.2.3 Creating Files 87 6.2.4 Removing Files: rm 89 6.3 Displaying Contents 90 6.3.1 Information on File Systems: mount and df.. 90 6.3.2 Directory Information: lsanddu 91 6.3.3 File Type Identification: file 93 6.3.4 Displaying Files: cat, head and tail 94 6.3.5 Displaying Text Files: more 97 6.3.6 Displaying Binary Files: od, nm and strings. 98 6.4 Renaming Entries 102 6.5 Changing Attributes 104 6.5.1 Changing Access Permissions: chmod 105 6.5.2 Changing File Owners: chown 106 6.5.3 Changing the Group Identification: chgrp... 107 6.5.4 Modifying Time Stamps: touch 108 6.6 Copying, Saving, Reloading 109 6.6.1 Copying Files: cp. 110 6.6.2 Archive Programs: cpio and tar. Ill 6.6.3 Copying and Converting: dd 116 6.6.4 Saving Files and File Systems: dump 117 6.6.5 Restoring Files and File Systems: restore.. 118 6.7 Searching, Comparing, Sorting 119 6.7.1 Searching for File Names: find 120 6.7.2 Searching for File Contents: grep 122 6.7.3 Comparing File Contents: cmp and diff... 123 6.7.4 Sorting Text Files: sort 125 6.8 Formatting Files 127 6.8.1 Preparing Printer Output: pr 128 6.8.2 Tab Conversion: expand and unexpand... 129 6.8.3 Breaking Text Lines: fold 130 6.8.4 Merging Text Files: paste 131 6.8.5 Cutting Columns: cut 131 6.8.6 List Processing: awk 132 6.8.7 Character Translation: tr 136 6.9 Data Compression 137 6.9.1 LZC Compression: compress and uncompress 138 6.9.2 LZ77 Compression: gzip and gunzip 140 Contents IX

Contents 6 10 Regular Expressions 142 -"-"- 6.10.1 Basic Regular Expressions 142 6.10.2 Range Information 142 6.10.3 Word and Line Limits 143 6.10.4 Repetitions 144 6.10.5 Chaining Regular Expressions 144 X Editors 145 7.1 The Stream Editor sed 147 7.1.1 sed Addresses 148 7.1.2 sed Commands 149 7.2 The Screen Editor vi 153 7.2.1 Starting and Quitting vi 154 7.2.2 vi Operation Modes 156 7.2.3 Input and Replacement Modes 156 7.2.4 Moving the Cursor 157 7.2.5 Deleting, Replacing, Copying 159 7.2.6 Marks, Keyboard Sequences, Abbreviations.. 161 7.2.7 ex Commands 162 7.2.8 Searching and Replacing 163 7.2.9 vi Options 163 7.3 GNUEmacs 165 7.3.1 Starting and Quitting Emacs 166 7.3.2 Basic Commands 168 7.3.3 Moving the Cursor 168 7.3.4 Deleting 169 7.3.5 Marking 170 7.3.6 Searching 171 7.3.7 Replacing 171 7.3.8 Restoring 172 7.3.9 Loading and Saving Files 173 7.3.10 Switching Buffers 174 7.3.11 Window Commands 174 7.3.12 Command Sequences 175 7.3.13 Repeat Execution 175 7.3.14 Abbreviations 176 7.3.15 Online Help 177

7.3.16 Modes 178 j,contents ; 7.3.17 Application Packages 179! 7.3.18 Miscellaneous 181 7.3.19 The GNU Emacs as an X Application 183 Shell Programs 187 8.1 Linux Shells 188 8.2 bash and ksh 189 8.2.1 Variables 191 8.2.2 Input and Output 196 8.2.3 Branches 198 8.2.4 Loops 201 8.2.5 Functions 203 8.2.6 Starting Shell Programs 204 8.2.7 Signals 205 8.2.8 Shell Internal Functions 205 8.2.9 External Help Programs 208 8.3 tcsh Programs 210 8.3.1 tcsh Variables 211 8.3.2 Input and Output 214 8.3.3 Branches 215 8.3.4 Loops 216 8.3.5 Jump Command 217 8.3.6 Signals 217 Networked Systems 219 9.1 Network Topologies 220 9.2 Protocol Families 222 9.3 OSI 225 9.4 TCP/IP 227 9.5 System Addresses 229 9.5.1 Internet Addresses 230 9.5.2 Domain Addresses 232 9.6 Network Services 233 9.7 Network Configuration 234 9.7.1 Serial Login 235 XI

Contents 972 SLIP Connections 235 - -- :^--! 9.7.3 PPP Connections 236 TCP/IP Applications 241 10.1 Network Analysis 241 10.2 telnet 243 10.3 Berkeley r Utilities 244 10.3.1 rlogin Remote Login 245 10.3.2 rsh Remote Shell 246 10.3.3 rep Remote Copy 246 10.4 Terminal Emulators 247 10.5 File Transfer 250 10.5.1 ftp 251 10.5.2 Anonymous ftp 253 10.6 Electronic Mail 255 10.6.1 Mail Protocols 255 10.6.2 Linux MTAs 256 10.6.3 Linux MUAs 257 10.6.4 Graphic Linux MUAs 260 10.6.5 Mailbox Systems 262 10.7 News 262 10.7.1 Linux News Clients 264 10.7.2 Off-line News 265 10.8 Dialog Programs 266 10.8.1 talk and ytalk 266 10.8.2 Internet Relay Chat 267 10.9 Information Systems 268 10.9.1 FTP Search Help 269 10.9.2 Gopher 270 10.9.3 World Wide Web 271 XII X Window System 277 11.1 Window Systems 277 11.2 Architecture of XI1 280 11.3 Widgets 281 11.4 Working with XI1 283

11.4.1 Starting and Killing the X Server 283 11.4.2 X Server Addresses and Access Permissions.. 286 11.4.3 MIT X Clients 287 11.5 X Resources 289 11.6 X Fonts 293 11.7 X Colors 294 X Window Manager 299 12.1 Tab Window Manager twm and c twm 301 12.1.1 twm Decorations and Functions 301 12.1.2 twm Configuration 302 12.1.3 Variable Section 303 12.1.4 Binding Section 303 12.1.5 Menu Section 304 12.2 OpenLook WMs olwm and olvwm 304 12.2.1 olwm Decorations and Functions 305 12.2.2 olwm Configuration 307 12.3 F(?) Virtual Window Manager fvwm 308 12.3.1 fvwm Decorations and Functions 309 12.3.2 fvwm Configuration 311 12.3.3 Color Information 312 12.3.4 General Parameters 312 12.3.5 Path Names 313 12.3.6 Style Options 313 12.3.7 Function Definitions 314 12.3.8 Menu Definitions 315 12.3.9 Keyboard and Mouse Bindings 317 12.3.10 Module Options 318 Bibliography 319 Index 321 XIII