Professional Documents
Culture Documents
D76989GC10 - TOC - SG - Unix & Linux
D76989GC10 - TOC - SG - Unix & Linux
Student Guide
D76989GC10
Edition 1.0
June 2012
D77816
Authors
Uma Sannasi
Disclaimer
Pardeep Sharma
Editor s
Anwesha Ray
The information contained in this document is subject to change without notice. If you
find any problems in the document, please report them in writing to: Oracle University,
500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.
Raj Kumar
Vijayalakshmi Narasimhan
Gr aphic Designer
Rajiv Chandrabhanu
Publisher s
Jobi Varghese
Revathi Ramamoorthy
Trademark Notice
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names
may be trademarks of their respective owners.
Contents
Introduction
Overview 1-2
Course Goals 1-3
Course Agenda: Day 1 1-4
Course Agenda: Day 2 1-5
Course Agenda: Day 3 1-6
Introductions 1-7
Your Learning Center 1-8
Your Practice Environment 1-9
Introduction to UNIX
Workflow Orientation 2-2
Objectives 2-3
Lesson Agenda 2-4
Introducing UNIX 2-5
UNIX OS Structure 2-6
UNIX OS Structure: The Kernel 2-7
UNIX OS Structure: The File System 2-8
File System 2-9
Directory 2-10
Files 2-11
UNIX OS Structure: Processes 2-12
UNIX OS Structure: The Shell 2-13
Default Shells 2-14
Additional Shells 2-15
Quiz 2-16
User Accounts 2-17
Components of a User Account 2-18
Roles and Rights Profile 2-20
Users Home Directory 2-21
Quiz 2-22
UNIX Variants 2-23
Solaris 2-24
Linux 2-25
The Desktop Environment 2-26
iii
Quiz 3-28
Lesson Agenda 3-29
Copying Files and Directories 3-30
Copying Multiple Files 3-31
Copying Files: cp Command Options 3-32
Copying Files Recursively: -r Option 3-33
Moving and Renaming Files and Directories 3-35
Moving a File to Another Directory 3-36
Moving a Directory and Its Content 3-37
Renaming Files and Directories 3-38
Quiz 3-39
Lesson Agenda 3-40
Creating Files 3-41
Creating Directories 3-42
Removing Files 3-44
Removing Directories 3-46
Symbolic Links 3-48
Creating Symbolic Links 3-49
Removing Symbolic Links 3-51
Quiz 3-52
Lesson Agenda 3-54
Searching Files and Directories 3-55
Searching Files and Directories: find Command 3-56
Searching Within Files: grep Command 3-57
Quiz 3-58
Summary 3-59
Practice 3 Overview: Working with Files and Directories 3-60
4
Quiz 4-17
Search and Replace Commands 4-18
Copy and Paste Commands 4-19
Save and Quit Commands 4-20
Session Customization 4-21
Session Customization Commands 4-22
Quiz 4-23
Summary 4-25
Practice 4 Overview: Using the vi Editor 4-26
5
Agenda 7-4
A Process 7-5
Attributes of a Process 7-6
Process States 7-7
Process Subsystems 7-8
Agenda 7-9
Listing System Processes 7-10
Listing All Processes 7-12
Quiz 7-13
Terminating a Process 7-14
Terminating a Process: kill Command 7-15
Terminating a Process: pkill Command 7-17
Quiz 7-20
Summary 7-21
Practice 7 Overview: Performing Basic Process Control 7-22
8
Quiz 8-32
Checking the Exit Status 8-33
The test Command 8-34
Using the test Command 8-35
Conditional Expressions 8-36
The && Operator 8-37
The || Operator 8-38
The If Statement 8-39
The while Statement 8-40
The case Statement 8-41
Quiz 8-42
Summary 8-43
9