CH6
CH6
Unix
What is Unix
• The UNIX operating system is a set of programs that act as a link between
the computer and the user.
• The computer programs that allocate the system resources and coordinate
all the details of the computer's internals is called as kernel.
• Users communicate with the kernel through a program known as the shell.
The shell is a command line interpreter; it translates commands entered by
the user and converts them into a language that is understood by the kernel.
• Unix was originally developed in 1969 by a group of AT&T employees at Bell
Labs, including Ken Thompson, Dennis Ritchie, Douglas McIlroy, and Joe
Ossanna.
• There are various Unix variants available in the market. Solaris Unix, AIX, HP
Unix and BSD are few examples. Linux is also a flavor of Unix which is freely
available.
• Several people can use a UNIX computer at the same time; hence UNIX is
called a multiuser system.
• A user can also run multiple programs at the same time; hence UNIX is
called multitasking.
Unix Architecture
6
The first processes
• The kernel initializes its internal data structures:
it constructs linked list of free inodes, regions, page table
• The kernel creates u area and initializes slot 0 of process
table
• Process 0 is created
• Process 0 forks, invoking the fork algorithm directly
from the Kernel. Process 1 is created.
• In kernel mode, Process 1 creates user-level context
(regions) and copy code (/etc/init) to the new region.
• Process 1 calls exec (executes init).
7
init process
8
Init fork/exec
a getty progrma
to manage the line
File Ext2, Ext3, Ext4, Jfs, ReiserFS, Xfs, jfs, gpfs, hfs, hfs+, ufs, xfs, zfs format
system Btrfs, FAT, FAT32, NTFS
suppor
t
Kernal
Linux kernels are preemptive. Unix kernels are Non preemptive.
More Portable to diff architecture Less Portable to diff architecture
Portabilty
Linux has had about 60-100 viruses A rough estimate of UNIX viruses is
Security listed till date. None of them between 85 -120 viruses reported till
actively spreading nowadays. date.
Linux comes with open source UNIX operating systems comes with
netfilter/iptables based firewall tool its own firewall product
Firewall