CSCI 330 T HE UNIX S YSTEM Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009.

Slides:



Advertisements
Similar presentations
Objectives In this lesson, you will learn to: Define operating systems
Advertisements

CSE4251 The Unix Programming Environment
A Guide to Unix Using Linux Fourth Edition
Chapter One The Essence of UNIX.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
CS 497C – Introduction to UNIX Lecture 2: Work with Files and Directories Chin-Chih Chang
Guide To UNIX Using Linux Third Edition
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
Operating Systems.
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.
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.
TOPIC 5.0 LINUX SHELLS.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Linux Shells Dr. Michael L. Collard 1.
Unix Background / History CSE 4251, Sp 2014, Bolz 422 Dr. Bob Mathis,
CST334 Unix & X Window System
Welcome to CSE  Name: Di Cao   Classroom: DL357  Class Time: T 8:30am - 9:18am  Office.
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.
COMP1070/2002/lec3/H.Melikian COMP1070 Lecture #3 v Operating Systems v Describe briefly operating systems service v To describe character and graphical.
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)
Introduction to Unix/Linux Chapter One The Essence of UNIX.
UNIX Unbounded 5th Edition Amir Afzal Chapter 3 Getting Started
유닉스, 왜 공부하나 ? 자동화 –GUI vs commands 서버 개발 능력, 관리 능력 – 데스크탑에서의 개발과 관리와의 차이 ?
Module 1 Introduction to UNIX/Linux
CENT 305 Information Systems Security Linux Introduction.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
Linux 简介. Contents Unix GNU/Linux, Distributions Basic usage Applications Compiling, compilers Clustering.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
Chapter 1: Welcome to Linux An intro to UNIX-related operating systems.
Natawut NupairojAssembly Language1 Unix Survival Guide.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Introduction to Unix (CA263) Getting Started By Tariq Ibn Aziz.
UNIX/LINUX SHELLS.  “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
© Prepared By: Razif Razali 1 TMK 265: UNIX SYSTEM CHAPTER ONE – UNIX PHILOSOPHY.
Computers & Operating Systems
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.
Week 8: Linux / ubuntu Dr. I. H. Shah. / CSCS 301 Fall 2009.
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
Introduction to UNIX. 2 History of Unix  1960 Software based on Hardware Limits  1969 Ken Thompson Develop a Better Programming Environment  1971 New.
CSCI 330 UNIX and Network Programming Unit I Introduction.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
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.
Introduction to UNIX Karl Harrison September 2004.
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.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
Overview of Linux Fall 2016 Dr. Donghyun Kim
Introduction to UNIX.
Unix Scripting Session 1 March 6, 2008.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Welcome to Linux Chap#1 Hanin Abdulrahman.
Popular Operating System Chapter 8
Unix Shells.
Chapter 1 The Essence of UNIX and Linux
Unix : Introduction and Commands
A short Linux History of UNIX/Linux
Linux Professor Sabol.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Presentation transcript:

CSCI 330 T HE UNIX S YSTEM Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009

I NTRODUCTION What is an OS and what is it good for? Where to get Linux Basic commands Getting help 2 CSCI The UNIX System

W HAT IS AN O PERATING S YSTEM ? UNIX is an Operating System Software that manages (allocates and de-allocates) system resources in an efficient and secure manner 3 CSCI The UNIX System

4 System Resources HardwareSoftware System Software Application Software

OBSOLETE TYPES OF OPERATING SYSTEMS Single-user, single-process operating systems: allow only one user at a time on the computer system user can execute/run only one process at a time Examples: DOS, Windows 3.1 Single-user, multi-process operating systems: allow a single user to use the computer system user can run multiple processes at the same time Example: OS/2 5 CSCI The UNIX System

CURRENT OPERATING SYSTEMS Multi-user, multi-process operating systems: allow multiple users to use the computer system simultaneously Each user can run multiple processes at the same time Examples: UNIX, Windows NT (2000, XP, Vista) 6 CSCI The UNIX System

UNIX O PERATING S YSTEM UNIX is a multi-user, multi-process operating system UNIX is designed to facilitate programming, text processing and communication 7 CSCI The UNIX System

USES OF UNIX User Support Tools Text processing (vi, sed, awk) Productivity applications Programmer Support Tools Programming languages & compilers (C, C++, Java) Shell scripts Personal software process: version control Source Code Control System (SCCS) Revision Control System (RCS) Unix as server Web server, mail server, application server 8 CSCI The UNIX System

WHERE TO GET LINUX turing.cs.niu.edu or hopper.cs.niu.edu secure login via ssh from another Linux machine or Putty from Windows Homework must run on these! Install your own Linux system Spare machine Dual boot Linux on a CD (slow) Other Cygwin: Unix utilities on Windows Windows Services For Unix (for some versions of Windows) MacOS 10 is Unix under the hood 9 CSCI The UNIX System

H ISTORY OF UNIX Invented by Ken Thompson at AT&T in 1969 First version written in assembly language single user system, no network capability Thompson, Dennis Ritchie, Brian Kernighan rewrote Unix in C: processor/architecture independent Unix evolution: Bell Labs, USL, Novell, SCO BSD, FreeBSD, Mach, OS X AIX (IBM), Ultrix, Irix, Solaris (Sun), … Linux: Linus Torvalds 10 CSCI The UNIX System

COMPONENTS OF UNIX 11 CSCI The UNIX System

L INUX D ISTRIBUTIONS Base distributions: Redhat Debian Suse … Derived distributions: Fedora Ubuntu … 12 CSCI The UNIX System

UNIX S HELL traditional user interface = the “command line” Features: Interpret and execute commands Command history and editing Command scripting Job control 13 CSCI The UNIX System

UNIX S HELLS sh Bourne shell: Steve Bourne, 1978 Almquist shell (ash): BSD sh replacement Bourne-Again shell (bash): GNU/Linux csh C shell, Bill Joy, BSD, 1978 tcsh Tenex C shell (tcsh): GNU/Linux others: Korn shell (ksh), Zshell (zsh), … 14 CSCI The UNIX System

C OMMAND L INE S TRUCTURE % command [-options] [arguments] 15 CSCI The UNIX System Command prompt Command name Arguments can be: 1. More information 2. Object identifiers 3. Names of files UNIX is case sensitive Must be a space between the command, options and arguments No space between the plus or minus sign and the option letter Fields enclosed in [ ] are optional Command modifier; usually one character preceded by + or - sign

C OMMAND L INE E XAMPLE % sort list % sort -f list % sort -o sorted list 16 CSCI The UNIX System Command name Command option Option argument Command argument

C ORRECTING M ISTAKES Again: UNIX is case sensitive (use lowercase) 17 CSCI The UNIX System Key PressedResult Backspace, Ctrl-hBack up & erase last character Ctrl-cTerminates the current command (watch out for Ctrl-z: suspend command) Ctrl-sStops scrolling of output on screen (Ctrl-q to resume/start scrolling) Ctrl-wDelete previous word on command line (from cursor back) Ctrl-uErases/deletes entire command line

CORRECTING MISTAKES WITH EMACS COMMANDS Certain emacs cmds can be used on the command line 18 CSCI The UNIX System Key PressedResult Cntl-aGo to beginning of line Ctrl-eGo to end of line Esc-fGo forward one word Esc-bGo back one word Esc-dDelete word (from cursor to end of word) Cntl-dDelete character at cursor Cntl-kDelete from cursor to end of line

S OME B ASIC C OMMANDS passwd - change password ls- list files less - show content of file logout- logout from system date - display date and time who - display who is on the system clear - clear terminal screen script - make record of a terminal session uname -a- print current OS detail (version etc.) man - find and display system manual pages 19 CSCI The UNIX System

G ETTING H ELP : S YSTEM M ANUAL 20 CSCI The UNIX System Section No.Description 1User commands 2System calls 3C library functions 4Special system files 5File formats 6Games 7Miscellaneous features 8System administration utilities

RTFM: T HE MAN C OMMAND show pages from system manual Syntax: man [options] [-S section] command-name % man date % man -k date % man crontab % man -S 5 crontab Caveats: Some commands are aliases Some commands a part of shell 21 CSCI The UNIX System

M ORE HELP : ONLINE Some web sites linux.die.net Or find your own: Google command, arguments, error messages 22 CSCI The UNIX System

S UMMARY UNIX is multi-user multi-process OS We are using two Linux machines turing.cs.niu.edu and hopper.cs.niu.edu Debian distribution 23 CSCI The UNIX System