Due: Friday, October 6, at 11:59pm
This assignment lays the foundation for the rest of the course. In it you will demonstrate that you can log into the 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 your account on seaside.cs.washington.edu
. 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
. The command mntclassdir cse374
is a utility unique to this system. It will create a folder called cse374
if one does not already exist, and mount a similar folder located on your udrive. You may access your udrive from other machines by logging in with your unetid, and all data will be stored on that drive.
The script
command will capture the terminal session and save it in a file named hw0.script
in the current directory. You will stop recording your session when you enter exit
.
mntclassdir cse374 cd cse374 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 between echo
and gcc --version -std-c11
. 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. If you would like to see what is in your script file, use the command cat -A hw0.script
.
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. Gradescope allows for file uploads through your web-browser window, but you will likely need to copy hw0.script from your remote machine to your local one to use that process - look for directions using scp
, or open your udrive from your local machine.