5 Pages

unix_007

Course: EE 2381, Fall 2009
School: Cox School of Business
Rating:
 
 
 
 
 

Word Count: 1854

Document Preview

handout This focuses on UNIX survival skills. The intent is to introduce you to a select set of UNIX commands and background knowledge of UNIX so you can survive EE 2381. SEAS has a number of UNIX public compute servers, including DEC alpha, DEC Mips, Sun Sparc and more recent SGI architectures. There are also a number of PC's based labs. All UNIX files are stored an a central file server. This allows one to logon...

Register Now

Unformatted Document Excerpt

Coursehero >> Texas >> Cox School of Business >> EE 2381

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.
handout This focuses on UNIX survival skills. The intent is to introduce you to a select set of UNIX commands and background knowledge of UNIX so you can survive EE 2381. SEAS has a number of UNIX public compute servers, including DEC alpha, DEC Mips, Sun Sparc and more recent SGI architectures. There are also a number of PC's based labs. All UNIX files are stored an a central file server. This allows one to logon to any computer server and have complete access to all of your files. One can also access these files from a SEAS networked PC, but it may require some setup to do this. There are a number of public terminals and printers through out SEAS. Public terminal areas include 316 Caruth Hall, the open area in the SIC building and the Patterson labs. You can use any public terminal and you are allowed to print on any printers located in public areas, provided that you are within your paper quota. Generally speaking, there is at least one printer in each of the public areas. You can also access the computer servers from the dorms. Verilog only runs on the Sun Sparc machines "nova" and "pulsar". In the lab, you will need to logon to a PC and then access one of these machines. Since you will need a gui (graphical window), you will need to start the program called "exceed" from the start button on the PC. Once "exceed" is started, say yes to using jobber and this should bring up a "chooser" which lists a number of different machines that you can access. Chose either "nova" or "pulsar". To begin with, you have been assigned a SEAS UNIX account. While you may have accounts on other SMU UNIX machines, you will need to use your SEAS UNIX account to logon to a PC in the lab. To login, you will need to provide your account name and then provide the correct password. If you have forgotten your account name, I can look it up for you. If you have forgotten your password, you will need to contact a SEAS computer operations manager and have them reset your password for you. It is a good a idea to change the password on your account on a regular basis. When selecting your password, it helps to use both upper and lower case letters, some digits and other printable characters. Some control codes can be used, but you do need to be careful as some telnet connections "eat" select control codes. To change your password, use the command yppasswd at the UNIX prompt. To get details on how to use yppasswd, use the command man yppasswd Note that it may take several seconds before it is displayed. Also note that there is a related command called passwd that can only change a local password (which you do not have). UNIX has a substantial amount of documentation on-line, you just need to know how to access it and where to look. On-line help is called the "man pages" because historically, they could be printed to form a manual. The general form for accessing a man page for the command command_name is man command_name How do you figure out the name of a command? By using either the command man -k query or apropos query all of the header information for each man pages will be searched for the word "query" and displayed. So if you wish to see what editors have man pages, type the command man editor and you will get 31 listings. Note that some may be duplicate listings. If you are interested in learning more about man, type the command man man and you will probably see more than you ever wanted to know about man. When you login to your UNIX account, you are placed into you "home" directory. From your home directory, you may have several sub-directories which in turn may have sub-directories. To change to a subdirectory named files located in your home directory, use the Change Directory command as cd files Note that you can always return to your home directory using the Change Directory command invoked as cd To see the name of the directory in which you are currently located, use the Print Working Directory command pwd In UNIX, the current working directory (the one you are currently in) is referred to as "." while the parent of the "." directory is "..". So if you wish to return to the parent directory of file in the example above, you can use the command cd .. which would return you to your home directory. Directories contain files and directories (and a few other exotic entries such as sockets, symbolic links and FIFOs). To list the contents in a directory, use the LiSt command ls Since this is one of the most frequently used UNIX commands, it would be a good idea to read the man pages on ls to see what options it has. In general options are activated via flags appended to the command. For example, one of my favorite options is -F which tells ls to indicated the type of directory entry by adding a special character at the end of the file name. To use this command, type ls -F I like it as it helps me to quickly distinguish files from directories and shows which files are executable. To remove a file named old_file, use the ReMove command as rm old_file To MoVe a file named old_file into a sub-directory named folder which is contained in the current directory, use mv old_file folder Note that if there was no sub-directory folder, named this would have the effect of renaming old_file as folder. A safer way to move the file old_file is to invoke the command as mv old_file folder/ The "/" at the end of folder makes sure that you intend the file old_file to be moved to the directory folder. To make a directory named new_folder in your current working directory, use the MaKe DIRectory command as mkdir new_folder To remove this directory use either the ReMove DIRectory command as rmdir new_folder or use the rm command as rm -r new_folder Note that there is a difference between the two commands. The rmdir command assumes that the directory to be deleted is empty while the rm command will remove the directory new_folder as well as all of its contents. Unix has the ability to redirect input and output of programs, just as DOS does. Suppose that prog is a program whose output appears on the screen (called stdout). Then the command prog > data will redirect the output of prog from the stdout into the file named data in the current working directory, provided that the file data does not exist (and technically your noclobber flag is set for your shell). Now suppose that prog also takes input from the keyboard (called stdin). You can redirect the input to a file named commands via prog < commands To do both simultaneously, use prog < commands > data Next, suppose that you want the output of the program named prog to be modified by another program named prog-jr. Assuming that prog-jr has its inputs coming from the stdin and its output going to stdout. Then you can "pipe" the output of prog into prog-jr as prog | prog-jr Note that "|" denote a pipe whose input is stdin and whose output is stdout. What the pipe does is connect the stdout of one process to the stdin of another process. Finally, suppose you want the input of prog to be the file commands and you want the overall output to be sent to the file data. This can be accomplished several ways: prog < commands | prog-jr > data cat commands | prog | prog-jr > data cat commands | prog | prog-jr | tee data Here the command cat says to direct the contents of the file commands to the stdout while tee makes two copies of its input one goes to the screen while the other goes to a file named data. Unix is a multi-tasking, multi-user OS. Hence you can (and do) have several process running at simultaneously. A process or job is in the foreground when it controls access to the terminal screen and keyboard. A foreground job can be suspended with a "^Z" command. This immediately stops a job, but it may have queued up output for the terminal which will continue to print until gone. You can now go on to another task if you wish with this job suspended. Execution of the job can be resumed by issuing a ForeGround command as fg Alternatively, you may continue to execute the job in the background by issuing a BackGround command bg At any point in time, you can bring a background job to the foreground, but you first need to identify this job. This is accomplished using the command jobs which will list all of your current jobs. Identify which one you wish to resume execution,...

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:

Cox School of Business - CSE - 3100
Cadence Verilog-XL Tutorial This experiment will serve as an introduction to the use of the Cadence Verilog-XL simulation environment and as a design. The Cadence design tool suite is installed on the SUN workstations on our network. We will use be u
Cox School of Business - CSE - 1331
CSE 1331 Introduction to Internet Programming Fall 2004This course is designed to prepare you for the world of web development. After completing this course you should be comfortable working with end users in the design of web sites and with technol
Cox School of Business - EE - 3372
&quot;'A5S.:).-.~-f5;:(w-.~ ~ ~-.s~r,7-1;(CI)-i:3f;1&lt;i- C &quot;3&gt;+-i~L-k~ft.=(}3&gt;J- /II,-/ry bk~k.3i--Jzo/pk:.LI - e,&quot;I,/eJ--j4-]J;,J2-j~k7&lt;:.e'/u'7~ .JOioO}2-&quot;D'IH;7~ 4- -=- &lt;{ . 2.S?g-; ipo'01.
Cox School of Business - CSE - 3358
CSE3358 Problem Set 1 01/14/05 Due 01/21/05 Please review the Homework Honor Policy on the course webpage http:/engr.smu.edu/~saad/courses/cse3358/homeworkpolicy.html Problem 1: Bubble sort We have studied Insertion sort in class and argued that it w
Cox School of Business - CSE - 7320
CSE 7320 Artificial IntelligenceIntroductionOutlineCourse overview What is AI? A brief history The state of the art21/20/2009CSE7320 Spring 2009Course overview Course web site: http:/lyle.smu.edu/~yuhangw/ classes/cse7320_s09/index.htm c
Cox School of Business - PHYSICS - 1408
HW #11 SolutionsCQ 6. (a) Two waves interfere constructively if their path difference is either zero or some integral multiple of the wavelength; that is, if the path difference is m, where m is an integer. (b) Two waves interfere destructively if t
Cox School of Business - ACCT - 2312
Fundamentals of Accounting II Accounting 2312 HONORS SECTION Spring 2003 Instructor: Michael F. van Breda Office: 372 Crow email: mvanbred@mail.cox.smu.edu Office Hours: Tuesday, 10:00 - 11:30 AM Additional times by appointment as necessary. Phone: 7
UCSC - GMCGUIR - 1
Attention and perceptual learning 1Selective attention and English listeners' perceptual learning of the Polish post-alveolar sibilant contrastGrant McGuire grantmcguire@berkeley.eduDepartment of Linguistics University of California at Berkeley
UCSC - PHYS - 214
The Formation of Massive StarsMark Krumholz UC Santa CruzCollaborators: Richard Klein, Chris McKee, Stella Offner (UC Berkeley) Andrew Cunningham (LLNL) Kaitlin Kratter, Chris Matzner (U. Toronto) Jim Stone (Princeton) Todd Thompson (Ohio State) FL
UCSC - CMPS - 080
Final Exam Questions/TopicsProf. Jim Whitehead CMPS 80K, Winter 2006Final Exam The final exam for CMPS 80K is Thursday, March 23, at 12noon, in Classroom Unit 1. The exam will consist of a written portion and an experience portion Written exam
UCSC - BIO - 136
Dissection guide for Mytilus californianus and Venus merceanariaEach student (along with their partner) should accomplish the following during the lab: 1. Sketch the external anatomy of your animal (shell, ligament etc.) 2. Sketch the generalized in
UCSC - CMPS - 012
Kinds of DataOperations on ClassesExample: Bank AccountsExample: Bank Accountsclass BankAccount { public int balance; public BankAccount() { balance = 0; } public void deposit(int amount) { balance = balance + amount; } }Using Bank Accounts
UCSC - CMPS - 060
Method Intro (starting Ch. 4) Another way to alter flow of control Methods are called, and return control to the calling location when they finish (methods can also call other methods - the &quot;call stack&quot;) Methods can take parameters (input values)
UCSC - CMPE - 173
ML52x User GuideVirtex-5 RocketIO Characterization PlatformUG225 (v1.0) March 2, 2007R0402527-01RXilinx is disclosing this Document and Intellectual Property (hereinafter &quot;the Design&quot;) to you for use in the development of designs to opera
Cox School of Business - ANTHCF - 3388
(Topic 3)Theoretical PerspectiveIncluding: 1. Model of societal types 2. Systems model 3. Population model(based on Chap. 2 in Indigenous South Americans of the Past and Present, by DJW, Westview Press, 2000)Theoretical Perspective1. Types of
Cox School of Business - ANTH - 3313
Waterfalls are sacred places, and are conceived of by the Makuna as houses of the ancestors and waking-up places of the dead.Rapids and waterfalls keep away the destructive impact of the outside world.A longhouse at dawn. The towering peach palms
Cox School of Business - ENGL - 4346
UCSC - PAE - 0301
PAE0301.t06 dssp-ehl22 1110203040E 2 1HEEHH 2 1EHH101110120130140H 2 1EH151E160EV S LEAGR LRS150LL V NMRSG KQGKNLLGWYRDLANRYQK L VN A AL A L DI E P T II G K L KD K W K1005160708090
UCSC - CMPE - 110
CMPE 110 Spring 2005 Homework 5 Single-Cycle CPU Show ALL your work neatly.Name_ Email_ Partners_1. 3 points Encode the instructions below in MIPS binary format. For each instruction, identify its format (type) and the addressing mode(s) used
Cox School of Business - CHEM - 1304
Name (print) Quiz 1 1. 10 points for email.2.KEY Chemistry 1304.002Seat number January 28, 2009points)Clearly SHOW ALL WORK in a stepwise fashion! (No work, no units, no credit.) Calculate the amount of water(in grams) that must be added to
Cox School of Business - FINA - 6230
COMPANY REPORT Connetics Corporation(CNCT1,3,5,7Angela Larson$19.50) BUY212-389-8113 alarson@unterberg.comInitiation of Coverage with a BUYWe initiate coverage of CNCT Shares with a Buy rating and a $26 price target. Key Data52-Week Range
UCSC - BIO - 136
Page 1 of 9Biology 136L Invertebrate zoology lab Cnidarian diversity lab guide Author: Allison J. GongFigure source: Brusca and Brusca, 2003. Invertebrates, second edition. Sinauer Associates, Inc. INTRODUCTION Cnidarians are some of the most con
UCSC - CMPS - 290
A General Imaging Model and a Method for Finding its ParametersMichael D. Grossberg and Shree K. Nayar Department of Computer Science, Columbia University New York, New York 10027 mdog, nayar @cs.columbia.eduAbstractLinear perspective projection h
UCSC - AMS - 211
UCSC - AMS - 256
ENG-256: Linear ModelsENG-256: Linear ModelsHypothesis testing for the difference of two population means A study is conducted to assess the differences in performance during the first years of services between employees that stayed in a certain
UCSC - CMPS - 101
A Discipline of Data Abstraction using ANSI CAllen Van Gelder University of California at Santa Cruz Sep. 25, 2001Contents1 Information Hiding 2 Abstract Data Types2.1 ADT Interfaces 2.2 Reference Types and Handles 3.1 3.2 3.3 3.4 Type Declarati
UCSC - AMS - 007
UCSC - ISM - 050
ISM 50 - Business Informat on Systems Bus ness InformationLecture 11 Instructor: John Musacchio UC Santa Cruz November 1 2007 1,Student TalksRyan Gray (Business paper) Charles Baker (Business paper)Sun Case(continued)What problems did the mi
UCSC - CHEM - 200
From the Cover: The 15-K neutron structure of saccharide-free concanavalin A M. P. Blakeley, A. J. Kalb, J. R. Helliwell, and D. A. A. Myles PNAS 2004;101;16405-16410; originally published online Nov 3, 2004; doi:10.1073/pnas.0405109101 This informat
UCSC - CMPE - 112
UCSC - CMPE - 112
CMPE112 Spring 2008 Name: _ Homework 3 - Due Tuesday, April 22, 2008This homework relates to the following program. The label start is located at address 0x00400038. start: A: B: C: D: E: lw $t0, 0($a1) lw $t1, 0($a0) add $t2, $a0,
Illinois State - PH - 270
Physics270Problem2.6Spring2009 Homework#1Answers Hereisahistogramforthe80numbersgiven.Thenumbersrangefrom22to91Ihave chosenastepsizeof5forthebins.Thebincentersareatthe2.5and7.5pointsforeach decade,42.5and47.5,forexample. 2.1, Themeanisgivenb
Illinois State - CI - 091
DEPARTMENT OF CURRICULUM AND INSTRUCTION ILLINOIS STATE UNIVERSITY COURSE SYLLABUS C &amp; I 110 Section 02 Course: Introduction to Multicultural Education Credit: 3 Semester Hours Schedule: Thursdays 5:30 p.m., DeGarmo Hall 209 Instructor: Drs. Temba Ba
Illinois State - HIM - 2005
Student Learning Outcomes Bachelor in Health Information Management Department of Health Sciences College of Applied Science and TechnologyUpon successful completion of the Health Information Management degree requirements, a graduate will be able t
Illinois State - COE - 072
Illinois State University Department Name Educational Administration and Foundations Date` Summer, 2007 Course Number EAF 596 Course Title Credit Hours Contact hours Prerequisites Catalog Description Course Overview Negotiated Agreement Administratio
Illinois State - COE - 061
EAF 462 THE ORGANIZATION AND ADMINISTRATION OF STUDENT AFFAIRS FUNCTIONS IN HIGHER EDUCATION Spring 2006 Tuesdays, 5:30pm-8:20pm 219 Stevenson Hall Instructor Dr. Phyllis McCluskey-Titus 340B DeGarmo Hall 438-5989 pamcclu2@ilstu.edu Office hours by a
Illinois State - ITK - 328
Illinois State UniversityITK 328, Spring 2007Introduction to The Theory of ComputationMW OU-213E 9:3510:50 AM (Sec 1)/ STV-108 2:003:15 PM (Sec 2) Instructor: Chung-Chih Li, Ph.D. Office: Old Union 105 Office Hours: MTWT, 11:00 AM 12:00 PM or by
Illinois State - CHE - 17
Chapter 17 Sheet 11Reaction Extravaganza1) Give the products for the reactions shown below.O a) O F3C O O H O Ob)O Cl1) LiAlH(O-tert-butyl)3 2) H2O OO Hc)H2SO4, H2O HgSO4d)O P O OH OCH3 1) PCl5Benzene = phenyle)O H OCH3
Illinois State - CHE - 232
Chapter 17 Sheet 11Reaction Extravaganza1) Give the products for the reactions shown below.O a) O F3C O O H O Ob)O Cl1) LiAlH(O-tert-butyl)3 2) H2O OO Hc)H2SO4, H2O HgSO4d)O P O OH OCH3 1) PCl5Benzene = phenyle)O H OCH3
Illinois State - MATH - 119
Working with exponential functionsNAME:1. Complete the table. Then plot and connect the points to form a graph of f ( x ) = 3 x . x -2 f (x ) = 3 x-10122. Complete the table. Then plot and connect the points to form a graph of f ( x ) =
UCSC - PHYS - 195
ON THE PROPERTIES OF THESIS REMNANTS: HOW TO GET IT ALL DONEA Thesis Submitted in Partial Satisfaction Of the Requirements for the Degree of Bachelor of Science in Physics at the University of California, Santa CruzBy I. M. Desperate June 1, 20
Illinois State - COE - 091
EAF 228 Social Foundations of Education Spring 2009Professor: Isaura B. Pulido Office: 327 DeGarmo Hall Office hours: Mondays 10-12 and by appt. Section: 002 TTR from 11-12:15 Section: 006 TTR from 2-3:15Phone number: 438-2049 E-mail: ipulido@ils
Illinois State - SKHUNT - 2
Communication 110, Communication as Critical Inquiry2008-2009Political Engagement Project Activities and Assignments to Accompany Communication 110 ConceptsActivities compiled by Laura HickeyImplementing PEP in COM 110 TABLE OF CONTENTS2U
Illinois State - OCR - 2
23 ILLINOIS ADMINISTRATIVE CODE SUBTITLE A TITLE 23:CH. I, S. 200 SUBCHAPTER eEDUCATION AND CULTURAL RESOURCES SUBTITLE A: EDUCATION CHAPTER I: STATE BOARD OF EDUCATION SUBCHAPTER e: INSTRUCTION PART 200 SEX EQUITYSection 200.10 200.20 200.30 2
Illinois State - CHE - 45404
CHE 454.04 F2004FerrenceHomework 4 NMR Coupling, Shifts and Constants Crib 1. TeF5- has a square pyramidal structure, so four fluorine atoms are equivalent and the fifth is unique. The result is a doublet (-3131 and -3182 Hz) and a quintet (othe
UCSC - FILM - 20
introduction to digital mediafdm 20cspring 2008attendanceName Year email Enrolled or waiting? Major (or intended) Transfer or exchange?What do you think of as digital media? (a phrase or sentence)attendanceranking seniors who need this as t
UCSC - ECON - 143
Indicators of Globalization and PovertyOverviewQuestions for GlobalizationWhat is economic globalization? Factors deriving globalization? How do we measure globalization?What is economic globalization?Increasing international integration of:M
Illinois State - CI - 091
Page |1SyllabusReading in the Content Areas of Secondary Education C&amp;I 214 (3 semester hrs.) Section 05 TR 3:30-4:45, UHS 244 Instructor: Kathleen Malone Clesson, BA/M.Ed/NBCT Students needing special accommodations should contact 438-5853 (voice)
Illinois State - PHY - 111
UCSC - ISM - 050
Who am I?ISM 50 - Business Information SystemsIntroduction Instructor: John Musacchio UC Santa Cruz 9/22/2005John Musacchio New Assistant Professor in ISTMJoined January 2005PhD from Berkeley in Electrical Engineering Experience2 years at a St
UCSC - ISM - 050
IntroductionThe College Tour Goes High-TechBy Katie Paul | Newsweek Virtual college fair Live video interaction Admissions (How to guides) Professionals (Career pannels) Experts (Presentations) Students (Chats)Zack JiangSupply Chain Mana
Saint Louis - READINGLIS - 9
Urban Sprawl and Public HealthHEES October 4, 2001Richard Jackson, M.D., M.P.H. National Center for Environmental Health Howard Frumkin, M.D., Dr.P.H. Rollins School of Public HealthAgenda1. Background: &quot;Urban form&quot; as a public health issue 2. S
Saint Louis - EASA - 130
Seismology of Nuclear Explosions, EAS-130, Spring 2008Instructor: Dr. Keith Koper, koper@eas.slu.edu, 977-3197 (voice), 977-3117 (fax) Lectures: MWF, 9:00-9:50, O'Neill 206 Office Hours: M, 1:00-2:00, or by appointment, O'Neill 202 Class Web Page: h
Saint Louis - PREP - 05
Orthogonal Matrices and Rotations in R3Worksheet by Frank Rooney O restart: with(LinearAlgebra): with(plots): with(plottools): Warning, the name changecoords has been redefined Warning, the assigned name arrow now has a global bindingOutlineThe o
Uni. Worcester - CS - 1102
CS1102, A07 Final ExamName:Problem 1 2 3Points 35 30 35 TotalScoreYou have 50 minutes to complete the problems on the following pages. There should be sufcient space provided for your answers. Test cases and function contracts are not requi
Uni. Worcester - CS - 1102
CS1102: Adding Error Checking to MacrosKathi Fisler, WPI October 6, 20081 Typos in State MachinesThe point of creating macros for state machines is to hide language details from the programmer. Ideally, a programmer shouldnt need to know anything
Uni. Worcester - CS - 25
CS1102: Adding Error Checking to MacrosKathi Fisler, WPI October 6, 20081 Typos in State MachinesThe point of creating macros for state machines is to hide language details from the programmer. Ideally, a programmer shouldnt need to know anything
Uni. Worcester - CS - 3733
Diagram1ClassClass Diagram1Diagram Content Summarylogbookrules logentry logobjects primarytypes reportingDiagram Content Detail Package logbookrulesDocumentation The logbookrules package provides the computations needed to validate exercise
Uni. Worcester - CS - 280
Uni. Worcester - A - 2135
CS2135: Introduction to StreamsKathi Fisler, WPI February 14, 20031 The Never-Ending Traffic LightOur monitor application is coming along well. We have a fast implementation and a nice syntax that can interface to either data definition. What els
Uni. Worcester - CS - 4731
CS 4731: Computer Graphics Lecture 4: 2D Graphic Systems Emmanuel Agu2D Graphics: Coordinate Systemsn n n n nScreen coordinate system World coordinate system World window Viewport Window to Viewport mappingScreen Coordinate SystemScreen: 2D