Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.

Slides:



Advertisements
Similar presentations
Shell Script Assignment 1.
Advertisements

CHAPTER 2 THE UNIX SHELLS by U ğ ur Halıcı. layers in a unix system 1 Users Standard utility programs (shell, editors, compilers, etc.) Standard utility.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
Operating Systems Review. User Computer, including HW and SW.
Linux+ Guide to Linux Certification, Second Edition
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
Shell Programming 1. Understanding Unix shell programming language: A. It has features of high-level languages. B. Convenient to do the programming. C.
Introduction to Linux and Shell Scripting Jacob Chan.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Review week two lab assignment This week’s expected outcomes Next lab assignment.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Unix Basics Chapter 4.
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.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 8 Shell.
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
HKOI 2012 TRAINING INTRO TO LINUX /CUHK/SHB123]$ date Sat Feb 18 13:00:00 HKT 2012.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
Linux+ Guide to Linux Certification, Third Edition
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Use of the Virtual Machine Review week two lab assignment This week’s expected.
Week Three Agenda Administrative Issues Link of the week Review week two lab assignment This week’s expected outcomes Next lab assignment Upcoming deadlines.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Linux Commands C151 Multi-User Operating Systems.
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Use of the Virtual Machine Review week two lab assignment This week’s expected.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
Week Five Agenda Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Introduction to Scripting Workshop February 23, 2016.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
UNIX  Portable (common to many computer architectures), multitasking, multi-user operating system  Introduced by Bell labs in mid-1960’s  Thus, much.
Development Environment Basics
Getting started with CentOS Linux
Week Two Agenda Announcements Link of the week Use of Virtual Machine
Week Three Agenda Link of the Week Review Week Two Information
Sydney Opera House.
Shell Script Assignment 1.
Unix Operating System (Week Two)
INTRODUCTION TO UNIX: The Shell Command Interface
Week Three Agenda Link of the Week Review Week Two Information
Getting started with CentOS Linux
Linux Shell Script Programming
Presentation transcript:

Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems Upcoming Deadlines Questions and answers

Link of the week ating_Systemshttp://dmoz.org/Computers/Software/Oper ating_Systems Definition of Operating System (OS) Basic tasks performed by an operating system –Control and allocate memory –Prioritize system requests –Control input and output devices –Facilitate networking and management file systems

Link of the week Services an Operating System (OS) performs –Process management Demonstrate test_file.txt on cs.franklin.edu –Memory management OS coordinates various types of memory –File systems –Networking –Graphical user interface (GUI) and command line –Device drivers –Security Internal management External management

Use of the Virtual Machine Received two CD’s from Franklin University. Use the ITEC 400 Virtual Machine CD to install your Knoppix software. Why is Knoppix OS being utilized in this course? Knoppix features Review VMware Desktop using Franklin Live Demonstrate how to ftp a file from your computer to Einstein using VMware software

Review week one lab assignment if [ ] then … fi while [ ] do … done for file_name in * do … done $1, $2, $3 cd $1

Review week one lab assignment if [ $# -ne 1 ] then … elif [ $1 -gt 0 ] then while [ $variable -gt 0 ] do echo -n $variable if [ $variable -gt 1 ] then … fi VARIABLE=$(( $VARIABLE - 1)) done echo else … fi

Review week one lab assignment man (use “q” to terminate view) ls –l ps cut –f 9 cut –c 1-7 wc -l $# date exit 0 exit 1 NUMBER=$2 echo $NUMBER less

Weeks 2 and 3 expected outcomes Upon successful completion of this module, the student will be able to: Create scripts using shell variables and program control flow. Use man page system and find script tools. Use redirection and pipes to combine scripts and executables.

Review next lab assignment Concentric Circle Relationship

Review next lab assignment Use the editor of your choice to open and save a file. vi test_file.txt o (insert text - alpha character) Esc key (exit insert mode) :wq! (save text entered in file) :q! (quit without saving changes) echo $NUMBER myArray[1]=$1

Review next lab assignment Users can connect the standard output of one command into the standard input of another command by using the pipeline operator (|). ps –ef | wc –l ps –ef | awk ‘{print $1}’ who (users who are logged on) who –b (time of last system boot) who –d (print dead processes) who –r (print current run level) Each command has a return value. 0 indicates a normal exit 1 indicates a failed exit The return value of a command can be used with conditional or iteration commands.

Review next lab assignment A process associates a number with each file that it has opened. This number is called a file descriptor. When you log in, your first process has the following three open files connected to your terminal. Standard input: File descriptor 0 is open for reading. Standard output: File descriptor 1 is open for writing. Standard error: File descriptor 2 is open reading. Linux command documentation is known as man. Each page is a self- contained document. The Manual sections are split into eight numbered sections: 1 General commands. 2 System calls 3 C library functions 4 Special files (usually devices, those found in /dev) and drivers. 5 File formats and conventions 6 Games and screensavers 7 Miscellaneous 8 System administration commands and daemons

Review next lab assignment The grep command searches the named input file(s) for lines containing a match to the given pattern. Normally, each line found is reported to standard output. Demonstrate: grep lines ~dandrear/summer08_solutions/foobar_1 The find command lists all pathnames that are in each of the given directories. Demonstrate: find / -type d –print The above command displays all directory names starting with root in the file system. Demonstrate: find ~dandrear –type d -print

Review next lab assignment Redirect the standard output of a command to a file. date > /tmp/date_saved Redirect the standard input of a command so that it reads from a file instead of from your terminal. mail dandrear < ~dandrear/summer08_solutions/report.txt Append the standard output of a command to a file. cat foobar_2 >> foobar_1

Review next lab assignment Demonstrate: srch Code one small script function at a time. Test that function before adding more code to the script. Program coding is an iterative process (code,test,code,test,code,test, …).

Break Out Problems ps | wc –l who | awk ‘{print $1}‘ | sort –u | wc –l ps –ef | awk ‘{print $1}’ | sort –u | wc –l sort –r names.txt ps –ef | awk ‘{print $9, $1}’ find /bin -name gzip find /etc -name motd > newfile rm newfile date | cut –c12-19 nohup grep This ~dandrear/summer08_solutions/report.txt & cp test_data.txt ~dandrea/temp mv test_data.txt ~dandrear/temp printf $NUMBER Script: ~dandrear/summer08_solutions/person.sh #!/bin/ksh person=`who | grep $1` echo $person

Upcoming Deadlines Simple Shell scripts, Lab Assignment 2-1 due 5/18/08. Provide your proctor information by 5/17/08. Verify that your login is correct on Einstein. Configure your directory structure on Einstein to comply with course specifications. Advanced Scripting, Lab Assignment 4-1 due 5/25/08.

Questions and answers Questions Comments Concerns After class I will help students with their scripts.