What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An...

23
What is Unix Prepared by Dr. Bahjat Qazzaz

Transcript of What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An...

Page 1: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

What is Unix

Prepared byDr. Bahjat Qazzaz

Page 2: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

What is Unix

• UNIX is a computer operating system. • An operating system is the program that – controls all the other parts of a computer system,

both the hardware and the software. – It allocates the computer's resources and

schedules tasks. – It allows you to make use of the facilities provided

by the system. • Every computer requires an operating system.

Page 3: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

What is Unix

• UNIX is a multi-user, multi-tasking operating system. – Multiple users may have multiple tasks running

simultaneously. – This is (WAS) very different than PC operating

systems.

Page 4: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

What is Unix

• UNIX is a machine independent operating system. – Not specific to just one type of computer

hardware. – Designed from the beginning to be independent of

the computer hardware.

Page 5: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

What is Unix

• UNIX is a software development environment.

Page 6: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

History of UNIX

• 1969: Developed at AT&T Bell Labs, New Jersey. Created in an environment when most computer jobs were fed into a batch system.– Developed by researchers who needed a set of

computing tools to help them with their projects and their collaborators.

– Allowed a group of people working together on a project to share selected data and programs.

Page 7: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

History of UNIX

• 1975: AT&T makes UNIX widely available – – offered to educational institutions at minimal cost. – Becomes popular with university computer

science programs. • AT&T distributes standard versions in source

form: Version 6 (1975), Version 7 (1978), System III (1981).

Page 8: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

History of UNIX

• 1984 to date: University of California, Berkeley adds major enhancements, creates Berkeley Standard Distribution (BSD)

• 1984 to date: Many Berkeley features incorporated into new AT&T version: System V

• UNIX has become the operating system of choice for engineering and scientific workstations.

Page 9: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

History of UNIX

• Two variations maintain popularity today, AT&T System V based and the Berkeley Standard Distribution.

• Current versions (1/95)are System V release 4.2 .and 4.4 BSD

Page 10: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX Philosophy

• Make each program do one thing well. Reusable software tools: 1 tool = 1 function

• Expect the output of every program to become the input of another, yet unknown, program to combine simple tools to perform complex tasks

• Prototyping: get something small working as soon as possible and modify it incrementally until it is finished

• Use terse (simple, clipped) commands and messages: reduces typing and screen output

Page 11: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

Why UNIX?

• Hardware independence – operating system code is written in C language

rather than a specific assembly language – operating system software can be easily moved

from one hardware system to another • UNIX applications can be easily moved to

other UNIX machines. Porting is usually as simple as transfer of the source and a recompile

Page 12: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

Why UNIX?

• Productive environment for software development – rich set of tools – versatile (flexible, adaptable, multipurpose)

command language • UNIX is available at virtually all HPC centers,

allowing researchers relative ease in utilizing the facilities at each center.

• Distributed processing and multi-tasking

Page 13: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX Components Kernel

• Kernel – The core of the UNIX system. Loaded at system

start up (boot). – Manages the entire resources of the system. – Example functions performed by the kernel are:

Page 14: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX Components Kernel functions

• managing the machine's memory and allocating it to each process.

• scheduling the work done by the CPU so that the work of each user is carried out as efficiently as is possible.

• accomplishing the transfer of data from one part of the machine to another

• interpreting and executing instructions from the shell

• enforcing file access permissions

Page 15: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX ComponentsKernel

• You do not need to know anything about the kernel in order to use a UNIX system. These details are provided for your information only.

Page 16: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX ComponentsShell

• Shell – (Generally speaking, and before..) Whenever you

login to a Unix system you are placed in a shell program. The shell's prompt is usually visible at the cursor's position on your screen. To get your work done, you enter commands at this prompt.

Page 17: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX ComponentsShell

– The shell is a command interpreter; it takes each command and passes it to the operating system kernel to be acted upon. It then displays the results of this operation on your screen.

– Several shells are usually available on any UNIX system, each with its own strengths and weaknesses.

Page 18: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX ComponentsShell

– Different users may use different shells. Initially, your system administrator will supply a default shell, which can be overridden or changed. The most commonly available shells are: • Bourne shell (sh) • C shell (csh) • Korn shell (ksh) • TC Shell (tcsh) • Bourne Again Shell (bash)

Page 19: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX ComponentsShell

– Each shell also includes its own programming language. Command files, called "shell scripts" are used to accomplish a series of tasks.

Page 20: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

UNIX ComponentsUtilities

• Utilities – UNIX provides several hundred utility programs, often referred

to as commands. – Accomplish universal functions

• editing • file maintenance • printing • sorting • programming support • online info • etc.

– Modular: single functions can be grouped to perform more complex tasks

Page 21: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

System V vs. BSD

• AT&T distributes System V for their computers. System V is also the basis for several commercial implementations including: – Hewlett-Packard HP-UX – Apple AUX – Amdahl UTS – Cray UNICOS

• IBM AIX.

Page 22: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

System V vs. BSD

• BSD, from the University of California Berkeley, has undergone extensive modification and enhancement in the university environment.

• BSD is available directly from UCB and in a number of commercial versions including: Sun, Apollo, DEC Ultrix, Gould UTX/32.

Page 23: What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.

System V vs. BSD

• System V and BSD contain a large set of commands in common. Some of these commands, however, support different options and have different default behaviors and output formats. ex: ls, stty, mail, grep

• Each version also has its own unique utilities. Some very common tasks, such as browsing a file, are performed by totally different utilities: System V uses "pg" whereas BSD uses "more".