Sonoma State University
Department of Computer Science
CS-210: Introduction to Unix
Exercise 2: File Utilities (part 1)

Objective:

In this exercise, you will create an organizational directory structure to store all of your future assignments in CS-210 then traverse the entire directory structure to practice navigating the filesystem.

Commands to be used for this exercise include:

  • mkdir
  • tree
  • cd

1. Inside your home directory, please create the following directories:

  • cs210_exercises
  • cs210_exercises/cs210_exercise_2
  • cs210_exercises/cs210_exercise_3
  • cs210_exercises/cs210_exercise_4
  • cs210_exercises/cs210_exercise_5
  • cs210_exercises/cs210_exercise_6
  • cs210_exercises/cs210_exercise_7
  • cs210_exercises/cs210_exercise_8
  • cs210_exercises/cs210_exercise_9
  • cs210_exercises/cs210_exercise_10
  • cs210_exercises/cs210_exercise_11
  • cs210_exercises/cs210_exercise_12
  • cs210_exercises/cs210_exercise_13
  • public_html

2. Next change directory into your cs210_exercise_2 directory and run the following command: tree -I output.txt > ./cs210_exercises/cs210_exercise_2/output.txt

Submission Instructions:

Please submit the output.txt to Canvas.

Exercise 2 Rubric

CRITERIA RATINGS POINTS
Output file:
Contents of student's file submission (output.txt).
Proficient
2 points

All directories are clearly indicated as being created in the student's home directory on blue.cs.sonoma.edu based on the contents of the output file, "output.txt". The student submitted an "output.txt" file that was created from the tree command outlined in step 3 of the instructions for this exercise.
Satisfactory
1.4 points

Student generated a file named, "output.txt" that clearly indicates all the directories were created; However, the student did not use the tree command to display the output but used another command such as the ls command instead; OR the student uploaded an image screenshot to Canvas showing the directory structure they created in their home directory on Blue.
Needs Improvement
1.2 points

Student did not create all the required directories per the instructions or the directory structure hierarchy is not correct. The student either provided the file "output.txt" (a text file) or submitted an image file screenshot of their home directory.
Below Expectations
0 points

Either a blank output text file or blank image file was submitted or no file was submitted.
2 points
Total points: 2