UNIX 2 OPERATING SYSTEM

Similar documents
UNIX Essentials Featuring Solaris 10 Op System

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

System Programming. Introduction to Unix

Shells. A shell is a command line interpreter that is the interface between the user and the OS. The shell:

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

UNIX Kernel. UNIX History

Introduction to Linux

Perl and R Scripting for Biologists

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms:

Appendix A GLOSSARY. SYS-ED/ Computer Education Techniques, Inc.

Practical Computing-II. Programming in the Linux Environment. 0. An Introduction. B.W.Gore. March 20, 2015

MFS CONCEPTS 1 & COMPONENTS SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

Introduction to Linux. Fundamentals of Computer Science

Introduction to Cygwin Operating Environment

(MCQZ-CS604 Operating Systems)

Linux & Shell Programming 2014

CS370 Operating Systems

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

5/20/2007. Touring Essential Programs

CPS221 Lecture: Operating System Functions

Lecture-4. Introduction to Unix: More Commands, Boot-up Actions and X Window

Chap2: Operating-System Structures

System Programming. Unix Shells

What is UNIX? A Little Bit about UNIX and User Interfaces. Adapted from Practical Unix and Programming Hunter College

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)

Introduction to Linux

Unix System Architecture, File System, and Shell Commands

Linux System Administration

Computer Systems and Architecture

Introduction to Linux

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Unix Shells and Other Basic Concepts

Traditional Access Permissions

LOG ON TO LINUX AND LOG OFF

CISC 220 fall 2011, set 1: Linux basics

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

5/8/2012. Creating and Changing Directories Chapter 7

UNIX Quick Reference

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

CSCI 2132 Software Development. Lecture 3: Unix Shells and Other Basic Concepts

Introduction to Linux

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r

Processes and Shells

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples

100 SHELL PROGRAMS IN UNIX

Introduction to UNIX Shell Exercises

Unix Introduction to UNIX

IMS-DL/I 2 STRUCTURE. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview

Chapter-3. Introduction to Unix: Fundamental Commands

Appendix B WORKSHOP. SYS-ED/ Computer Education Techniques, Inc.

Unix Processes. What is a Process?

IBM AIX Basic Operations V5.

Operating Systems, Unix Files and Commands SEEM

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Assignment clarifications

Crash Course in Unix. For more info check out the Unix man pages -orhttp:// -or- Unix in a Nutshell (an O Reilly book).

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02

Overview of Unix / Linux operating systems

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview

M2PGER FORTRAN programming. General introduction. Virginie DURAND and Jean VIRIEUX 10/13/2013 M2PGER - ALGORITHME SCIENTIFIQUE

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - VII CPU Scheduling - II. Louisiana State University

Roadmap. Multilevel Queue Scheduling. Multilevel Queue. Example of Multilevel Feedback Queue. Multilevel Feedback Queue. Tevfik Ko!

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

Unix Handouts. Shantanu N Kulkarni

Shell Programming Systems Skills in C and Unix

CST Algonquin College 2

Computer Systems and Architecture

MARUTHI SCHOOL OF BANKING (MSB)

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

CS246 Spring14 Programming Paradigm Notes on Linux

The Unix Shell & Shell Scripts

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Introduction to Linux

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi

Operating Systems CS3502 Spring 2018

Getting Started. Running Utilities. Shells. Special Characters. Special Characters. Chapter 2 Unix Utilities for non-programmers

Common UNIX Utilities Alphabetical List

Introduction to the UNIX command line

Introduction to Linux Organizing Files

Linux Shell Script. J. K. Mandal

Chapter 9. Shell and Kernel

Multiprogramming. Evolution of OS. Today. Comp 104: Operating Systems Concepts 28/01/2013. Processes Management Scheduling & Resource Allocation

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell

UNIX System Administration

CHAPTER 2 THE UNIX SHELLS

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

CPS221 Lecture: Operating System Functions

5/8/2012. Specifying Instructions to the Shell Chapter 8

Unix/Linux: History and Philosophy

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

EECS2301. Lab 1 Winter 2016

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world.

5/8/2012. Controlling User Processes Chapter 10

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

Linux for Beginners. Windows users should download putty or bitvise:

The Online Unix Manual

Transcription:

UNIX 2 OPERATING SYSTEM hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN.

Objectives You will learn: Process management in Solaris. omponents of the operating system. Flow of control within the operating system. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page i

1 Features and Facilities The major features/facilities of the UNIX operating system include the following: multi-user multi-tasking Hierarchical directory structure portability Program development tools More than one user can use the machine at a time supported remote via terminals. More than one program can be run at a time. In order to support the organization and maintenance of files. Only the kernel is written in Assembler Language. This means that the operating system can be converted easily to run on different hardware. A wide range of support tools: debuggers and compilers. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 1

2 Operating System Structure This UNIX operating system is structured in terms of three major components. kernel Schedules programs. Manages data/file access and storage. Enforces security mechanisms. Performs all hardware access. shell Presents each user with a prompt. Interprets command types by a user. Executes user commands. Supports a custom environment for each user. utilities File management: rm, cat, ls, rmdir, mkdir User management: passwd, chmod, chgrp Process management: kill, ps Printing: lp, troff, pr Program development tools SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 2

3 Multi-User Operating Systems A multi-user operating system allows more than one user to share the same computer system at the same time. This is achieved by time-slicing the computer processor at regular intervals between the various users. The switching between user programs is done in part of the kernel. Switching from one program to another requires: a regular timed interrupt event. saving the interrupted programs state and data. restoring the next programs state and data. running that program till the next timed interrupt occurs The timed event typically is about 1 to 10 milliseconds apart. It is generated by a real-time clock. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 3

4 Handling Programs Each computer has a maximum amount of memory installed. Some of this memory is required by the operating system; the remainder is available to user programs. The more memory that can be provided the better. When there is insufficient main memory to run a user s program, some of the other users program residing in main memory must be written out to the disk in order to create free memory space. This process is called swapping. When the system becomes overloaded and there are more users than the system can handle, the operating system spends most of its time shuttling users programs between main memory and the disk unit, and users response time degrades. This is known as disk thrashing and can be adjusted by installing more main memory. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 4

5 Processes Each program running on a UNIX system is called a process. When a user types a command, UNIX constructs a Process ontrol Block for that process. Each process has a PB that holds its priority, the process state, register information and additional details. UNIX provides three utilities for managing processes. ps kill & List processes. Kill a process. Run a process in the background. If the system administrator discovers that a particular user is performing an operation that has been consuming too much computing time or dominating a system resource such as a printer, the ps command can be used for identifying the offending users process followed by the kill command in order to terminate that process. Each program is assigned a priority level. Higher priority tasks such as reading and writing to the disk are performed more regularly. User programs can have their priority adjusted dynamically, upwards or downwards, depending upon their activity and available system resources. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 5

Multi-tasking systems support foreground and background tasks. 6 Foreground and Background Tasks Foreground task Background task Has the user interacting directly with an application or operating system using the keyboard and screen. A background task runs in the background and does not have access to the screen or keyboard. Background tasks are usually used for printing. Running programs in the background lets the user carry on with more important tasks such as printing and formatting documents. Background jobs can be deleted using the kill command. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 6

7 System Start Up When the UNIX system starts up, it also starts a system process, known as getty, which monitors the state of each terminal input line. When getty detects a user has turned their terminal on, it presents the logon prompt and once the password is validated, the UNIX system associates the shell program, /bin/sh, with that terminal. Each user is presented with a shell. This is a program which displays the users prompt, handles user input and displays output on the terminal. The shell program provides a mechanism for customizing each users setup requirements, and storing this information for re-use (in the file.profile). The user interacts with /bin/sh, which interprets each command typed. Internal commands are handled within the shell - set, unset. External commands are invoked as programs - ls, grep, sort, ps. There are a number of different command line shells/user interfaces. Bourne - sh Korn - krn shell - csh Bash, which is an improved Bourne shell with history and aliases. The shell is often referred to as a command line shell, since it presents a single prompt for the user. The user types a command, the shell invokes that command, then presents the prompt again when the command has finished. This is done on a line by line basis. Recent enhancements have transformed the command line interface into a graphical interface (e.g. X, MOTIF, OPENVIEW) where programs are represented as objects or icons on a screen. Icons are selected and executed by utilizing a mouse. SYS-ED \OMPUTER EDUATION TEHNIQUES, IN. (UNIX Ess - Solaris 10-8.4) h 2: Page 7