Chapter 1 What is Unix? By C. Shing ITEC Dept Radford University.

Slides:



Advertisements
Similar presentations
COMPUTERS: TOOLS FOR AN INFORMATION AGE Chapter 3 Operating Systems.
Advertisements

1.1 The Unix System Unix is a Multi-user and Multi-tasking operating system History  MULTICS (MULTIplexed Information and Computing Service) (1965) 
Phones OFF Please Operating System Introduction Parminder Singh Kang Home:
Operating Systems - Introduction S H Srinivasan
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.
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.
UNIX/Linux System Programming Jordan University of Science and Technology History.
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.
Linux Basics CS 302. Outline  What is Unix?  What is Linux?  Virtual Machine.
Operating Systems Bryce Boe 2012/08/07 CS32, Summer 2012 B.
CST334 Unix & X Window System
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Network Operating Systems Week 9.
Principles of Operating System 2014
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
LINUX/UNIX WORKSTATIONS Franklin Montenegro Carlos Sierra.
Overview of Linux Dr. Michael L. Collard 1.
CS240 Computer Science II Introduction to Unix Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
유닉스, 왜 공부하나 ? 자동화 –GUI vs commands 서버 개발 능력, 관리 능력 – 데스크탑에서의 개발과 관리와의 차이 ?
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
CENT 305 Information Systems Security Linux Introduction.
CE Operating Systems Lecture 6 Overview of Unix/Linux operating systems.
Chapter 1: Welcome to Linux An intro to UNIX-related operating systems.
Chapter 1 What is UNIX? Graham Glass and King Ables,
1 © 2001 John Urrutia. All rights reserved. Welcome to CIS 52 WELCOME WELCOME W E L C O M E.
LIS508 background of GNU/Linux
Operating System Part II: Introduction to the Unix Operating System (The Evolution of Unix)
CE Operating Systems Lecture 5 Overview of Unix/Linux operating systems.
History of UNIX a short version CSCI 333 August 31, 2011.
LIS508 lecture 6: looking at linux Thomas Krichel
Computers & Operating Systems
Just Enough Unix, Chapter 1
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux June 2011 Kaplan University 1.
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux September 2012 Kaplan University 1.
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
Linux Overview COMS W4118 Spring Slides based on Phil Hutto, Silberschatz 2 History Linux is a modern, free operating system based on UNIX standards.
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
CSE 5343/7343UNIX Case Study1 CSE 5343/7343 Fall 2006 Case Studies UNIX History/Processes.
The UNIX Time-sharing system
Introduction 1 Chapter 1. Introduction History and Proliferation Mandate for Change What’s Good and Wrong Scope of this course.
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.
Linux History C151 Multi-User Operating Systems. Open Source Programming Open source programming: 1983, Richard Stallman started the GNU Project (GNU.
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.
Background & History of UNIX & Linux Fort Collins, CO Copyright © XTR Systems, LLC The Background and Short History of UNIX & Linux Instructor: Joseph.
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.
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
Chapter 1: Introduction to Linux. 2 Introduction Computer Components: –Hardware –Software Types of hardware and software Important components of an OS.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 8 Linux.
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.
Computer Center | Network Group IISER Bhopal Introduction to Basic Component of Computer System Vinay Bajpai iiserb.ac.in Computer Center Indian.
UNIX Operating System. A Brief Review of Computer System 1. The Hardware CPU, RAM, ROM, DISK, CD-ROM, Monitor, Graphics Card, Keyboard, Mouse, Printer,
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 -
Overview of Linux Fall 2016 Dr. Donghyun Kim
IT320 Operating System Concepts
A History of Linux Damian Gordon.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to CIS 52 WELCOME WELCOME WELCOME W E L C O M E.
Chapter 2: The Linux System Part 1
A short Linux History of UNIX/Linux
Linux Professor Sabol.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Presentation transcript:

Chapter 1 What is Unix? By C. Shing ITEC Dept Radford University

Objectives Understand Unix history Describe Unix components Understand Unix features Introduce vi editor

Unix Pre- History 1960 CTSS (MIT Time-sharing system): main frame supports 30 terminals 1965: Multics (Bell Lab, MIT, GE) –design 24/7 OS up to 300 terminals, completed in 1975

Unix Brief History 1969 (Bell Lab out of Multics project) Ken Thompson design Unics for playing computer game –use DEC PDP-7 assembly language –machine dependent 1973 Dennis Ritchie+ Thompson, Bell Lab –more than 90% code in 1970 Ritchie’s C language –machine independent 1977 BSD (UC Bekeley Software Distribution – Bill Joy): Sun microsystem based 1979 Version 7, Release 4 (SVR4): standard version,, support PC –Used for 2 Unix branches: AT&T System V & UC Berkeley BSD

Unix Brief History – AT&T System V 1980 (AT&T System III ): Implement different memory management algorithms 1983 (System V copyright, restrict source code access) : virtual memory, Bourne shell, IPC: message, shared memory, semaphores 1984 GNU (Not Unix): (Free Software Foundation-Richard Mathew Stallman): –Free Unix concept: free software –GNU GPL (General Public License-”copyleft”- open source): freedom to run, copy, distribute, study, change, improve software –More people use, debug, more secure –Free Unix version Software: GNU C, EMACS, GNU C Library, bash shell (1990) 1984 X Window (GUI by MIT) 1986 Minix- mini Unix for PC by Tanenbaum (Harvard) 1988 XFree86: Free X Window on PC

Unix Brief History – AT&T System V (Cont.) Other Unix System V Based Systems: –V.2 IBM AIX OSF/1 –V.3 –V.4, 1986: Korn shell –V.4.1, 1990 SUN OS (Solaris), HP/UX

Unix Brief History – Berkeley BSD (Cont.) BSD (Berkeley Standard Distribution): –Supports socket networking, C shell, vi –4.2 Apollo –4.3, 1990 SUN OS (Solaris), HP/UX –4.4, 1992: NSF Stop funding BSD development FreeBSD

Linux Brief History 1991 Linux by Linus Torvalds (Finland): reimplementation of minix (small Kernel) for intel 386PC architecture –using Bash shell & GNU C –Unix Like, Multitasking –Free download version 0.02 from FTP catalog Linux –Develop Linux based on POSIX on POSIX.1(Portable Operating System Interface): IEEE standardize API: system calls (1988) and commands (1992)

Linux Brief History (Cont.) 1994 Linux 1.0 use X window: penguin bite little Torvalds –Kernel Version: main.secondary.release-update (e.g e15) main& secondary version # –Even #: stable version (e.g. 2.6.xx) –Odd #: under development (e.g. 2.5.xx) –Distribution (Kernel+Software+Tools+Documentation) #: rpm installation: CentOS 7.0 (Fedora Linux), RHEL(Red Hat), SuSE Dbkg installation: Ubuntu, Debian, B2D –GUI: X server KDE GNOME –Small kernel – good for embedded system: for PDA, Cell Phone, digital camera, home appliance –Use less power, require less powerful hardware to run, stable- good for server 2002 POSIX.2: Standard UNIX Specification (or SUS)

Open Source License GPL:GNU, free BSD: Berkeley Software Distribution –similar to GPL Apache License: any modification must named Apache

Linux Disadvantage Non-Profit Organization Developer Command Based Control Lack of Graphics Support Lack of gaming Application Lack of Education

Linux Small Home Server Minimum Requirement CPU: Pentium III-500 RAM: 512 MB Disk: 20 GB VGA RAM (for Console): use X Window - 32 MB NIC: 10/100 Mbps VGA Card: Nvidia, ATI

Unix Components Kernel: in RAM –System calls –Interrupts File systems: directory structures (tree) –Directory contains filenames and location of files –Every device is a file Process management: share –CPU: time slice 1/10 sec, round-robin –RAM: fixed size page –Disk: fixed size block(1024 Bytes)

Unix Components I/O –Character (device) –Block (regular file) –Network (socket) IPC (inter-process communication) –Signal: processes in same machine –Pipe: processes in same machine –Socket: processes in different machines –Client/server

Linux File name for Hardware Hardware deviceFile name IDE disk/dev/hd[a-d] SCSI/SATA/USB disk. USB flash/dev/sd[a-p] Floppy disk/dev/fd[0-1] Printer25 pins: /dev/lp[0-2] USB: /dev/usb/lp[0-15] MouseUSB: /dev/usb/mouse[0-15], /dev/mouse PS2: /dev/psaux CDROM/DVDROM/dev/cdrom TapeIDE: /dev/ht0 SCSI: /dev/st0

Unix Features Open system –Internal software source code are available (free or low cost) Platform independent –From PC to supercomputer Multi-users: round-robin between users Multi-tasking: process (execution of a program) sharing Virtual memory –Swap space at least 2 times of RAM

Unix Features Simple view of devices-Files (data unit on storage) –Peripheral –Network interface –Disk Efficient, robust, simple Lots of Utilities: tools for users to interact UNIX –Command line interpreter: process shell command System calls similar to library routines –Processes use system-calls to interact with Kernel Lots of commercial software GUI: X Window

Slide 18 vi/vim editor vi filename.c (or vim filename.c) Document: Please refer to ml

Slide 19 Use vi Editor 2 modes: –Editor mode (press ): make correction –Insert/open/append mode (press / / ): add text

Slide 20 Use vi Editor (Cont.) Editor mode: (Common keys) – :move left, : move right, : move down, : move up – : beginning of line, : end of line – : next word, : previous word – : go to line n

Slide 21 Use vi Editor (Cont.) Editor mode: (Cont.) – : delete character, : delete word – : delete line (to clip board), : copy line – : paste from clip board after/below cursor – : paste from clip board before/above cursor –Move cursor to line m,, then move cursor to line n, : move line m to below line n –Move cursor to line m,, then move cursor to line n, : copy line m to below line n

Slide 22 Use vi Editor (Cont.) Editor mode: (Cont.) Note: put a number n before an action will repeat the action n times. For example: 10 : move cursor down 10 lines 10 delete 10 characters 10 : delete 10 lines 10 : copy 10 lines

Slide 23 Use vi Editor (Cont.) Editor mode: (Cont.) – : replace a character – type in word : replace a word – type in words : replace/type over words – type in word : search the 1 st occurrence of the word – : save, : save and quit, – type in filename : save to filename and quit – : substitute the 1 st occurrence of word1 for word2 – : substitute all the occurrence (globally) of word1 by word2 from line 1 to last line

Slide 24 Use vi Editor (Cont.) Editor mode: (Cont.) – : join the cursor line and the line below into one line –Move cursor to position : split at the cursor position into 2 lines – : repeat the previous command – : next searched word – : go to last line – : file status

Slide 25 Use vi Editor (Cont.) Insert/open/append mode: (Common keys) – type in words :insert words before the cursor – type in words :append words after the cursor – type in words :open lines after the cursor and append words – type in words :open lines before the cursor and append words

Slide 26 Class Example Hands On Example0: edit the following 2 lines in file.exrc (vi ~/.exrc) :abbr #b /************************ :abbr #e ************************/ Then when you use vi template.c And after press / / to insert text, you type #b followed by, you add a line /******** in. Similarly, when you type #e followed by, you add a line ********/ in Example 1

Reference Unix History: Chapter 16 Unix internal: Chapter 14 Linux How-to Documentation: Linux: