UNIX and Shell Scripting - Module 2
UNIX and Shell Scripting - Module 2
Copyright © 2009 Accenture All Rights Reserved. Accenture, its logo, and Accenture High Performance Delivered are trademarks of Accenture.
Module 2 Objectives
• Upon completing this module, the learner will be able to:
– Describe Onion Architecture of UNIX Operating System
– Explain the Interaction of User App with Kernel
– Describe the Hierarchical Structure of UNIX File System (Virtual File
System)
– Describe the Physical file System
– Define a Program
– Define a Process
– Summarize the difference between Program and Process
– Describe working of Shell
– Describe different flavors of UNIX
– List the services offered by UNIX Operating System
• Discussion time:
– 5 minutes
• Instructions:
– Ask students about their
experience/opinions.
– Write them on a flip-chart.
User Process
Shell
Shell
Shell
Shell
User Process
Everything below the It provides file
system call interface system, CPU
and above the physical scheduling, memory
hardware is the management, and
KERNEL. other OS functions
using system calls.
Copyright © 2009 Accenture All Rights Reserved. 8
UNIX Onion Architecture (2 of 2)
User Process
Shell
Shell
Shell
The system call Shell
User Process
System call provides a
interface layer programming interface
converts a process that allows user
running in user mode programs to access
to a protected kernel kernel functions.
mode process.
Copyright © 2009 Accenture All Rights Reserved. 9
User Application and Kernel Interaction
Utilities are User Users enter UNIX commands or
set of UNIX run different software applications.
commands
and Programs.
Applications
Applications are different
softwares run on UNIX.
Utility Shell
Shell is a command
interpreter of UNIX.
Kernel
Kernel controls the underlying
The Operating System hardware. The kernel provides
low-level device, memory, and
processor management functions.
Hardware
Copyright © 2009 Accenture All Rights Reserved. 10
Knowledge Check (1 of 3)
• Which of the following are true about the operating system?
1. It manages memory.
2. It manages processor.
3. It manages Input/Output devices.
1. Input/Output Devices
2. Shell
3. File System
4. Kernel
• Discussion time:
– 5 minutes
• Instructions:
– Ask students about their
experience/opinions.
– Write them on a flip-chart.
• A process is:
– An operation which takes the instructions given and does the
manipulations or anything that is instructed in the code itself
– The single executable module that runs concurrently with other
executable modules
– A program in execution
1. When you log into your UNIX account, you are placed in your
“pwd” directory.
2. The types of file systems available vary from OS to OS.
1. cd
2. cd ..
3. cd..
4. None
1. ps
2. ls
3. cd
4. ls –l
• Discussion time:
– 5 minutes
• Instructions:
– Ask students about their
experience/opinions.
– Write them on a flip-chart.
• Variants
– Caldera Linux
– Debian Linux
– Kondara Linux
– Red Hat Linux
– Mandrake Linux
– SuSE Linux
1. Modularity
2. File Structure
3. Multitasking
4. Input-Output Redirections and Pipes