Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright 2001-2003.

Slides:



Advertisements
Similar presentations
ITR3 lecture 7: more introduction to UNIX Thomas Krichel
Advertisements

Bab 14 IMPLEMENTASI TEORI SISTEM OPERASI. SISTEM UNIX.
Chapter One The Essence of UNIX.
Chapter One Introduction to Unix1 System Programming Introduction to Unix.
Getting Started with Linux Douglas Thain University of Wisconsin, Computer Sciences Condor Project October 2000.
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
Working Environment - - Linux - -.
CMPTR1 CHAPTER 3 COMPUTER SOFTWARE Application Software – The programs/software/apps that we run to do things like word processing, web browsing, and games.
Network+ Guide to Networks, Fourth Edition
Operating Systems - Introduction S H Srinivasan
Guide To UNIX Using Linux Third Edition
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
Introduction to UNIX Acknowledgement:Thanks to Dr Andrew Horner for the original version of this set of slides. All trademarks are the properties of their.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
1 Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET201.
Brief History of C and Unix Systems Programming Concepts.
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.
CSCI 330 T HE UNIX S YSTEM Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009.
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.
Linux Basics CS 302. Outline  What is Unix?  What is Linux?  Virtual Machine.
Introduction A computer system consists of hardware system programs application programs.
What is UNIX? UNIX is an Operating System (OS). An operating system is a control program that helps the user communicate with the computer hardware. UNIX.
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.
Introduction to Unix Administration Objectives –to identify the basic concepts of Unix administration Contents –history of Unix –unix vendors and standards.
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
UNIX OS By: Desmond Dagg Alannah Storm Mullins Carl Kavanagh Gareth Dunne Behzad Sanehi.
Module 1 Introduction to UNIX/Linux
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
CENT 305 Information Systems Security Linux Introduction.
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.
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.
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.
CS 390 Unix Programming Environment Summer Suchindra Rengan - CS3902 Course Details Instructors Suchindra Rengan – ‘sachin’ ( Section 001)
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
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.
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
UNIX shell environments CS 2204 Class meeting 6 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
UNIX shell environments CS 2204 Class meeting 4 Created by Doug Bowman, 2001 Modified by Mir Farooq Ali, 2002.
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.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
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.
Agenda UNX122_022_w1_p3 Overview of UNIX
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
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.
Lab #1: UNIX crash course Introduction: History of Operating Systems Lesson #1: Navigating directories Lesson #2: Creating and editing files with emacs.
Computer Center | Network Group IISER Bhopal Introduction to Basic Component of Computer System Vinay Bajpai iiserb.ac.in Computer Center Indian.
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
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 -
Operating Systems Introduction Moti Geva
Overview of Linux Fall 2016 Dr. Donghyun Kim
A LECTURE NOTE.
Introduction to UNIX.
Popular Operating System Chapter 8
Unix : Introduction and Commands
Linux Professor Sabol.
Presentation transcript:

Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright

(C) Doug Bowman, Virginia Tech, What is UNIX? A modern computer operating system Operating system: “a program that acts as an intermediary between a user of the computer and the computer hardware” Software that manages your computer’s resources (files, programs, disks, network, …) e.g. Windows, MacOS Modern: features for stability, flexibility, multiple users and programs, configurability, etc.

(C) Doug Bowman, Virginia Tech, Why UNIX? Used in many scientific and industrial settings Huge number of free and well-written software programs Open-source OS Internet servers and services run on UNIX Largely hardware-independent Based on standards

(C) Doug Bowman, Virginia Tech, Brief history of UNIX Ken Thompson & Dennis Richie originally developed the earliest versions of UNIX at Bell Labs for internal use in 1970s Borrowed best ideas from other Oss Meant for programmers and computer experts Meant to run on “mini computers”

(C) Doug Bowman, Virginia Tech, 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.

(C) Doug Bowman, Virginia Tech, UNIX variants Two main threads of development: Berkeley software distribution (BSD) Unix System Laboratories System V Sun: SunOS, Solaris GNU: Linux (many flavors) SGI: Irix FreeBSD Hewlett-Packard: HP-UX Apple: OS X (Darwin) …

(C) Doug Bowman, Virginia Tech, 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

(C) Doug Bowman, Virginia Tech, 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.

(C) Doug Bowman, Virginia Tech, UNIX Structure 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.

(C) Doug Bowman, Virginia Tech, UNIX Structure Over two hundred utility programs or tools are supplied with the UNIX system. These utilities (or commands) support a variety of tasks such as copying files, editing text, performing calculations, and developing software. This course will only attempt to introduce a limited number of these utilities or tools!

(C) Doug Bowman, Virginia Tech, Getting started

(C) Doug Bowman, Virginia Tech, Logins and passwords You must have an “account” on the UNIX machine you’re trying to use “login” is your user name (usually some variant of your real name) Your password will not echo as you type Remember good password practices

(C) Doug Bowman, Virginia Tech, The shell prompt After logging in, you get some information about the system, then a shell prompt shell: The program you use to send commands to the UNIX system Prompts take many forms: $ % hostname # % Must beat the “Tyranny of the blank screen”

(C) Doug Bowman, Virginia Tech, Entering commands Anytime you see a prompt, you can enter a command for the shell Some commands are a single word who date ls Others use additional information cat textfile ls -l

(C) Doug Bowman, Virginia Tech, Command syntax Commands must be entered exactly. If you make a mistake before entering, delete/backspace to fix it. Be careful! command options argument(s) Options: modify command’s execution Arguments: often filenames that tell a command what to operate on

(C) Doug Bowman, Virginia Tech, Example commands: ls (list) ls –l ls –a –l ls –al ls –a; ls -l ls textfile ls folder ls textfile1 textfile2 ls –al textfile

(C) Doug Bowman, Virginia Tech, If you don’t get a normal shell prompt… A program is probably running If you see a special program prompt, try to quit the program ( quit, bye, exit ) If you see nothing, you can Stop the program with CTRL-z (program will wait until started again) Interrupt the program with CTRL-c (program will usually die)

(C) Doug Bowman, Virginia Tech, Ending your session Always log out when you are done Use the command exit (also sometimes logout or CTRL-d) Note: if you are running a window system, logging out of the shell only ends that shell. You must also log out of the window system using a menu.