UNIX Lesson Plan

  1. Objectives
  2. Materials / Resources
  3. Procedure
  4. Extensions
  5. Evaluation

Objectives

Competencies

Materials / Resources

Procedure

Part 1:

  1. Logon to your computer and open the terminal (Application->Accessories->Terminal). The tools necessary for this activity will be laid out in the first 4 tutorials of the UNIX Tutorials for Beginners guide. Extensions will go into the furhter tutorials.
  2. In your user home directory, create a folder named UNIX_Practice. Create a text file named path which contains the path to the directory this file is currently in. Move to your user home directory, then back one into the home directory. Copy the long_file.txt file from the share directory in the home directory to your user home directory.
  3. There is a file named .example in one of the subdirectories of the share directory. Find it and copy it to your user home directory as well. Move back to your home directory and move the long_file.txt file form your user home directory to the UNIX_Practice directory. View the long_file.txt file to see just how long it really is.
  4. Create a file named YOUR_NAME_specs.txt(replacing YOUR_NAME with your first and last name seperated by a _). In your YOUR_NAME_specs.txt file include the following specs about the long_file.txt file in order with each spec on a different line: Number of words, last line of the file, number of lines, first line of the file, number of characters, and number of times the word "apple" appears in the file. Go back to youre path.txt file and add the path you put in that file to the end of the YOUR_NAME_specs.txt file and remove the path.txt file from the directory.
  5. Remove the .example file from your UNIX_Practice directory. Move the YOUR_NAME_specs.txt file back to the home/share directory. Then, remove the UNIX_Practice from your home directory.

Part 2:

  1. In your user home directory create a file named tester.txt that contains the following lines without opening an editor:
    happy
    tired
    sad
    funny
    
  2. Add the following lines of code to the tester.txt file without opening an editor:
    smile
    yawn
    cry
    laugh
    
  3. Sort the lines in the tester.txt file. Create another file named tester2.txt with the following lines:
    dog
    cat
    mouse
    
  4. Create a file named big_tester.txt which is a sorted combination of tester1.txt and tester2.txt. Append a sorted list of users currently on the system to the big_tester.txt file, but do not sort the big_tester.txt file again. Rename your big_tester.txt file to YOUR_NAME_big_tester.txt (replacing YOUR_NAME with your first and last name). Move the YOUR_NAME_big_tester.txt to home/share.

Extensions

This extension covers the UNIX commands laid out in the 5th and 6th lessons of the UNIX Tutorial for Beginners.

Evaluation

ComponentsPoints
Completion of Activities/7
Show you can properly use basic UNIX commands to move around a UNIX environment/3
Total/10