CST334 Unix & X Window System

Slides:



Advertisements
Similar presentations
By- Anjali Bhardwaj. An operating system (OS) is a collection of software that manages computer hardware resources and provides common services for computer.
Advertisements

Chapter One The Essence of UNIX.
History of UNIX Fergus Toolan Intelligent Information Retrieval Group University College Dublin.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
Computer Forensics Principles and Practices by Volonino, Anzaldua, and Godwin Chapter 6: Operating Systems and Data Transmission Basics for Digital Investigations.
Guide To UNIX Using Linux Third Edition
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
Brief History of C and Unix Systems Programming Concepts.
Linux Operating system
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
Linux Basics. What is an Operating System (OS)? An Operating System (OS) is an interface between hardware and user which is responsible for the management.
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.
Operating System.
Linux Basics CS 302. Outline  What is Unix?  What is Linux?  Virtual Machine.
Unix Background / History CSE 4251, Sp 2014, Bolz 422 Dr. Bob Mathis,
Operating Systems Operating System
Introduction A computer system consists of hardware system programs application programs.
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
Operating systems CHAPTER 7.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Introduction to Unix/Linux Chapter One The Essence of UNIX.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Module 1 Introduction to UNIX/Linux
BAI517 Chris Redford. Section Outline Objectives GNU The Linux 2.6 Kernel The Heritage of Linux What’s so good about Linux? Features of Linux.
Chapter 1: Welcome to Linux An intro to UNIX-related operating systems.
Unix Background. Introducing Unix Brief Unix History u In 1969, Ken Thompson at AT&T Bell Labs began developing Unix. –First done in assembly language.
Operating Systems Sara Mullan Johns Hopkins University Fall 2010
1 © 2001 John Urrutia. All rights reserved. Welcome to CIS 52 WELCOME WELCOME W E L C O M E.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
History of UNIX a short version CSCI 333 August 31, 2011.
Computers & Operating Systems
Just Enough Unix, Chapter 1
Introduction to Unix Motherhood…. 2 Who I am… Bill Richards USAF Retired (1994) GS-13 Defense Information Systems Agency at Tinker AFB (1995) Network.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
The UNIX Time-sharing system
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
UNIX History UNIX began as a research project. UNIX System V developed at Bell Laboratories. BSD (Berkley Software Distribution) UNIX XENIX UNIX Sun Operating.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 1.
Agenda UNX122_022_w1_p3 Overview of UNIX
Operating Systems Overview Basic Computer Concepts Operating System What does an operating system do  A computer’s software acts similarly with.
Computer Operating Systems And Software applications.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
OPS224 Operating Systems - Unix Instructor: MURRAY SAUL.
Computer Center | Network Group IISER Bhopal Introduction to Basic Component of Computer System Vinay Bajpai iiserb.ac.in Computer Center Indian.
Introduction to unix. The UNIX Operating System An operating system "OS” is a set of programs that controls a computer. It controls both the hardware.
UDel CISC361 Study Operating System principles - processes, threads - scheduling - mutual exclusion - synchronization - deadlocks - memory management -
System SOFTWARE.
Overview of Linux Fall 2016 Dr. Donghyun Kim
A LECTURE NOTE.
Introduction to UNIX.
THE OPERATION SYSTEM The need for an operating system
Introduction to Operating System (OS)
Chapter 2: The Linux System Part 1
Lecture 1-Part 2: Operating-System Structures
Copyright ©2008 by Pearson Education, Inc
Linux Professor Sabol.
Section 1: Linux Basics and SLES9 Installation
Welcome to Linux Chap#1.
Presentation transcript:

CST334 Unix & X Window System Overview of UNIX Purpose of an Operating System (OS) History Unix OS Characteristics of Unix OS History of Linux OS The Drive for compatability (POSIX standards) 2

Attention For additional reading, consult Appendix B and Chapter 1 of Forouzan and Gilberg, Unix and Shell Programming your textbook 6

Definition of an Operating System (OS) An operating system is a control program for a computer that performs the following operations: allocates computer resources schedules routine tasks provides a platform to run application software for users to accomplish tasks provides an interface between the user & the computer 7

History of Unix OS Prior to Unix, many operating systems ran collections or “batches” of operations one at a time. This single-user “batch-processing” approach did not take advantage of the potential processing power and speed of computers Enter data in files to be later processed Process Collection or “Batch” of files Receive information of processed data Note: batch processing lacks the advantage of immediate feedback as opposed to online processing 8

History of Unix OS The Unix OS was developed (based on Multics & CTSS operating systems) by Ken Thompson at the AT&T Bell Laboratories in 1969. He wanted to create an multi-user operating system to run “space travel” game. Ken’s philosophy was to create an operating system with commands or “utilities” that would do one thing well (i.e. UNIX). Pipes could be used combine commands... 9

History of Unix OS The first versions of UNIX were written in “machine-dependent” program (such as PDP-7). Ken Thompson approach Dennis Ritchie developer of C program), and in 1973 they compiled UNIX in C programming language to make operating system “portable” to other computers systems. 10

History of Unix Ken Thompson (recently retired from Bell Labs) is on left, and Dennis Ritchie is in the middle. What`s his name is on the right… 11

UNIX Features The Unix OS is a multi-user OS allowing more that more person to directly communicate with the computer. Although the OS can only work on one task at a time, a small piece of time (time slice) is dedicated to each task or user - this is referred to as “time-sharing”. Time sharing gives the illusion that the CPU is giving all the users its full attention 12

Illustration of Time-Sharing User 8 User 1 User 2 User 7 User 6 User 3 TIME User 4 User 5 13

Development of Unix OS Unix became a popular OS among institutions such as colleges & universities through a 4-year “try before you buy” deal. Efficient and inexpensive way of networking promotes Internet use and file-sharing Open system allows for source code to be shared among many programmers - allows for better coordination among programmers 14

Development of Unix OS Students at University of California (in Berkley) further developed the UNIX operating system and introduced the BDS version of Unix Unix Bell Labs UNIX System V (5) Proprietary Berkley Software Distribution (BSD) Free 15

Development of Unix OS There were versions of UNIX for the Personal Computer (PC), such as XENIX, etc., but they didn’t catch on in popularity until Linux was developed in the early 90’s. 16

History of Linux Linux operating system developed by programming student Linus Torvalds Linus wanted to develop Unix-like OS just to experiment with new 386 computer at the time... 17

Why Has Linux Become so Popular? Linus decided to make Linux OS source-code for Linux Kernal open to all: Unlike traditional Operating Systems, anyone can modify and distribute Linux OS (as long as they distribute source code of Linux Kernel) “Competition among Hackers” allow code to be improved and distributed often Many users can spot bugs in the operating system or application if source code is “open” 18

Why Has Linux Become so Popular? Other Factors: PC’s have increased processing power and a there has been a noted shift from mainframes and minicomputers to PCs. Since Linux is a “Unix Work-alike”, this OS has a reputation to be a very stable platform for networking (creating at-home servers) and running / maintaining applications. Agencies such as Free Software Foundation created GNU project to provide free software. 19

Concerns Some people claim that “there are as many version of Linux as there are users…” POSIX (Portable Operating System Interface for Computer Environments) is a government standard to ensure consistency among different UNIX and Linux versions. Many versions of Linux are approaching POSIX standard. 20

Concerns Freedom of allowing Linux users to create “servers” connected up to Internet can lead to attacks from experienced hackers. Linux commands may be considered “user-unfriendly” although GUIs are now used. Prior reputation for difficult install process including the loss of data on other hard disk partitions. 21

Attention The following material is taken from chapter one of your textbook , Unix and Shell Programming

Advantages of Unix Portable Multi user Multitasking Networking – log into the any site Organized file system Device independence – i/o vs files Utilities – > 100 utilities, productivity Services – administrative tools built in

Figure 1-1 Computer System

A computer system Hardware Software Input , output, CPU, auxiliary/secondary storage Software Systems software Primary purpose to support computer Applications software Programs written to solve users problems

Components of Computer Hardware Figure 1-2 Components of Computer Hardware

Operating system A special category of systems software that manages all operating facets of the computer Heart and character of a computer: DOS, Windows , Mac, UNIX Performs resource allocation, scheduling, data management (file I/O), system security

Unix environments Personal environment Timesharing environment Linux, Apple’s System X (Unix kernel) Timesharing environment Many users connected to one computer Client/server environment Computing split between a central computer (server) and users’ computers (clients)

The Time-Sharing Environment Figure 1-4 The Time-Sharing Environment

The Client/Server Environment Figure 1-5 The Client/Server Environment

Figure 1-6 Components of UNIX

Components of the Unix OS, cont The kernel: contains most basic parts including process control and resource management The shell: receives & interprets the commands entered by the user Interpreter and script programming language Three standard shells: Bourne (sh/bash) , C (csh/tcsh), Korn (used in text)

Components of the Unix OS, cont Utilities: hundreds ! Primarily Text editors, search programs, sort programs ls, cp, mv, vi, emacs, grep, chmod, sort, cal, date, plus countless options the real heart of the class Applications: written by systems administrators, professional programmers, or users Extended capability , sometimes made into future utilities

Accessing Unix User ID Passwords Interactive session

Figure 1-8 Interactive Session

Common commands date date -u cal cal 1 2005 cal 2005 who passwd man

Command Source and Destination Figure 1-9 Command Source and Destination

General Command Format Figure 1-10 General Command Format

Figure 1-11 The date Command

Figure 1-12 The calendar Command

Figure 1-13 The who Command

Figure 1-14 The passwd Command

Passwords a) must be >=6 characters long, b) must contain 2 out of 3 of upper-case letters, lower-case letters, non-letters (digits, punct) c) may not be a dictionary word or too similar to your name

Exit—to Log Out Type exit if it says "there are stopped jobs" type exit again

Figure 1-15 The echo Command

Figure 1-16 The man Command

Figure 1-17 The lpr Command

Figure 1-18 The tty Command

Figure 1-19 The clear Command

Figure 1-20 The stty Command

Figure 1-21 The script Command

Figure 1-22 The uname Command