Toggle navigation
Home
Blog
Carnivorous Plants
Critter Camera
Publications
Projects
Project Supervision
Courses
Sonoma State University
Department of Computer Science
CS-210: Introduction to Unix
Fall 2026
Exercise 2
Objective:
In this exercise, you will create an organizational directory structure in your home directory on
blue.cs.sonoma.edu
to store all of your future assignments for CS-210. Next, you will traverse the entire directory structure to practice navigating the filesystem.
Instructions:
secure shell into
blue.cs.sonoma.edu
(
ssh YOUR_USERNAME@blue.cs.sonoma.edu
)
Inside your home directory on
blue.cs.sonoma.edu
, 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
Next change directory into your cs210_exercise_2 directory and run the following command:
tree ~/cs210_exercises > ~/cs210_exercises/cs210_exercise_2/output.txt
Terminate your session on
blue.cs.sonoma.edu
by entering the command, "exit" on the command line.
Next retrieve your "output.txt" file on
blue.cs.sonoma.edu
using Secure File Transfer Protocol (sftp). Note: substitute your login username on
blue.cs.sonoma.edu
for "YOUR_USERNAME":
sftp YOUR_USERNAME@blue.cs.sonoma.edu
Next enter your password to login to
blue.cs.sonoma.edu
Once logged in via SFTP, enter the following commands:
cd cs210_exercises
cd cs210_exercise_2
get output.txt
exit
Now the file "output.txt" should be on your personal computer OR on the lab computer (if you used a lab computer to SFTP). Upload the output.txt file to Canvas.
Hint:
mkdir
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