The purpose of this assignment is to:
Help you learn the basics of the Linux operating system and the Bash shell.
Collect background statistics for COS 217 students in order to support student advisement.
Make sure you study the course Policies web page before doing this assignment or any of the COS 217 assignments. In particular, note that you may use a variety of "human" sources of information while doing assignments, including the course staff members, the lab teaching assistants, and other current students via Piazza.
Your task is to take the COS 217 survey and submit your answers.
Do all your work on the CourseLab cluster following the procedure below.
Create a proper COS 217 computing environment by completing the steps in the A Minimal COS 217 Computing Environment document from the first precept.
SurveyCOS217.py
FileStart a terminal session and connect to CourseLab. At the Bash shell prompt issue a mkdir
command to create a project directory (named, say, surveyproj
) in your home directory. Issue a cd
command to make your project directory your working directory. Issue a cp
command to copy the file SurveyCOS217.py
, found in
the /u/cos217/Assignment0
directory, to your working directory.
TheSurveyCOS217.py
file contains a program written in the Python programming language. We encourage you to read that program, but you are not responsible for understanding it. (The COS 217 course doesn't cover the Python programming language.)
Issue the command:
./SurveyCOS217.py
to take the survey. Read the instructions carefully and answer all questions.
Once you have answered all questions, the survey program will finish and you will return to the Bash shell prompt. Make sure that
you took the survey properly issuing a ls
command and examining the contents of your working directory. If the list of files in your working directory includes a file named survey
, the survey was completed properly.
Issue a submit
command to submit the results of the survey. More specifically, issue this command:
submit 0 survey
to submit the results of the survey.
The instructors maintain for you one submission directory for each assignment. Thesubmit X file1 file2 ...
command copies the specified file(s) to your Assignment X submission directory. For example, thesubmit 0 survey
command copies yoursurvey
file from your working directory to your Assignment 0 submission directory.
Instead of issuing asubmit X file1 file2 ...
command, you can issue asubmitandbackup X file1 file2 ...
command. Thesubmitandbackup X file1 file2 ...
command first copies the specified file(s) to your Assignment X submission directory, just as thesubmit X file1 file2 ...
command does. Then it creates a directory in your home directory whose name is of the formBACKUP_X_date_time
, and creates a backup copy of the specified file in that directory. If you consistently issuesubmitandbackup
commands, then you will have a record of which files you submitted, when you submitted those files, and the contents of those files.
You can resubmit a file. For example, if you submit a file namedsurvey
to your Assignment 0 submission directory and then later submit another file namedsurvey
to your Assignment 0 submission directory, then the new version ofsurvey
simply overwrites the old version ofsurvey
in your Assignment 0 submission directory.
You can issueunsubmit
commands to delete specified files from your submission directory. For example the commandunsubmit 0 survey
deletes thesurvey
file (which, presumably, you submitted previously) from your Assignment 0 submission directory. Theunsubmit
program does not affect files in your working directory.
We will not grade your Assignment 0 submission. However, your Assignment 0 submission is required. We will not accept your submissions for subsequent assignments until you complete Assignment 0.
This assignment was written by Iasonas Petras
with feedback from Robert M. Dondero, Jr.