240-491 adv. unix: prelim/01 advanced unix v who i am: –andrew davison coe, info. eng. research...

15
40-491 Adv. UNIX: Prelim/0 Advanced UNIX Advanced UNIX Who I am: Who I am: Andrew Davison Andrew Davison CoE, Info. Eng. Research Lab. (Room CoE, Info. Eng. Research Lab. (Room 101) 101) [email protected] [email protected] Objectives Objectives to give some background on this subject to give some background on this subject 240-491 Special Topics in Comp. Eng. 1 Semester 2, 2000-2001 0. Preliminaries Please ask questions

Upload: eric-bryan

Post on 17-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 1

Advanced UNIXAdvanced UNIX

Who I am:Who I am:– Andrew DavisonAndrew Davison

CoE, Info. Eng. Research Lab. (Room 101)CoE, Info. Eng. Research Lab. (Room 101)[email protected]@ratree.psu.ac.th

ObjectivesObjectives– to give some background on this subjectto give some background on this subject

240-491 Special Topics in Comp. Eng. 1Semester 2, 2000-2001

0. Preliminaries

Please askquestions

Page 2: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 2

OverviewOverview

1. 1. Outline of the CourseOutline of the Course

2. 2. Meeting Time / LocationMeeting Time / Location

3. 3. WorkloadWorkload

4. 4. Course MaterialsCourse Materials

5. 5. Reading MaterialsReading Materials

Page 3: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 3

1. Outline of the Course1. Outline of the Course

UNIX (Linux) programming with:UNIX (Linux) programming with:– UNIX tools (e.g. UNIX tools (e.g. grepgrep) and shell scripts) and shell scripts– C (using its UNIX libraries)C (using its UNIX libraries)

Assumes that you have done “Introduction to Assumes that you have done “Introduction to UNIX” UNIX” – the notes are on the notes are on CentralCentral in: in:

appl\Subject.CoE\unixintrappl\Subject.CoE\unixintr

Page 4: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 4

DetailsDetails

1. 1. The File StructureThe File Structure

2. 2. The ShellThe Shell

3. 3. Regular ExpressionsRegular Expressions

4. 4. FiltersFilters

5.5. Which Shell?Which Shell?

6. 6. The Bourne ShellThe Bourne Shell

7. 7. The C ShellThe C Shell

continued

Page 5: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 5

8. 8. PerlPerl

9.9. Standard I/O in CStandard I/O in C

10.10. File ProcessingFile Processing

11.11. CursesCurses

12.12. The PreprocessorThe Preprocessor

13.13. The Standard LibrariesThe Standard Libraries

14.14. Large ProgramsLarge Programs

continued

Page 6: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 6

15.15. DebuggingDebugging

16. 16. Low-level File I/OLow-level File I/O

17.17. The File (Again)The File (Again)

18.18. The DirectoryThe Directory

19.19. User and System InformationUser and System Information

20.20. ProcessesProcesses

21.21. SignalsSignals

Overlaps with material in “Client/ServerDistributed Systems”

Page 7: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 7

3. Meeting Time / Location3. Meeting Time / Location

WednesdayWednesday 11 -- 11.50am11 -- 11.50am R204R204ThursdayThursday 9 -- 10.50am 9 -- 10.50am R204R204FridayFriday 11 -- 11.50am11 -- 11.50am R204R204

Times/locations can change if you Times/locations can change if you askask me! me!

Page 8: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 8

3. Workload (% of total score)3. Workload (% of total score)

Two Exercises:Two Exercises: 10% total10% total– each exercise is worth 5%each exercise is worth 5%

One Project:One Project: 20%20%– starts in week 13, lasts 2 weeks; C)starts in week 13, lasts 2 weeks; C)

Mid-term Exam:Mid-term Exam:30%30% (2 hours) (2 hours) Final Exam:Final Exam: 40% (3 hours)40% (3 hours)

Page 9: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 9

Non-Attendence PenaltyNon-Attendence Penalty

I may take registration at the start of a class.I may take registration at the start of a class.

If someone is not there, they lose If someone is not there, they lose 0.5%0.5%(unless they have a good excuse).(unless they have a good excuse).

A maximum of A maximum of 10%10% can be lost can be lost– deducted from final markdeducted from final mark

Page 10: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 10

4. Course Materials4. Course Materials

I will hand out one copy of my slides, the I will hand out one copy of my slides, the exercises, and the project.exercises, and the project.

The Powerpoint slides will be placed on-line The Powerpoint slides will be placed on-line on on centralcentral in in \appl\Subject.CoE\unix2\appl\Subject.CoE\unix2

\slides\slides \exercises\exercises \\projectsprojects

continued

Page 11: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 11

Examples will be placed on Examples will be placed on calvincalvin in: in:~ad/teach/adv-unix/~ad/teach/adv-unix/

Page 12: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 12

A good book on UNIX (topics 1-7 from A good book on UNIX (topics 1-7 from section 1):section 1):– A Practical Guide to the UNIX System A Practical Guide to the UNIX System (3rd ed.)(3rd ed.)

Mark G. SobellMark G. SobellBejamin/Cummings, 1995Bejamin/Cummings, 1995

– most UNIX books cover these topicsmost UNIX books cover these topics

continued

5. Reading Materials5. Reading Materials One of you mayborrow it off me.

Page 13: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 13

A good general book on UNIX A good general book on UNIX (Linux)systems programming using C (topics (Linux)systems programming using C (topics 9-21):9-21):– Beginning Linux ProgrammingBeginning Linux Programming

Neil Matthew and Rick StonesNeil Matthew and Rick StonesWrox Press, 1996Wrox Press, 1996

– simple --> quite advanced! simple --> quite advanced!

In the CoElibrary

continued

Page 14: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 14

– Advanced Programming in the UNIX Advanced Programming in the UNIX EnvironmentEnvironmentW. Richard StevensW. Richard StevensAddison-Wesley, 1992Addison-Wesley, 1992

– quite technical/hardquite technical/hard– often considered the “bible”often considered the “bible”– not specific to Linuxnot specific to Linux

In the CoElibrary

continued

Page 15: 240-491 Adv. UNIX: Prelim/01 Advanced UNIX v Who I am: –Andrew Davison CoE, Info. Eng. Research Lab. (Room 101) dandrew@ratree.psu.ac.th v Objectives –to

240-491 Adv. UNIX: Prelim/0 15

There are several Perl books in our library There are several Perl books in our library (topic 8)(topic 8)– e.g.e.g. Learning Perl Unix ProgrammingLearning Perl Unix Programming

Randal L. Schwartz and Randal L. Schwartz and Tom ChristiansenTom Christiansen

O’Reilly, 1997O’Reilly, 1997

– I will only be giving a I will only be giving a briefbrief overview of Perl overview of Perl