Homework 0: Parts A and B

HW0 Part A: Due Thursday, April 4, 11:50pm

Part A of this homework is to introduce yourself via the Canvas Discussion. Instructions and a rubric may be found on Canvas. If you do not yet have access to Canvas, you will submit this upon being added to the course. (Please note: students who have access to Canvas will be graded at the due date, so you must adhere to the schedule provided here.)



HW0 Part B: Due Thursday, April 4, 11:50pm

The purpose of this assignment is to be sure that you have your Linux environment set up for the quarter and that you can log in and execute shell commands. For this assignment you must use either your account on the klaatu.cs.washington.edu machine or your own copy of the CSE Linux Virtual Machine. It is possible to use another reasonably recent Linux system for many things, but we will use the CSE systems to evaluate submitted work, and you need to verify that everything you submit works correctly there. See the Linux Resourcespage on the course web site for more information about how to get started.

  1. (Shell) You must be sure that your default shell is bash. Otherwise you will run into strange, baffling problems with shell scripts. Enter the command echo $SHELL. The response should be/bin/bash. If the shell name is different (csh,tcsh, or something else), use the appropriate commands on your system to change your login shell tobash. On many Linux and Unix systems this can be done with the commandchshorypchsh.
  2. (Commands) Open a shell window and enter the following commands. They should work without errors if typed exactly as shown. (Exception: if you are usingklaatu, omit thecd Desktopcommand. There is noDesktopdirectory onklaatuaccounts.) Thescriptcommand will capture the terminal session and save it in a file namedhw0.scriptin the current directory.
       cd 
       cd Desktop
       script hw0.script
       whoami
       echo $SHELL
       pwd
       uname -a
       gcc --version -std=c11
       exit
    Note: if the gcc command generates a warning that -std=c11 is not a recognized option, your C compiler and, probably, your Linux version are too old, and you should use a more recent Linux system for this class

SUBMISSION: Please submit your hw0.script file to the Canvas assignment. You may submit a file up to two days late, but you are STRONGLY encouraged to start working immediately and turn this assignment in on time.

If you are adding the course after the first day of the quarter, you may submit this file via email to cse374-staff [at] cs.washington.edu. Make sure you include your full name and UW NetID in your email.

* If you are using Canvas on your home machine you can use 'scp' to copy the file from klaatu to your home machine. More information is on the Linux Resources page linked above.