I zm ir I nstiute of Technology CS Lecture Notes are based on the CS 101 notes at the University of I llinois at Urbana-Cham paign

Similar documents
Building Validation Suites with Eclipse for M odel-based G eneration Tools

A L A BA M A L A W R E V IE W

Th e E u r o p e a n M ig r a t io n N e t w o r k ( E M N )

OH BOY! Story. N a r r a t iv e a n d o bj e c t s th ea t e r Fo r a l l a g e s, fr o m th e a ge of 9

Alles Taylor & Duke, LLC Bob Wright, PE RECORD DRAWINGS. CPOW Mini-Ed Conf er ence Mar ch 27, 2015

Table of C on t en t s Global Campus 21 in N umbe r s R e g ional Capac it y D e v e lopme nt in E-L e ar ning Structure a n d C o m p o n en ts R ea

T h e C S E T I P r o j e c t

S U E K E AY S S H A R O N T IM B E R W IN D M A R T Z -PA U L L IN. Carlisle Franklin Springboro. Clearcreek TWP. Middletown. Turtlecreek TWP.

C o r p o r a t e l i f e i n A n c i e n t I n d i a e x p r e s s e d i t s e l f

Agenda Rationale for ETG S eek ing I d eas ETG fram ew ork and res u lts 2

S ca le M o d e l o f th e S o la r Sy ste m

Form and content. Iowa Research Online. University of Iowa. Ann A Rahim Khan University of Iowa. Theses and Dissertations

What are S M U s? SMU = Software Maintenance Upgrade Software patch del iv ery u nit wh ich once ins tal l ed and activ ated prov ides a point-fix for

Spontaneous reactions occur only between the reactants shown in red.

EKOLOGIE EN SYSTEMATIEK. T h is p a p e r n o t to be c i t e d w ith o u t p r i o r r e f e r e n c e to th e a u th o r. PRIMARY PRODUCTIVITY.

176 5 t h Fl oo r. 337 P o ly me r Ma te ri al s

Gen ova/ Pavi a/ Ro ma Ti m i ng Count er st at Sep t. 2004

Lan Performance LAB Ethernet : CSMA/CD TOKEN RING: TOKEN

THIS PAGE DECLASSIFIED IAW E

LSU Historical Dissertations and Theses

ARC 202L. Not e s : I n s t r u c t o r s : D e J a r n e t t, L i n, O r t e n b e r g, P a n g, P r i t c h a r d - S c h m i t z b e r g e r

Results as of 30 September 2018

The Ind ian Mynah b ird is no t fro m Vanuat u. It w as b ro ug ht here fro m overseas and is now causing lo t s o f p ro b lem s.

Recurrent Neural Network

Geometric Predicates P r og r a m s need t o t es t r ela t ive p os it ions of p oint s b a s ed on t heir coor d ina t es. S im p le exa m p les ( i

Parts Manual. EPIC II Critical Care Bed REF 2031

Bellman-F o r d s A lg o r i t h m The id ea: There is a shortest p ath f rom s to any other verte that d oes not contain a non-negative cy cle ( can

Software Process Models there are many process model s in th e li t e ra t u re, s om e a r e prescriptions and some are descriptions you need to mode

P a g e 3 6 of R e p o r t P B 4 / 0 9

H STO RY OF TH E SA NT

M Line Card Redundancy with Y-Cab l es Seamless Line Card Failover Solu t ion f or Line Card H ardw or Sof t w are Failu res are Leverages hardware Y-

VERIZON Specific Published Vacancy

This Specification is subject to change without notice

A Comparison of Two Methods of Teaching Computer Programming to Secondary Mathematics Students.


P a g e 5 1 of R e p o r t P B 4 / 0 9

INTERIM MANAGEMENT REPORT FIRST HALF OF 2018

Use precise language and domain-specific vocabulary to inform about or explain the topic. CCSS.ELA-LITERACY.WHST D

o Alphabet Recitation

c. What is the average rate of change of f on the interval [, ]? Answer: d. What is a local minimum value of f? Answer: 5 e. On what interval(s) is f

CPU. 60%/yr. Moore s Law. Processor-Memory Performance Gap: (grows 50% / year) DRAM. 7%/yr. DRAM

THIS PAGE DECLASSIFIED IAW EO IRIS u blic Record. Key I fo mation. Ma n: AIR MATERIEL COMM ND. Adm ni trative Mar ings.

Per cent Wor d Pr oblems

Balanced Leadership Framework

Building Harmony and Success

Feasibility Analysis, Dynamics, and Control of Distillation Columns With Vapor Recompression.

Use precise language and domain-specific vocabulary to inform about or explain the topic. CCSS.ELA-LITERACY.WHST D

Chapter 5 Solutions. Problem 5.1

Lesson Ten. What role does energy play in chemical reactions? Grade 8. Science. 90 minutes ENGLISH LANGUAGE ARTS

F l a s h-b a s e d S S D s i n E n t e r p r i s e F l a s h-b a s e d S S D s ( S o-s ltiad t e D r i v e s ) a r e b e c o m i n g a n a t t r a c

You can see w h at gold is u sed f or dow n below : )

The Ability C ongress held at the Shoreham Hotel Decem ber 29 to 31, was a reco rd breaker for winter C ongresses.

COMPILATION OF AUTOMATA FROM MORPHOLOGICAL TWO-LEVEL RULES

Vlaamse Overheid Departement Mobiliteit en Openbare Werken

Fr anchi s ee appl i cat i on for m

Sp eak Ou t! WHAT M ATTERS. What mat t ers t o SpeakOut! writ ers? What mat t ers t o you? November 7, 2016

Dangote Flour Mills Plc

FOR SALE T H S T E., P R I N C E AL BER T SK

Provider Satisfaction

Syllable Division- Nonsense Words Closed. Directions: Underline the vowels. Then divide and label the syllables. 1. l a b n e t 8.

Need Help? Need Help? WebAssign Math 125 HW_1C (Homework) If f(x) = ex -

LU N C H IN C LU D E D

SMOOTH WALLBATHWARE. escape the ordinary. aquariusproducts.com

LAST TIME..THE COMMAND LINE

Classification. W hy Clas s if y? (pag e ) A s s ig n in g S c ien tif ic N am es (pag e 4 4 8) Chapter 18. Name Class Date

Subud USA National Gather ing

Fragment Processor. Textures

STANDARDIZATION OF BLENDED NECTAR USING BANANA PSEUDOSTEM SAP AND MANGO PULP SANTOSH VIJAYBHAI PATEL

Instruction Sheet COOL SERIES DUCT COOL LISTED H NK O. PR D C FE - Re ove r fro e c sed rea. I Page 1 Rev A

NMR Assignments using NMRView II: Sequential Assignments

STEEL PIPE NIPPLE BLACK AND GALVANIZED

Le classeur à tampons

USER MANUAL V1.3 CHRYSLER VEHICLES VEHICLE FLASHER

History 151 World History I

User Equilibrium in a Disrupted Network with Real-Time Information and Heterogeneous Risk Attitude

Information System Desig

UNIVERSITY OF MARYLAND DEPARTMENT OF PSYCHOLOGY PSYCHOLOGY OF INTERPERSONAL RELATIONSHIPS

K E L LY T H O M P S O N

V o l. 21, N o. 2 M ar., 2002 PRO GR ESS IN GEO GRA PH Y ,, 2030, (KZ9522J 12220) E2m ail: w igsnrr1ac1cn

REFUGEE AND FORCED MIGRATION STUDIES

Functional pottery [slide]

History 152 World History II

The Effects of Symbolic Modeling and Parent Training on Noncompliance in Hyperactive Children

University Microfilms

AD I T YA PR I N T ER S. Printing Events Branding

M M 3. F orc e th e insid e netw ork or p rivate netw ork traffic th rough th e G RE tunnel using i p r ou t e c ommand, fol l ow ed b y th e internal

CHEM 498Q / CHEM 630Q: Molecular Modeling of Proteins TUTORIAL #3a: Empirical force fields

ALMA: Im aging the co ld Univ e rs e

e-hm REPAIR PARTS REPAIR PARTS ReHM R3

Product Data Sheet KyoRack 2

e2- THE FRANKLIN INSTITUTE We" D4rL E; 77.e //SY" Laboratories for Research and Development ceizrrra L , Ps" /.7.5-evr ge)/+.

Me n d e l s P e a s Exer c i se 1 - Par t 1

Benchm ar k One St ud y Guid e: Science Benchm ar k Wed. Oct. 2nd

Running jobs on the CS research cluster

)ti bo I 9. When a quadratic equation is graphed, it creates this.

t h e c r i m i n a l l a w (T e m p o r a r y p r o v i s i o n s ) a c t,' 1957.V t -. -.» 0 [A pr N o. L X I o f 1957.] /

Yamaha Virago V-twin. Instruction manual with visual guide for Yamaha XV

Executive Committee and Officers ( )

If anything confuses you or is not clear, raise your hand and ask!

Rule-Governed Behavior in Preschool Children

Transcription:

I zm ir I nstiute of Technology CS - 1 0 2 Lecture 1 Lecture Notes are based on the CS 101 notes at the University of I llinois at Urbana-Cham paign

I zm ir I nstiute of Technology W hat w ill I learn from this Lecture? What is a program? What is a Window Manager? What is a GUI? How do you navigate the Unix/Linux directory tree? What is a wildcard? What is kate?

Hardw are and Softw are Ap p licat io n s Un ix En g in eer in g W o r k st at ion s UNI X- operating syst em / C- program m ing language / Matlab Facilit at e m ach in e in d ep en d en t p r o g r am d ev elop m en t

Softw are Co m p u t er p r o g r am ( so f t w ar e) : a seq u en ce o f in st r u ct ion s t h at t ells t h e co m p u t er w h at t o d o. A p r o g r am t ak es r aw d at a as in p u t an d p r o d u ces in f o r m at io n as o u t p u t. Sy st em So f t w ar e: Op er at in g Sy st em s Un ix,lin u x,w in d o w s,macos,os/ 2,VM/ CMS,... Ed it o r Pr o g r am s em acs, x em acs, k at e, n an o, p ico, v i,... Ap p licat io n s So f t w ar e: Tr an slat o r s an d I n t er p r et er s g cc- - g n u c co m p iler scilab - - in t er p r et er User cr eat ed Pr o g r am s!!!

X- W indow s: Linux- GUI X- w in d o w s- a W in d o w Man ag er an d GUI ( Gr ap h ical User I n t er f ace) Click st ar t an d f o llow t h e m en u s o r click o n an ico n t o r u n a p r o g r am ( in Lab # 2 y o u w ill u se t h ese f eat u r es).

Linux Com m and line I nterface To p r o d u ce a co m m an d lin e in t er f ace click x t er m ( I n Lab # 2 y o u w ill p r act ice t h e Lin u x co m m an d s p r esen t ed in t h e f o llow in g slid es). W h en t h e f o llo w in g slid es r ef er t o Lin u x co m m an d s it is assu m ed t h at t h ese ar e en t er ed o n t h e co m m an d lin e t h at b eg in s w it h t h e sy m b o l # ( n u m b er sy m b o l).

Linux file system the directory tree Dat a, in f o r m at ion, co m p u t er in st r u ct ion s, et c. ar e sav ed in seco n d ar y st o r ag e ( au x iliar y st o r ag e) in files. Files ar e co llect ed o r o r g an ized in directories. Each u ser o n a m u lt i- u ser sy st em h as h is/ h er o w n hom e directory. I n Un ix u ser s an d sy st em ad m in ist r at o r s o r g an ize f iles an d d ir ect o r ies in a h ier ar ch ical tree. seco n d ar y st o r ag e Home Directory When a user first logs in on a computer, the user will be in the users home directory. To find the name of the directory type > pwd (this is an acronym for print working directory) So the user is in the directory gturan

Linux file system the directory treec The string / hom e/ g/ gt/ gt u/ gursoy is called a pat h. The path defines the location of a file or directory in the tree known by the Unix system. For this exam ple we know that the directory tree contains the following: Th e d ir ect o r y / is called t h e r o o t d ir ect o r y. / etc hom e lib f g h gs gt gu gtu gt uran

Linux directories - Navigation We can navigate through the directories using the cd com m and. For exam ple, typing in cd.. gives

Linux directories - Navigation So t h e.. w ill t ak e u s u p o n e lev el in t h e t r ee. I f w e r ep eat ed t h is co m m an d cd..

Linux directories - Navigation Absolute and Relative Paths We are now in the / directory. To go back to our home directory : > cd ~ (tilde) or > cd or > cd gtu/gursoy (relative path) or > cd /home/g/gt/gtu/gursoy (absolute path) To go to a particular directory we can always list a path starting with the root / and going down directory by directory using the / as in the last example. This is an example of an absolute path. However since gtu is the name of a subdirectory of gt we can use a relative path gtu/gturan. Here, the symbol / does not appear before gtu.

Linux directories Viewing the contents Use t h e ls ( list ) co m m an d t o v iew t h e co n t en t s o f a d ir ect o r y. Not e t h at t h e co n t en t s o f a d ir ect o r y ar e f iles an d su b d ir ect o r ies, h o w ev er u sin g ls alon e d o es n o t d ist in g u ish b et w een t h e t w o.

Linux directories ls command general format ls options argum ent s w h er e options ar e an y co m b in at ion s o f - a List all en t r ies, in clu d in g d o t en t r ies - c List b y t im e o f last f ile ch an g e - l List in lon g f o r m at, g iv in g lin k s, o w n er, size in b y t es, an d t im e o f t h e last f ile ch an g e. - F Mar k s d ir ect o r ies w it h a / - R Also list s each su b d ir ect o r y f o u n d an d argum ents is a list o f d ir ect o r ies an d / o r f ilen am es sep ar at ed b y b lan k s.

Linux directories ls command option -la > ls - la p r o d u ces t h e o u t p u t

Linux directories ls command option -lac Th e f ir st f ew lin es o f o u t p u t f r o m t h e ls - la co m m an d ar e d escr ib ed b elo w. N o t e: t o set p er m issio n s u se t h e chm od co m m an d. - = file d = directory Permissions Links user group - rw------- 1 gturan users 57 Mar 1 22:34.xauthfhZ91X d rwxr-xr-x 2 gturan users 48 Mar 1 23:02 Arastirma size in bytes date of lasst change File name

Linux directories ls command option -la Per m ission s r - r ead w - w r it e x - ex ecu t e Per m ission s ar e assig n ed t o t h e user, group an d other users.

chmod command Fr o m slid e 1 4, if w e w an t t o r est r ict o t h er s n o t t o b e ab le t o r ead o r r u n f iles in t h e Ar ast ir m a d ir ect o r y w e w o u ld t y p e: > chm od o- rx tom To ch an g e b ack t o t h e o r ig in al st at u s, allo w in g p er m ission s t o o t h er u ser s w e w o u ld t y p e: > chm od o+ rx tom r - r ead w - w r it e x - ex ecu t e Per m ission s ar e assig n ed t o t h e u user, g group an d o other users.

Linux directories ls command wildcards I n t h e lab s st u d en t s w ill lear n t o u se k at e t o cr eat e t ex t f iles. I n p ar t icu lar scilab f iles w ill h av e n am es lik e f.sci o r test.sce o r m y.dat. C f iles w ill h av e n am es lik e f.c o r test.c. I f y o u f o r g et t h e ex act n am e o f a f ile u se > ls *.sce Th e * is a w ild car d ch ar act er m ean in g, m at ch zer o o r m o r e ch ar act er s. An o t h er w ild car d is? w h ich m ean s m at ch ex act ly o n e ch ar act er.

Linux directories more command To see t h e co n t en t s o f a f ile ( w it h o u t u sin g k at e) o n t h e t er m in al u se t h e m o r e co m m an d. $ m ore odev1.sce

Kate - editing a text file W e w ill u se t h e k at e ed it o r in CS1 0 2. To o p en k at e, p r ess ALT+ F2 an d t y p e kate.

What have I learned from this lecture? A p r o g r am is a seq u en ce o f in st r u ct ion s t h at t ells t h e co m p u t er w h at t o d o. X- W in d o w s is an ex am p le o f a W in d o w Man ag er. GUI m ean s g r ap h ical u ser in t er f ace. Yo u n av ig at e t h e Un ix d ir ect o r y t r ee b y u sin g t h e cd co m m an d. A w ild car d is a ch ar act er su ch as * o r? ( in Lin u x ) t h at ar e u sed t o m at ch f ilen am es o r d ir ect o r y n am es. k at e is an ed it o r. Ef f ect iv e u se o f t h is ed it o r m ean s n o t clo sin g it u n t il y o u h av e f in ish ed y o u r p r o g r am m in g session.