IST 3330 , Intro to UNIX (Mon-Wed 2:30 Class), Fall 2012

Good Links

1. Course Syllabus

2. Putty.exe file for Windows systems

--> ---------------------------------------------

Homework Assignments

HW1: Log in to your account on cisns6 (10.1.49.23) and run the ps, top, and who commands; R&S Chapter 2 (R&S means Read and Study) Due: Before the start of class on Wed, 9/5 --------------------------------------------- HW2: 1. Create the following folders in your home folder on our class server (10.1.49.23): hfiles , ifiles , mfiles , pfiles , miscfiles , morefiles 2. Do the following: a) copy all the files in the /home/ist3330/etcfiles folder that start with an "h" into the hfiles folder you created in step 1. b) copy all the files in the /home/ist3330/etcfiles folder that start with an "i" into the ifiles folder you created in step 1. c) copy all the files in the /home/ist3330/etcfiles folder that start with an "m" into the mfiles folder you created in step 1. d) copy all the files in the /home/ist3330/etcfiles folder that start with an "p" into the pfiles folder you created in step 1. e) copy all the files in the /home/ist3330/etcfiles folder that end with an "f" into the miscfiles folder you created in step 1. f) copy all the files in your mfiles folder that end with an "s" into your miscfiles folder you created in step 1. g) move all the files in your miscfiles folder that start with an "i" into your morefiles folder you created in step 1. h) copy all the files in your pfiles folder into your morefiles folder. i) delete your pfiles folder with all the files in it. j) create a subfolder in your morefiles folder named "evenmorefiles". 3. Read and study chapter 3 (if you haven't already done so). Due: Before the start of class on Wed, 9/12 ------------------------------------------------------ HW3: R&S Chapter 4. Due: Before the start of class on Wed, 9/17 ------------------------------------------------------ HW4: I have put a folder in each of your home folders. The folder is named hw4Files. Do the following with al the files in this folder: 1) In your home folder, create a folder named hw4. Move the hw4files folder with all of its files and subfolders into your new hw4 folder. 2) In your hw4 folder, create a zip file named hw4.zip that contains the hw4Files folder with all of its files and subfolders. 3) In your hw4 folder, create a tar file named hw4.tar that contains the hw4Files folder with all of its files and subfolders. 4) In your hw4 folder, make a copy of your hw4.tar file named g-hw4.tar. Make a GZIP file of this file. 5) In your hw4 folder, make a copy of your hw4-files.tar file named b-hw4.tar. Make a BZIP2 file of this file. Due: Before the start of class on Wed, 10/3 ------------------------------------------------------ HW5: Look over an try some of the prompt variable settings show in this file. R&S Chapter 9. Due: Before the start of class on Mon, 10/22 ------------------------------------------------------ HW6: Try the examples in Chapter 9 sections 1-13. The sample files are in the /home/ist3330/das-2ndEd-examples/ch09 folder. We will work on some examples demonstrating some of these filters in class on Wednesday with some bigger sample files. Due: Before the start of class on Wed, 10/24 ------------------------------------------------------ HW7: Here is a lengthy assignment for chapter 9. It gives you a good idea of what I expect you to be able to do on our next test. Due: Before the start of class on Mon, 10/29 ------------------------------------------------------ HW8: Create a folder named 1031 to use in class on Wednesday. Put a copy of avtext.txt in it. Create a word usage list for avtext.txt like the one created in section 9.13.2. R&S Chapter 10. Due: Start of class on Wed, 10/31 ------------------------------------------------------ HW9: All the tables and charts from chapters 9 and 10 on grep and sed - VERY handy! Do all the examples in Chapter 10, using the textbook sample files. Do Chapter 10 Exercises 7,10,12,16,20,21,23,27 on pages 293-295. Email your answers to me. Due: Start of class on Wed, 11/7 ------------------------------------------------------ Test on Monday, 11/19!!! ------------------------------------------------------ The test will cover chapters 9 and 10 over UNIX filters (with whatever previous knowledge those chapters require). It will be open book and open note. Any of the examples we've worked in class or assigned as homework are potential test questions. Here is a text file with some of those examples. Any examples the author worked in the text are also good potential test questions. We will use the files "avw.txt", "avtext.txt", "players The more time you spend working those examples, changing them up slightly, applying them to a different file or a slightly different senario will help. If you really understand the examples in the text and what we have done in class, you will do well on the test. If you haven't practiced these examples to internalize the knowledge, then you will have a difficult time finishing all the exam problems. I'll be sure to be there on time Monday (I'll make arrangements for someone else to pick up the quizzes from my previous class). Email me if you have questions! Be wise and hard working if you do. Don't just ask me, "How do I do problem 7?". Instead, send me an email saying, "Here is what I am trying on problem 7 and it is not working, can you give me a hint as to where I'm going wrong?" Good luck and email me if you have questions! ------------------------------------------------------ HW10: Chapter 13 will be very fun and useful. We are finally going to start shell scripting. I assume you have read through chapter 13. If you haven't yet done so, then do so, trying the examples as you go. Section 13.8.1 is particularly important - make sure you create and run the "emp4.sh" script in figure 13.7 and understand what is going on. Section 13.12 on loops is also very important. Be sure to run the examples there. When you have spent sufficient time on this chapter you should be able to do the following exercises: 1) Write a shell script named squares.sh that will print the squares of all integers from 1 through 100. The output should look like this: 1 1 2 4 3 9 . . . 98 9604 99 9801 100 10000 2) Create a copy of your squares.sh program named powers.sh. Modify it to take a starting and ending integer as arguments and print the square, square-root, cube and cube-root of all integers between the starting and ending integers. The output should look like this: $ powers.sh 21 27 (The number of decimal places will be different. Don't worry right now about trying to get the columns to line up unless you want to explore it. n n^2 n^(1/2) n^3 n^(1/3) ------ ------ ----------- ----- ----------- 21 441 4.583 9261 2.759 22 484 4.690 10648 2.802 . . . 26 676 5.099 17576 2.962 27 729 5.196 19683 3.000 3) Write a shell script named make-word-list.sh that will create a word list for the file supplied as an argument when the command is run. For example, if you have a file named "adventures-of-huck-finn.txt" in your folder and you run the command "$ ./make-word-list.sh adventures-of-huck-finn.txt" you should end up with the word list (like we did at the end of chapter 9) named "adventures-of-huck-finn-wordlist.txt". 4) Do Exercises 2,4,6 in the chapter exercises on pages 401-402. Two examples we did in class on Wednesday Due: Before the start of class on Mon, 12/3 ------------------------------------------------------ Some ideas of what the final exam will look like: What will the UNIX final be like: 1. Find the errors in a shell script (similar to Exercise 13.4). 2. Find the errors in a perl script (similar to Exercise 13.4). 3. Write a shell script similar to the homework exercises (but NOT problem 3 with the cube roots and bc!). 4. Write a perl script similar to the shell script problem 3 (like we did in class). 5. Write a simple perl script (some examples of the types of scripts I might ask for are given below). 6. Modify a working shell script to change what it does. 7. Modify a working perl script to change what it does. ----------------------------------------------------------- Final Exam on Monday, 12/8 from 1:00 - 3:00pm in our regular classroom!!! ------------------------------------------------------ Note: On all emails for this course, start the subject line out with IST3330, followed by whatever else is appropriate. Emails without this subject line formatting may not be accepted!



Return to Rejoice Always Home


Last updated on ... Dec 2, 2012

Created on ... Sep 5, 2012