Comp 145 – Introduction to UNIX $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 UNIX Processes.

Slides:



Advertisements
Similar presentations
June 1, 1999Foreground/Background Processing1 Introduction to UNIX H. Foreground/Background Processing.
Advertisements

Using tcpdump. tcpdump is a powerful tool that allows us to sniff network packets and make some statistical analysis out of those dumps. tcpdump operates.
Introduction to UNIX CSE 2031 Fall May 2015.
CS 497C – Introduction to UNIX Lecture 26: - The Process Chin-Chih Chang
 *, ? And [ …] . Any single character  ^ beginning of a line  $ end of the line.
CS 497C – Introduction to UNIX Lecture 24: - Simple Filters Chin-Chih Chang
Introduction to UNIX A User’s Perspective: Day 3: Advanced Commands & vi.
Linux+ Guide to Linux Certification, Second Edition
Now, return to the Unix Unix shells: Subshells--- Variable---1. Local 2. Environmental.
CS 497C – Introduction to UNIX Lecture 36: - Customizing the Environment Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 25: - Simple Filters Chin-Chih Chang
More Shell Basics CS465 - Unix. Unix shells User’s default shell - specified in /etc/passwd file To show which shell you are currently using: $ echo $SHELL.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
CSCI 330 T HE UNIX S YSTEM File operations. OPERATIONS ON REGULAR FILES 2 CSCI The UNIX System Create Edit Display Contents Display Contents Print.
Unix Filters Text processing utilities. Filters Filter commands – Unix commands that serve dual purposes: –standalone –used with other commands and pipes.
UNIX Filters.
Using Linux Commands 2 Lab#5
Using Linux Commands 2 Lab#5. Sort command Sort the lines of text files. $ sort fileName by default it will sort in normal order(alphabetical 0-9 A-Z.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX – Shell Programming The activities of.
UNIX Processes. The UNIX Process A process is an instance of a program in execution. Created by another parent process as its child. One process can be.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Advanced File Processing
Advanced Shell Programming. 2 Objectives Use techniques to ensure a script is employing the correct shell Set the default shell Configure Bash login and.
Welcome to CSE  Name: Di Cao   Classroom: DL357  Class Time: T 8:30am - 9:18am  Office.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX – The Shell The Shell The agency that.
Introduction to Unix (CA263) File Processing. Guide to UNIX Using Linux, Third Edition 2 Objectives Explain UNIX and Linux file processing Use basic file.
Unix Shells Based on Glass & Abels’ Book CS240 Computer Science II.
Shells. A program that is an interface between a user at a terminal and the computers resouces ▫The terminal may be real or an emulator The shell is.
Linux+ Guide to Linux Certification, Third Edition
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command to search for.
Basic Shell Scripting - Part 1 Objective - Learn to: Read Start-up Files Edit Start-up Files Modify Your User Environment Communicate with Users Write.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
1 Logging in to a UNIX System init ( Process ID 1 created by the kernel at bootstrap ) spawns getty for every terminal device invokes our login shell terminal.
CS465 - UNIX The Bourne Shell.
Chapter Five Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command.
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Review Chapters 5 thru 8. 2 Two Groups of Commands Select commands Manipulate and Format commands.
Scis.regis.edu ● CS 468: Advanced UNIX Class 4 Dr. Jesús Borrego Regis University 1.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Chapter Four I/O Redirection1 System Programming Shell Operators.
Linux+ Guide to Linux Certification Chapter Eleven Managing Linux Processes.
UNIX shell environments CS 2204 Class meeting 4 Created by Doug Bowman, 2001 Modified by Mir Farooq Ali, 2002.
Customizing the Shell Environment. UNIX Shells Two characteristics of shells –Interactive: prompts ($) and waits for your response/requests –Noninteractive:
Advanced Programming in the UNIX Environment Hop Lee.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Compunet Corporation Introduction to Unix (CA263) Your Environment By Tariq Ibn Aziz Dammam Community College.
Environment After log in into the system, a copy of the shell is given to the user Shell maintains an environment which is distinct from one user to another.
– Introduction to the Shell 1/21/2016 Introduction to the Shell – Session Introduction to the Shell – Session 3 · Job control · Start,
Chapter 8: The Bourne Again Shell It’s a command interpreter, it’s a programming language, and it makes a mean martini.
CSC 352– Unix Programming, Spring 2015 February 2015 Unix Filters.
Lecture 1: Introduction, Basic UNIX Advanced Programming Techniques.
ORAFACT Text Processing. ORAFACT Searching Inside Files grep - searches for patterns within files grep [options] [[-e] pattern] filename [...] -n shows.
CS 403: Programming Languages Lecture 20 Fall 2003 Department of Computer Science University of Alabama Joel Jones.
Comp 145 – Introduction to UNIX $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 Basic Concepts.
Agenda Customizing a Unix/Linux account Environment Introduction to Start-up Files (.bash_profile,.bashrc,.profile,.kshrc) Safe Methods for Changing Start-up.
SIMPLE FILTERS. CONTENTS Filters – definition To format text – pr Pick lines from the beginning – head Pick lines from the end – tail Extract characters.
Lesson 5-Exploring Utilities
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Chapter 6 Filters.
Unix Scripting Session 4 March 27, 2008.
John Carelli, Instructor Kutztown University
Guide To UNIX Using Linux Third Edition
Linux Shell Script Programming
Presentation transcript:

Comp 145 – Introduction to UNIX

$200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 UNIX Processes Shell Customization Simple UNIX Filters Anybody’s Guess

UNIX Processes Shell Customization Simple UNIX Filters Anybody’s Guess $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $600 $800 $400 $1000

Category 1 $200 It is the parent process of all shell processes.

Category 1 $400 It is the UNIX command for obtaining a list of all processes including system processes.

Category 1 $600 It is a system process that lacks terminal control.

Category 1 $800 They are the 3 primary steps of the UNIX process cycle.

Category 1 $1000 It is what the kernel uses to communicate with processes.

Category 1 $200-Answer What is init?

Category 1 $400-Answer What is ps -e?

Category 1 $600-Answer What is a daemon?

Category 1 $800-Answer What are fork, exec and wait?

Category 1 $1000-Answer What are signals?

Category 2 $200 It is the UNIX file where which shell the user will use is stored.

Category 2 $400 What is the UNIX command for making a shell variable available to all subshells.

Category 2 $600 It is the UNIX environment variable for setting the primary prompt string.

Category 2 $800 It is the command that allows you to assign a shorthand name to a longer UNIX command.

Category 2 $1000 It is a script that is executed when a user logs in.

Category 2 $200-Answer What is /etc/passwd?

Category 2 $400-Answer What is export?

Category 2 $600-Answer What is PS1?

Category 2 $800-Answer What is alias?

Category 2 $1000-Answer What is.profile?

Category 3 $200 It is the UNIX filter for printing a file in 2 columns.

Category 3 $400 They are 3 UNIX filters for comparing the contents of files.

Category 3 $600 It is the UNIX filter for extracting fields 1 thru 3 of a colon- delimited file.

Category 3 $800 It is the UNIX filter for continuously displaying the end of a growing file.

Category 3 $1000 It is the UNIX filter for numerically sorting a file on its 5 th field.

Category 3 $200-Answer What is pr –k 2?

Category 3 $400-Answer What are cmp, comm, and diff?

Category 3 $600-Answer What is cut –d: -f1-3?

Category 3 $800-Answer What is tail -f?

Category 3 $1000-Answer What is sort –n –k 5?

Category 4 $200 It is the UNIX command for running a command in the background even after logging off.

Category 4 $400 It is the UNIX command used to prevent accidental overwriting when using > and >>.

Category 4 $600 It is the UNIX filter for replacing the % character with the # character throughout a file.

Category 4 $800 It is the UNIX command for scheduling programs to run periodically.

Category 4 $1000 It is a shell-specific feature allowing you to recall a previous command and re-edit/ re-execute it.

Category 4 $200-Answer What is nohup?

Category 4 $400-Answer What is set –o noclobber?

Category 4 $600-Answer What is tr ‘%’ ‘#’?

Category 4 $800-Answer What is cron?

Category 4 $1000-Answer What is command history?

Final Jeopardy UNIX Filters

Final Jeopardy You have 1 minute to consult… It is the UNIX filter for displaying a count of each unique line in a file.

Final Jeopardy You have 30 seconds to consult… It is the UNIX filter for displaying a count of each unique line in a file.

Final Jeopardy You have 15 seconds to consult… It is the UNIX filter for displaying a count of each unique line in a file.

Final Jeopardy Time Is Up It is the UNIX filter for displaying a count of each unique line in a file.

Final Jeopardy - Answer What is uniq -c?

Jeopardy Thank you for playing another fine round of Comp 145’s favorite question and answer game.