17 Pages

lecReviewMid

Course: COMP 4262, Fall 2008
School: U. Memphis
Rating:
 
 
 
 
 

Word Count: 588

Document Preview

4/6262: COMP Programming UNIX Lecture 10 shell, midterm review February 22, 2006 announcements midterm Wed. March 1, in class till todays lecture close book 1 piece of cheat sheet, letter size, double sided UNIX the 3 levels of UNIX Kernel Shell Tools and apps Kernel: schedules tasks and manages storage; Shell: connects and interprets users' commands, calls programs from memory, and executes them; Tools and...

Register Now

Unformatted Document Excerpt

Coursehero >> Tennessee >> U. Memphis >> COMP 4262

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
4/6262: COMP Programming UNIX Lecture 10 shell, midterm review February 22, 2006 announcements midterm Wed. March 1, in class till todays lecture close book 1 piece of cheat sheet, letter size, double sided UNIX the 3 levels of UNIX Kernel Shell Tools and apps Kernel: schedules tasks and manages storage; Shell: connects and interprets users' commands, calls programs from memory, and executes them; Tools and applications: offer additional functionality to the OS shell A program, command line interpreter An interface between an user and the raw operating system It facilitates Multitasking Piping I/O redirection Wildcards Etc. shell operation When invoked 1. 2. 3. read a start-up file (contains some initialization information, typically located in the users home directory) Displays a prompt and waits for a user command Ctrl-D on its own terminates the shell, otherwise the shell executes user command and returns to step 2 commands Executable files Stand alone programs that are invoked by the shell Stored in files with executable permissions the shell locates the program and execute it Examples: ls, sort, etc. man Built-in commands executed by the shell internally Examples: echo, cd, etc. help command sequence, grouping, script a file that contains shell commands give it execute permission run by typing its name useful for storing commonly used sequences of commands script when a script is run, the system determines which shell the script was written for: the first line of the script is just a #: the script is interpreted by the shell from which it was executed as a command the first line is of the form #! pathName: the executable program pathName is used to interpret the script neither of above: the script is interpreted by a Bourne shell executes the shell, using the script as its standard input standard I/O, redirection, pipes for each program, the shell establish 3 I/O channels redirection filters shell pipes variables hold data in a string format shell replaces $variableName with the value of variableName to create a variable, simply assign it a value local and environment variables when a shell invokes a subshell, the child shell gets a copy of its parent shells environments variables, but not local variables use shell command (export in Bourne shell) to make a local variable environment shell variables predefined $HOME $PATH $SHELL $TERM special built-in $$ process ID of the shell $0 the name of the shell script $1..$9 $n refers to the nth command line argument $* a list of all the command line arguments metacharacters characters that receive special processing by the shell Examples > (>>) output redirection < input redirection * (?, []) file substitution wildcard | pipe ; sequence commands () group commands `` command substitution # comments (ignore everything after) $ expands the value of a variable && conditional execution & runs a command in the background \ prevents special interpretation of the next character substitution wildcard *, ?, [] treated as a pattern is replaced by an alphabetical...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 2 UNIX, basic commands January 23, 2006Announcements Any problems when playing with UNIX? Class email lists for announcements, answering common questions if you didnt get the 2 emails I sent, it is your re
U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 13 shell programming: loops March 15, 2006Outlineloops (KW Ch.9)for while untilbackground processing parse parameters: getopts midtermLoopSometimes you want to do something many times Loop for a set numb
U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 5 Files February 1, 2006OutlineManaging files: cp, rm, mv, lp, ln File attributes File name substitutionCopying files: cpcp [i] oldFileName newFileNamecopies oldFileName to newFileName if newFileName alrea
U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 15 your environment March 22, 2006announcementsguest lectureProf. David Lin Perl April 5Outlinevariablespass value special: PATH, .subshells KW Ch.12 shell login sequence startup filesvariables: local
U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 12 shells, shell programming: passing arguments, if, debug March 13, 2006Outlineshells shell programmingpassing arguments (KW Ch.7) exit status if (KW Ch.8)testdebugthe relationship of shell functionalit
U. Memphis - COMP - 4262
COMP 4262/6262 Programming UNIX Spring 2006Junmei Zhu, Ph.D.Contact Information:Office: 216A Dunn Hall Phone: 678-1539 E-mail: jzhu@memphis.edu Department Office: 209 Dunn Hall Department Phone: 678-5465Office Hours:Monday Tuesday Wednesday 2
U. Memphis - COMP - 4030
COMP 4/6030: Introduction to AlgorithmsLecture 3 January 25, 2006OutlineUse a simple problem (search) to show (continue)Analysis (running time) Correctness Design (divide and conquer) OptimalityGrowth of functionsAnalysis (running time)Cou
U. Memphis - COMP - 4030
COMP 4/6030: Introduction to AlgorithmsDynamic programming I March 27, 2006announcementsREGISTRATION NOTICESummer/Fall 2006 Regular Registration by Student Classification April 3 14. Logon to http:/www.enrollment.memphis.edu/registrar/r_cente
U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 21 C Programming Tools April 17, 2006OutlineUnix programming philosophy C programming toolscompilationsingle-module programs multi-module programsdebugging maintaining large multi-module programsthe unix
U. Memphis - COMP - 4030
COMP 4/6030: Introduction to AlgorithmsRecurrence February 1, 2006Announcementmidterm after spring break?Algorithm 1: sequential searchint seqSearch(E,n,K)i=-1; for (idx=0; idx&lt;n; idx+) if (K=E[idx]) i=idx; break; return i;Recurrence sequ
U. Memphis - COMP - 4030
COMP 4/6030: Introduction to AlgorithmsSorting III February 15, 2006Outline4 sorting algorithmsInsertion sort Quick sort Merge sort Heap sortLower bound AimsCorrectness Analysis (running time) Design (divide and conquer) Different algorithms
U. Memphis - COMP - 4030
COMP 4/6030: Introduction to AlgorithmsGraph Optimization Problems &amp; Greedy Algorithms II March 22, 2006OutlineOptimization problems Greedy algorithms (16.2) Minimum Spanning Tree (ch. 23) Single-source shortest path (ch. 24) AimsDesign strateg
U. Memphis - COMP - 4262
COMP 4/6262: Programming UNIXLecture 3 File systems January 25, 2006OutlineUNIX file hierarchy Working with directoriescurrent working directory, home directory pathnames list directory: ls (learn commands in general) cd, mkdir, rmdirWorking w
U. Memphis - COMP - 4030
COMP 4/6030: Introduction to AlgorithmsLecture 2 January 23, 2006OutlineUse a simple problem (search) to show Correctness Analysis (running time) Design (divide and conquer) OptimalityProblemProblem: Search an ordered array Input: an arr
U. Memphis - FIR - 3710
Spring 2007 FIR 3710 Investments Fogelman College of Business and Economics University of Memphis Instructor: Dr. Christine X. JiangCourse Description: Major topics covered in this course include in-depth discussions on valuations of financial clai
U. Memphis - FIR - 8820
Fall 2000, University of Memphis Course Title Instructor Class Schedule Office Hours Empirical Research in Finance (FIR 8820) Dr. Christine X. Jiang Wednesday 1:10 4:10 pm Tuesday 3:00 5:00 pm Business Building, Room 421 Telephone Number: 678-5315
U. Memphis - FIR - 8
Investment Seminar Review Questions Lan Yu Bodurtha, James N. Jr., Dong-Soon Kim and Charles M.C. Lee, 1995, Closed-end country funds and U.S. market sentiment, The Review of Financial Studies 8, No.3, 879918. Q 1: What the main purpose of this artic
U. Memphis - FIR - 3710
Practice Questions: Quiz 2 FIR 3710, Investments 1. The holding period return is the rate at which the investor's funds have grown over the _. A) last year B) last quarter C) last month D) investment period 2. A probability distribution for HPRs lets
U. Memphis - FIR - 7410
General Electric Co. (GE) GE: Reducing 2003 EPS from $1.85 to $1.78 due to Short Cycle Units: Retain RLAnalyst Comment7:28 AM - September 4, 2002 Recommended List Large-Cap Growth Price: US$28.46 United StatesCapitalizationMarket cap Latest net d
U. Memphis - CE - 7137
Time History Selection and ScalingC. B. Crouse URS CorporationPresentation Base-Isolation Case History (L.A.) Criteria Approach Results Questions and IssuesFault MapCriteria H comp. 7 pairs real accelerograms Fit CriteriaTarget Sa
U. Memphis - CE - 3131
CIVL 3131 HomeworkSpring, 2006Introduction1.5-1 A tensile test was performed on a metal specimen with a circular cross section. The diameter was measured to be 0.550 inch. Two marks were made along the length of the specimen and were measured t
U. Memphis - CE - 7119
CIVL7119/8119 Homework Set 14Use an idealized SDOF model subjected to IMPVAL1.acc. Use the computer program NONLIN to obtain the displacement, shear force and number of yield events and the corresponding values similar to the class notes. Determine
U. Memphis - CE - 7137
CEE 526 Geotechnical Earthquake EngineeringDynamic Soil PropertiesUniversity of WashingtonWaves in the EarthSite Soil RockFault1Waves in the EarthSoilEarthquakeWaves in the Earth2Waves in the EarthWaves in the Earth3Waves
U. Memphis - CE - 7137
Selection of Ground Motion Time Histories Using the CSMIP-PEER Design Ground Motion Library (DGML)Robert Youngs Geomatrix Consultants November 18, 2005The DGML Concept Develop specific sets of time histories judged suitable for dynamic analyses f
U. Memphis - CE - 7137
Time Series Selection and Modification Summary of Working Group Meeting 10am 2pm May 15, 2006 PEER HeadquartersParticipants: Norm Abrahamson, Yousef Bozorgnia, Brian Chiou, Allin Cornell, Christine Goulet, Curt Haselton, Nico Luco, Tom Shantz, Pols
U. Memphis - CE - 7137
SEISMIC REFRACTION ANALYSIS OF LANDSLIDESCharles F. Narwold and William P. Owen Geophysics and Geology Branch California Department of Transportation Sacramento, CA 95864 cnarwold@dot.ca.gov, bill.owen@dot.ca.gov Abstract Seismic refraction has prov
U. Memphis - CE - 7137
U. Memphis - CE - 7137
GEOPHYSICS, VOL. 64, NO. 3 (MAY-JUNE 1999); P. 800808, 7 FIGS.Multichannel analysis of surface wavesChoon B. Park , Richard D. Miller , and Jianghai XiaABSTRACTThe frequency-dependent properties of Rayleigh-type surface waves can be utilized
U. Memphis - CE - 7137
Probabilistic Seismic Hazard AnalysisOverview History 1969 A. Cornell BSSA paper Rapid development since that timeProbabilistic Seismic Hazard AnalysisOverview Deterministic (DSHA) Assumes a single scenario Select a single magnitude, M Select a
U. Memphis - CE - 7137
Equivalent SDOF Systems to Simulate MDOF System BehaviorErol KalkanPEER-GMSM, Berkeley Aug-21 2006 PEERAug-How to find equivalent SDOF systems via Pushover analysis:MDOF system seismic behavior can be approximated with certain accuracy by equiv
U. Memphis - CE - 7137
Comparative Study of the Refraction Microtremor (ReMi) Method: Using Seismic noise and standard P-wave refraction equipment for deriving 1-D S-wave profilesSatish Pullammanappallil and Bill HonjasOptim LLC, Reno, Nevada, USAJohn N. LouieUnivers
U. Memphis - CAS - 2
CV for Heather Larsen-Price | The University of MemphisPage 1 of 4CURRICULUM VITAEName: Heather Larsen-Price Department:POLITICAL SCIENCEEDUCATIONDEGREES Ph.D. M.A. B.A. DISCIPLINE Political Science Political Science Political Science INSTITU
U. Memphis - CAS - 2
JASON M. SONNENFELT431 Alexander Street Memphis, TN 38111 (540) 558-8194 jsonnenfelt@gmail.comCURRENT POSITIONInstructorUniversity of Memphis, Division of Public and Nonprofit Administration Memphis, TN 8/2008 to present EDUCATIONVirginia Pol
U. Memphis - CAS - 2
POLS 1501 Introduction to International Relations GSIS Section Summer 1, 2008 Class Time: Monday-Friday, 8:55-10:35, Instructor: Dr. Robert Blanton Office: Clement 405 Office Hours: by appointment Phone: 678-3364 e-mail: rblanton@memphis.edu Course
U. Memphis - CAS - 2
Community Assessment 1 Running head: COMMUNITY ASSESSMENT OF 38111A Community Assessment of 38111, the University District University of Memphis Loewenberg School of Nursing Spring 2007 Maryl Dyke, Matt Hargrove, Megan Harris, Jordan Isaac, Jamie P
U. Memphis - CAS - 2
Spring 2002Volume 20, Number 2CROW Hosts Forum for LatinasOStandPoint now replaces Center News as the newsletter of the Center for Research on Women at The University of Memphis. It is also available on the web athttp:/cas.memphis.edu/isc/cro
U. Memphis - CAS - 2
Wood* * * * * * * * *John WoodTHE SCENT OF SEAHe carefully read the description in the auction catalogue, breathing hard the whole time, feeling a kind of racing in his chest like he felt when we went to certain bars where women took their clot
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
U. Memphis - CAS - 2
THE UNIVERSITY OF MEMPHIS APPLICATION FOR ADMISSION TO MASTER OF PUBLIC HEALTH (MPH) PROGRAM(In addition to the MPH program, applicants must apply to the U of M Graduate School). http:/academics.memphis.edu/gradschool/elecapplic.html Complete this f
U. Memphis - CAS - 2
Governor's School for International Studies University of Memphis Dr. Austin Ahanotu Professor Emeritus GOVERNMENTS OF THE WORLD POLS 1301 COURSE DESCRIPTION: At the heart of the question of politics is &quot;Who should govern the sovereign nation-state a
U. Memphis - CAS - 2
Economics 2120-160: Introduction to Microeconomics Summer Semester 2008 MTWRF, 12:50 pm 2:30 pm CRN 53033 Instructor Office Voice Fax Email Office Hours Text Dr. Douglas Campbell Fogelman Executive Center (FEC) Room 146 901.678.3754 901.678.2685 dou
U. Memphis - CAS - 2
Are You Ready for Your Advising Appointment?When you meet with your advisor each semester to prepare for the next semesters courses, you need to be prepared so that your meeting will go well. o Schedule an appointment well in advance of your registr
U. Memphis - CAS - 2
BORNBLUM JUDAIC STUDIESSPRING 2006 STUDY TOUR OF ISRAELInformation on (JDST/ANTH 4840/6840) ISRAEL: ANTIQUITY AND MODERNITY Study tour of Israel Spring Break 2006 study tour of Israel 1. Dates: Depart Sunday, March 5, 7:25 p.m. on NW 58 to Amsterd
U. Memphis - CAS - 2
_ # of Individual Tickets at $40 each Names of Guests _ Phone # _ _ Table for 8 at $320 each Phone # _ Pork Chicken Vegetarian I will be unable to attend but wish to make a contribution to the University of Memphis College of Arts &amp; Sciences Alu
U. Memphis - CAS - 2
Chefs and ChiefsAnnual Dinner and Silent Auctionto benefit Chucalissa Indian Museumfeaturing ChefsScott Delarme Jennifer Dickerson Ryan Latrelle Scott Lenhart Chris MillerRESERVATIONS Carmen Dickerson 452-7554sponsored by the Friends of Chuca
U. Memphis - CAS - 2
U. Memphis - CAS - 2
DR. MARTIN LUTHER KING, JR. SCHOLARSHIP APPLICATIONTHE UNIVERSITY OF MEMPHIS Martin Luther King, Jr. Scholarship Application for 2006-2007Description of the Scholarship:Each year, the University of Memphis awards a number of private scholarships t
U. Memphis - CAS - 2
Criminal Justice Student AssociationReflection on Iraqfrom the Top CopApril 6 , 2006 Thursday 2:30 - 3:30 PM Michael D. Rose Theatre and Lecture HallFree and open to the university community and the publicthMike HeidingsfieldContingent Comma
U. Memphis - CPSY - 8202
ERIC Identifier: ED355457 Publication Date: 1993-00-00 Author: Kerka, Sandra Source: ERIC Clearinghouse on Adult Career and Vocational Education Columbus OH. Career Education for a Global Economy. ERIC Digest. The &quot;new economic order&quot; is a global one
U. Memphis - CPSY - 8202
MRNS Scale scores Tough 1. _ 94. A man should always try to project an air of confidence even if he really doesnt feel confident inside. 2. _ 95. I think a young man should try to become physically tough even if hes not big. 3. _ 97. A good motto for
U. Memphis - CPSY - 8202
Career adaptability: An integrative construct for life-span, life-space theoryMark L Savickas The Career Development Quarterly; Mar 1997; 45, 3; ABI/INFORM Global pg. 247Reproduced with permission of the copyright owner. Further reproduction prohi