CMSC 104, L031 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.

Slides:



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

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating System.
Exploring the UNIX File System and File Security
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Linux+ Guide to Linux Certification, Second Edition
The UNIX File System.
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
Part two. 3.2 operating system architecture  Software have two categories  Application software  System software  Application software: consists of.
CMSC 1041 Operating Systems I An Introduction to Operating System Concepts.
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Looks like DOS…but more powerful.
SOFTWARE.
Operating system Part two Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Chapter 4 Operating Systems and File Management. 4 Chapter 4: Operating Systems and File Management 2 Chapter Contents  Section A: Operating System Basics.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
CPS120: Introduction to Computer Science Operating Systems Nell Dale John Lewis.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Chapter Two Exploring the UNIX File System and File Security.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Operating Systems and Using Linux CMSC 104, Lecture 3 John Y. Park 1.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
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.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
1 Sec (3.2) Operating System Architecture OS. 2 Software dividing into two categories: 1. Application software 2. System Software  Operating System 
8-2 What is a program? What is a “Window Manager” ? What is a “GUI” ? How do you navigate the Unix directory tree? What is a wildcard? Readings: See CCSO’s.
Introduction to Programming Using C An Introduction to Operating Systems.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
CMSC 104, Lecture 031 Operating Systems I An Introduction to Operating System Concepts.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
CMSC 104, Section 301, Fall Lecture 04, 9/11/02 Operating Systems and Using Linux Review Operating System. Linux Overview. Frequently Used Linux.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
CMSC 104, Section 301, Fall Lecture 03, 9/09/02 Operating Systems and Using Linux Topics Review Number Systems. Go over Homework 1 Solution. CSHC.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
CT101: Computing Systems Introduction to Operating Systems.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
UMBC CMSC 104 – Section 01, Fall 2016
Overview of Linux Fall 2016 Dr. Donghyun Kim
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Operating System.
Andy Wang Object Oriented Programming in C++ COP 3330
Introduction to Operating System (OS)
Operating Systems and Using Linux
Operating Systems and Using Linux
Exploring the UNIX File System and File Security
Operating Systems and Using Linux
Shell & Kernel Concepts in Operating System
Operating Systems and Using Linux
Operating Systems and Using Linux
Web Programming Essentials:
Operating Systems and Using Linux
Operating Systems and Using Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Presentation transcript:

CMSC 104, L031 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.

CMSC 104, L032 What is an Operating System (OS)? A computer program Performs many operations: Allows you to communicate with the computer (tell it what to do) Controls access (login) to the computer Keeps track of all “processes” currently running At this point, your main concern is how to communicate with the computer using the OS

CMSC 104, L033 A Formal Definition of: OS Operating System: A program that integrates and Controls the computer’s Internal Functions and Provides a User Interface.

CMSC 104, L034 OS Introduction Computer applications today require a single machine to perform many operations and the applications may compete for the resources of the machine. This demands a high degree of coordination This coordination is handled by system software known as the operating system

CMSC 104, L035 Definition of Router Router - A “gateway” machine that examines each packet of data it receives, and then decides which way (if at all) to send it towards its destination. The most efficient path is chosen. The router can be set up as a firewall, where it permits a companies users to access the Internet but places severe limits on the ability of outsiders to access internal data.

CMSC 104, L036 Router Configuration Router Internet Company A’s Network Router Company B’s Network

CMSC 104, L037 Evolution of Operating System OS for batch jobs o Program execution required significant preparation of equipment o Program execution (job) o OS was a system to simplify program setup and simplify transition between jobs o Physical separation of users and equipment led to computer operators

CMSC 104, L038 OS Evolution (cont’d) o Users left jobs with the operator and came back the next day (batch jobs) o Users had no interaction with computer during program execution. Maybe okay for some applications, but not for all.

CMSC 104, L039 OS Evolution OS for Interactive Processing o Allowed programs to carry on dialogue with user via remote terminals (workstations) o Real-time processing o Users demand timely response o Machines too expensive to serve only one user o Common for several users to want interactive services at the same time

CMSC 104, L0310

CMSC 104, L0311 OS Evolution (cont’d) OS for time-sharing o To accommodate multiple real-time users, the OS rotates its various jobs in and out of execution via time-sharing o Each job gets a predetermined “time slice” o At end of time slice current job is set aside and a new one starts o By rapidly shuffling jobs, illusion of several jobs executing simultaneously is created

CMSC 104, L0312 Time Sharing between Process A & B Process A Interrupt Process B Interrupt Process A Interrupt Process B Interrupt Process Switch Time 50 nSec

CMSC 104, L0313 OS Evolution (cont’d) o without time slicing, a computer spends most of its time waiting for peripheral devices or users o A collection of tasks can be completed in less time with time-sharing than when completed sequentially

CMSC 104, L0314 Different OS’s on the Same Machine ? It is possible to have more than one operating system available to be used on a machine. Only one operating system is run at a time, though. Examples: o VAX - VMS or Ultrix o IBM PCs - DOS, windows NT, or Linux

CMSC 104, L0315 Types of software Applications software l Performs tasks specific to the machine’s utilization. l Generally transportable System Software l Performs tasks common to computer systems in general l Operating systems vary based on the hardware they’re used on

CMSC 104, L0316 Types of software (cont’d) Utility software o Provides fundamental activities, yet not included with OS o “Extends” the OS o Distinction between applications and utilities is often vague o Distinction between OS and utilities is also vague

CMSC 104, L0317

CMSC 104, L0318

CMSC 104, L0319 How Do I Communicate With the Computer Using the OS? You communicate using the particular OS’s user interface. Graphical User Interface (GUI) - Windows Command-driven interface - DOS, UNIX, Linux We will be using the Linux operating system, which is very similar to UNIX.

CMSC 104, L0320 The OS Shell Defines interface between OS and users o Windows GUI o UNIX command line o UNIX users can choose among a variety of shells – csh is the “C shell” – tcsh is an enhanced “C shell” o Shell programming

CMSC 104, L0321 OS Shell interface O / S shell Users

CMSC 104, L0322

CMSC 104, L0323 telnet linux1.gl.umbc.edu

CMSC 104, L0324

CMSC 104, L0325 Unix Graphical User Interface (GUI) Terminal Icon

CMSC 104, L0326 How Do I Communicate With the Computer Using the OS? (con’t) When you log in to the Linux system here, a user prompt will be displayed: linux#[1]% _ where # is the number of the Linux server that you have connected to. You may use any of the servers. The number in the brackets will change as you work. It is the “number” of the command that you are about to type. If this prompt is not on the screen at any time, you are not communicating with the OS.

CMSC 104, L0327 Linux Overview Files and Filenames Directories and Subdirectories Frequently Used Commands

CMSC 104, L0328 Files A file is a sequence of bytes. It can be created by o a text editor (xemacs, pico) o a computer program (such as a C program) It may contain a program, data, a document, or other information. Files that contain other files are called directories (sometimes called folders).

CMSC 104, L0329

CMSC 104, L0330 Linux Filenames Restrictions o May not contain blanks or metacharacters o Have a maximum length o Are case sensitive It is best to stick with filenames that contain letters (uppercase or lowercase), numbers, and the underscore ( _ ) for now. Wildcard characters: * ? [ range ]

CMSC 104, L0331 Directories Directories contain files or other directories called subdirectories. They may also be empty. Directories are organized in a hierarchical fashion. They help us to keep our files organized.

CMSC 104, L0332 Directories (con’t) /afs/umbc.edu/users/j/d/jdoe28 junkrecipes notes piecookie CMSC104 apple peach choc_chip

CMSC 104, L0333 Directories (con’t) Your home directory is where you are located when you log in. The current directory is where you are located at any time while you are using the system. Files within the same directory must be given unique names. Paths allow us to give the same name to different files located in different directories. Each running program has a current directory and all filenames are implicitly assumed to start with the name of that directory unless they begin with a slash.

CMSC 104, L0334 Subdirectories Are used for organizing your files For example o make a subdirectory for CS104 o make subdirectories for each project CS104 project1 project2... project8

CMSC 104, L0335 Moving in the Directory Tree. (dot) is the current directory... (dot-dot) is the parent directory. Use the Linux command cd to change directories. Use dot-dot to move up the tree. Use the directory name to move down. Use the complete directory name (path name) to move anywhere.

CMSC 104, L0336 Frequently Used Linux Commands passwd, man, lpr pwd, ls, cat, more, cd, cp, mv, rm mkdir, rmdir ctl-c References: Linux man page Links from the 104 homepage Books

CMSC 104, L0337 Wildcard Characters You will find wildcard characters useful when manipulating files (e.g., listing or moving them). The wildcard characters are * and ? ? is used to represent any single character. * is used to represent 0 or more characters.