• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
The Linux Knowledge Base and Tutorial
22 October 2007
Table of Contents
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1
Terms of Use and Disclamier of Warranty
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2
Copyright
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
3
Preface
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
Chapter 1 Introduction to Operating Systems
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
1.1 What Is an Operating System
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
6
1.2 Processes
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
12
1.2.1 Virtual Memory Basics
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
13
1.3 Files and Directories
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
19
1.4 Operating System Layers
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
20
1.5 Moving On
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
22
Chapter 2 Linux Basics
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
22
2.1 What Linux is All About
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
22
2.1.1 Guided Tour
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
29
2.1.2 What Linux is Made of
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
32
2.1.3 What Linux Does
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
34
2.1.4 What goes with Linux
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
35
2.2 Linux Documentation
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
41
2.3 Other Resources
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
41
2.3.1 Linux Certification
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
45
Chapter 3 Working with the System
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
45
3.1 Backing-up and Restoring Files
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
47
3.2 Interacting with the System
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
50
3.3 Logging In
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
53
3.4 Logging Out
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
53
3.5 When Things Go Wrong
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
58
3.6 Accessing Disks
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
60
Chapter 4 Shells and Utilities
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
60
4.1 The Shell
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
63
4.2 The Search Path
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
65
4.3 Directory Paths
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
67
4.4 Shell Variables
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
68
4.5 Permissions
.
.
.
.
.
.
.
.
.
.
.
.
.
73
4.6 Regular Expressions and Metacharacters
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
82
4.7 Quotes
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
84
4.8 Pipes and Redirection
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
88
4.9 Interpreting the Command
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
91
4.10 Different Kinds of Shells
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
92
4.11 Command Line Editing
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
94
4.12 Functions
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
95
4.13 Job Control
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
96
4.14 Aliases
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
98
4.15 A Few More Constructs
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
99
4.16 The C-Shell
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
103
4.17 Commonly Used Utilities
.
.
.
.
.
.
.
.
.
.
.
.
108
4.17.1 Examples of Commonly Used Utilities
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
108
Directory listings:ls
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
109
Removing files:rm
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
110
Copying files:cp
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
111
Renaming and moving files:mv
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
112
Linking files:ln
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
113
Display the contents of files:cat
.
.
.
.
.
.
.
.
.
.
.
.
.
.
114
Display the contents of files:more
.
.
.
.
.
.
.
.
.
.
.
.
.
.
114
Display the contents of files:less
This document contains 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
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...