LIS508 lecture 8: looking at linux Thomas Krichel 2002-11-11.

Slides:



Advertisements
Similar presentations
LIS651 lecture 5 direct use of wotan Thomas Krichel
Advertisements

ITR3 lecture 7: more introduction to UNIX Thomas Krichel
LIS651 lecture 5 origins of wotan direct use of wotan Thomas Krichel
LIS651 lecture 5 origins of wotan direct use of wotan Thomas Krichel
Operating Systems An Introduction. 2 What Does An Operating System Do? Manages the hardware and software resources of the system. In a desktop computer,
By- Anjali Bhardwaj. An operating system (OS) is a collection of software that manages computer hardware resources and provides common services for computer.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
History of UNIX Fergus Toolan Intelligent Information Retrieval Group University College Dublin.
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
Operating Systems - Introduction S H Srinivasan
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Linux Introduction. Overview What is Unix/Linux? History of Linux Features Supported Under Linux The future of Linux.
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.
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.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Unix Background / History CSE 4251, Sp 2014, Bolz 422 Dr. Bob Mathis,
CST334 Unix & X Window 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.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
UNIX OS By: Desmond Dagg Alannah Storm Mullins Carl Kavanagh Gareth Dunne Behzad Sanehi.
CENT 305 Information Systems Security Linux Introduction.
Operating System - Linux Ph. D. Course Work : PHYS 601 Statistics and Computer Applications Presented By: Sanjay Godara Dept. of Physics & Astrophysics.
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.
LIS508 background of GNU/Linux
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Operating System Part II: Introduction to the Unix Operating System (The Evolution of Unix)
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
History of UNIX a short version CSCI 333 August 31, 2011.
LIS508 lecture 6: looking at linux Thomas Krichel
Just Enough Unix, Chapter 1
1 Operating Systems: Principles and Practice Cpr E 308.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 10 Case Study 1: LINUX Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
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.
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
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.
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.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
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
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
Lab #1: UNIX crash course Introduction: History of Operating Systems Lesson #1: Navigating directories Lesson #2: Creating and editing files with emacs.
OPS224 Operating Systems - Unix Instructor: MURRAY SAUL.
Learning Unix/Linux Based on slides from: Eric Bishop.
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 10 Let’s Bring Everything Together.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Overview of Linux Fall 2016 Dr. Donghyun Kim
A LECTURE NOTE.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Unix Scripting Session 1 March 6, 2008.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to CIS 52 WELCOME WELCOME WELCOME W E L C O M E.
Case Study : Linux In the previous chapters, we examined many operating system principles, abstractions, algorithms, and techniques in general. Now it.
Operating Systems Georgios Varsamopoulos
The Linux Operating System
Unix : Introduction and Commands
Chapter 2: The Linux System Part 1
Linux Professor Sabol.
Case Study : Linux In the previous chapters, we examined many operating system principles, abstractions, algorithms, and techniques in general. Now it.
Enjoy Linux
Welcome to Linux Chap#1 Hanin Abdulrahman.
Case Study : Linux In the previous chapters, we examined many operating system principles, abstractions, algorithms, and techniques in general. Now it.
Welcome to Linux Chap#1.
Presentation transcript:

LIS508 lecture 8: looking at linux Thomas Krichel

Structure History of unix and linux Using linux Free software

Early Computing History In the 1940s and 1950s, all computers were personal computers in the sense that a user would sign up to use the machine and then take over the whole machine for that period. The early 1960s were dominated by batch systems in which a user would submit a job on punched cards and wait, usually hours, before any printed output appeared.

Early Computing History To get around this unproductive environment, the concept of timesharing was invented by Dartmouth College and M.I.T. The M.I.T system CTSS (Compatible Time Sharing System) was an enormous success. M.I.T., Bell Labs, and General Electric created a second generation timesharing system named MULTICS (Multiplexed Information and Computing Service).

Early UNIX History At Bell Labs, Ken Thompson decided to write a stripped down version of MULTICS for the very small PDP-7 minicomputer which he called UNICS. Dennis Ritchie, also at Bell Labs, joined Thompson in further developments of what was now called UNIX. Together they ported the system the the larger and very popular PDP-11/20 and PDP-11/45 minicomputers.

Early UNIX History Thompson also rewrote the operating system in high level language of his own design which he called B. The B language lacked many features and Ritchie decided to design a successor to B which he called C. They then rewrote UNIX in the C programming language to aid in portability.

Early UNIX History In 1974, Ritchie and Thompson published a paper about UNIX and received the prestigious ACM Turing Award. This publication stimulated many universities to request a copies of UNIX. Since Bell Labs, part of AT&T, was not allowed to be in the computer business, it licensed UNIX to universities. Also, at that time, the PDP-11 series was the workhorse of most computer science departments. Result: UNIX was a hit on campus.

Early UNIX History In Version 6, the source code of UNIX was 8200 lines of C and 900 lines of assembler. The first portable version arrived with Version 7 which had 18,800 lines of C and 2100 lines of assembler. By the 1980s the use of UNIX was widespread with many vendors selling their own versions based on Version 7.

BSD UNIX One of the many universities that had received license for UNIX was the University of California at Berkeley. Aided by many government grants, Berkeley released an improved version named 1BSD (First Berkeley Software Distribution) In subsequent, versions Berkley added many new features including a new visual editor (vi) and a new shell (csh).

Two UNIX Versions Because of these and other enhancements, many companies based their UNIX on Berkeleys version as opposed to AT&Ts so- called System V. By the late 1980s, two different and somewhat incompatible versions of UNIX were in widespread use: 4.3 BSD and System V release 3.

UNIX Standards In addition, every vendor added its own nonstandard enhancements. In an attempt to unify the troops, the IEEE Standards Board undertook the POSIX Project (POS for Portable Operating System) and IX to make it UNIX like. POSIX emerged as a common ground standard is the intersection of System V and BSD. (a feature had to be on both to be included in the standard)

UNIX Standards The POSIX standard defined a set of library procedures and systems calls that all compliant UNIX systems. It appeared that the split between System V and BSD had been somewhat dealt with. Unfortunately, a funny thing happened on the way back form the standards meeting.

UNIX Standards A group of vendors led by IBM, DEC, Hewlett- Packard, and others formed the OSF (Open Software Foundation) to standardize an enhanced version of UNIX in an attempt to derail AT&Ts efforts to regain control of UNIX. AT&T, Sun, UNISYS, Data General, and other companies countered and formed UI (UNIX International) based on System V.

UNIX Like Systems In a new trend, UNIX like operating systems began to appear. MINIX, by Andrew Tanenbaum, used a microkernel design with only 1600 lines of C and 800 lines of assembler in its first version. In 1991, a Finnish student named Linus Torvalds released another UNIX clone named Linux version 0.01.

Linux Linux is a monolithic design rather than a microkernel design. (9,300 lines of C and 950 of assembler) Linux quickly grew in size and functionality. Version 1, shipped in 1994, contained about 165,000 lines of code. Version 2 in 1996 contained about 470,00 lines of C and 8000 lines of assembler. Linux is released under the GNU public licence (we will cover this later).

In the meantime, in the trenches In 1992, Berkeley decided to terminate BSD development with one final free release - 4.4BSD. AT&T sued claiming the version contained AT&T code. During the lawsuit, Berkeley was not allowed to distribute 4.4BSD thus giving time for Linux to become established. Had the lawsuit not occurred, there would have been serious competition between two freely available.

AT&Ts Exit AT&T eventually decided to focus on the long distance telephone business and sold its UNIX business to Novel in In turn, Novel sold it to Santa Cruz Operations in But who owned this version of UNIX was almost irrelevant since so many companies already had licenses.

UNIX Consolidation Even though there have been many vendors and many version of UNIX over the last few decades, the market is now beginning to consolidate. IBMAIX Hewlett-PackardHP/UX SunSolaris MacintoshOS X

Linux Distributions Linux itself is free. It is packaged, provided with installation and management tools, and made available for a small fee by various vendors on CD. These packages are known as distributions. Some common distributions are –Red Hat -- SuSE --Mandrake –Debian-- Slackware Differences –Locations of files (configuration, binaries, etc.) –GUI –Security, efficiency, etc.

UNIX Philosophy Make each program do one thing well. –These programs are sometimes called tools. Expect the output of every program to be the input to another yet unknown program. –Simple tools can be connected to accomplish a complex task Do not hesitate to build new tools –The UNIX tool library keeps growing

UNIX Philosophy The UNIX philosophy has not proven to be the best for all applications. –For example, there are lots of text manipulation tools that can be put together to accomplish a complex word processing task but the trend is definitely toward integrated word processing software.

Layers in the UNIX System Hardware (cpu, memory, disks, terminals, etc.) UNIX Operating System (process management, memory management, the file system, I/O, etc.) Standard Library (open, close read, write, etc.) Standard Utility Programs (shell, editors, compilers, etc.) Users System Interface calls Library Interface User Interface User Mode Kernel Mode

UNIX Structure The kernel is the core of the UNIX system, controlling the system hardware and performing various low-level functions. The other parts of the UNIX system, as well as user programs, call on the kernel to perform services for them. The shell is the command interpreter for the UNIX system. The shell accepts user commands and is responsible for seeing that they are carried out.

Famous shells The Bourne shell /bin/sh (default) The Korn shell /bin/ksh The C shell /bin/csh The Bourne Again Shell /bin/bash The Z shell /bin/zsh In linux, /bin/sh is usually /bin/bash

UNIX Structure Hundreds of applications are supplied with the UNIX system. They support a variety of tasks –copying files –editing text –performing calculations –developing software –Serving web pages etc

Using Linux/UNIX Depends on how it is set up. The following are true on wotan, on other machines it may be different. Wotan runs Debian GNU/Linux. / is the root directory /home/user (aka ~user) is the home directory of the user user. ls –l lists files in long format.

Permission model Permission of files are give to the owner, the group, and the rest of the world. A group is a grouping of users. Unix allows to define any number of groups and make users a member of it. The rest of the world are all other users who have access to the system, including public access on a web server, for example.

First element in ls -l Type indicator –d means directory –l means link –- means ordinary file 3 letters for permission of owner 3 letters for permission of group 3 letters for permission of rest of the world r means read, w means write, x means execute

Change permission: chmod A permission is a number –4 is read –2 is write –1 is execute Permissions are three numbers, for owner, group and rest of the world. Example: chmod 764 file Directories need to be executable to get in them…

Bash features Bash is the default shell on wotan cd is a command to change directory File names and command names can be completed with TAB The command history can be activated with the arrow keys of the keyboard

Copying and removing cp file copyfile scp –User is a user –Machine is a machine –File is the path to a file –Of course you will need permissions here! rm filethere is no recycling bin!! -r flag copies and deletes recursively

Directories and files mkdir file makes a directory rmdir file removes it touch file –makes a new empty file –sets the time on an existing file more file –Pages contents of file, no way back less file –Pages contents of file, u to go back, q to quit

Editing files There are many file editors available. I use emacs, because I am a geek. My students use nano. Invoque it with nano filename If nano in not there, try pico.

Thank you for your attention!