Sei sulla pagina 1di 15

UNIX Introduction

2/24/16

SarLakG

Importance of an Operating system


Applications
Operating
System
H/W

2/24/16

SarLakG

Operating System
Operating System
Interfaces software & hardware
Interacts with Applications
Interacts with Users, as a language interpreter
Scheduling of multiple programs
Memory management

2/24/16

SarLakG

Different OS
Windows
UNIX

2/24/16

SarLakG

WINDOWS
Windows
GUI Based
Multi-user OS
Proprietary product from Micro-soft
User-friendly
Windows Flavours

2/24/16

Win
Win
Win
Win
Win
Win
Win
Win

95
2000
NT
XP
Vista
2003
7
8

SarLakG

UNIX
What is UNIX?
A computer operating system
A software development environment
Built in late '60s, early '70s
Built by Ken Thompson and Dennis Ritchie
Originally written in assembler, later re-written in
C (allowing greater portability), a language invented by Ritchie
Command Line
Multi-user, Multi-tasking OS
Open source
2/24/16

SarLakG

UNIX Flavours

Sco-UNIX - Open Source


Linux - Red Hat /Fedora - RHEL 6 /Fedora 20 (Heisenbug)
AIX - IBM - AIX 7
HP-UNIX - HP - HP-UX 11i
Netware - Novell - Netware 6.5 as on 2009
Macintosh - Apple - OS X Mavericks (June 2013)
Solaris- Sun (Oracle Corp.) - Oracle Solaris 11(1st Cloud OS)
Ubuntu - Canonical Ltd.- Ubuntu 13/14
2/24/16

SarLakG

UNIX Systems v/s Windows Systems


Unix

Windows

Very stable. They hardly crash

Not as stable as Unix systems,


prone to crashes more often
Some of the UNIX flavours are free
Proprietary software and cost is
involved
No virus attacks or very rare
Frequent attacks from virus
Better Performance
Lesser performance as compared to
UNIX
Not much user-friendly
User-friendly
Requires formal training for learning Simple & self learnable
2/24/16

SarLakG

UNIX Architecture

2/24/16

SarLakG

Kernel
The kernel is the heart of the operating system
It interacts with hardware
It receives the request from the shell and executes the
statement and returns the output
Tasks
Memory management
Task scheduling
File management

2/24/16

SarLakG

10

Shell
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.
Tasks
Command interpretation
Programming interface

Types of Shells

2/24/16

C Shell
Bourne Shell
Korn Shell
Bash shell(bourne again shell)

SarLakG

11

Shell paths

Shell
Bourne
Bash
Korn
C

Full pathname
/bin/sh
/bin/bash
/bin/ksh
/bin/csh

$ echo $SHELL
2/24/16

SarLakG

12

Prefix

UNIX File System

- Regular file, such as an text file,


executable
b Block special file. Block input/output
device file such as a physical hard drive.(CD
ROMS, Flash drives)
c Character special file. Raw
input/output device file such as a physical
hard drive( virtual terminals)
d Directory file that contains a listing of
other files and directories.
2/24/16

SarLakG

13

Unix file system architecture:

Navigation :
example1)
/home/mthomas/class_stuff/foo
example2) /bin/ksh
example3) /etc/passwd
2/24/16

SarLakG

14

UNIX File System

Files are referenced by name


Absolute reference: beginning with "/
Relative reference: based on current directory
Shortcuts:
".." : parent directory
"."
: current directory
"~" : home directory

2/24/16

SarLakG

15

Potrebbero piacerti anche