Due: Monday, January 10, at 11:00pm
This assignment lays the foundation for the rest of the course. In it you will demonstrate that you can log into at least one course Linux system and execute basic shell commands. Students will submit their work via Gradescope, which will automatically check the submission. Students are encouraged to resubmit until they earn all 10 available points for HW 0.
For this assignment you must use either your account on the cancun.cs.washington.edu
machine or your own copy of the CSE Linux Virtual Machine (VM). 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 Resources page on the course web site for more information about how to get started.
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 to bash
. On many Linux and Unix systems this can
be done with the command chsh
or ypchsh
. cd Desktop
, or on any system you may
wish to make a 374 directory and work there. You can do this by entering
mkdir cse374 cd cse374. The
script
command will capture the terminal session and save it in a file named hw0.script
in the current directory.
script hw0.script echo $SHELL
whoami
pwd uname -a gcc --version -std=c11 exit
This assignment is worth 10 points - 2 points for each command. As this is a foundational assignment you are encouraged to resubmit until you earn a perfect score. Hint: The script
command records everything, even backspaces. If you have too many corrections there will be a lot of extraneous characters if your hw0.script file that may interfere with the autograder. In this case, repeat the exercise carefully avoiding extra key strokes.
Please submit to the Gradescope HW0 assignment. This is linked through Canvas, or you can go directly through Gradescope. You should submit one file, called hw0.script.