CSE 374 15au Homework 0
Due: Friday, Oct. 2, 2015, at 11 pm (you really really don't want to burn up late days on this one!).
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. We recommend that you use either your account on the klaatu.cs.washington.edu
machine or your own copy of the CSE Linux Virtual Machine. It is
ok if you use another reasonably recent Linux system, but we will use the CSE systems to evaluate submitted work, and it is probably easiest to work there.
You will need a 64-bit Linux system for some later assignments, but for now a 32-bit system will also work. See the Linux Resources page on the course web site for more information about how to get started.
- (Shell) You must be
sure that your default shell is
bash
. Otherwise you will run into strange, baffling problems with shell scripts. Enter the commandecho $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 unix systems this can be done with the commandchsh
orypchsh
.
- (Commands) Open a shell window and enter the following commands. They should
work without errors if typed exactly as shown.
The
script
command will capture the terminal session and save it in a file namedhw0.script
in 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 Linux version are too old, and you should use a more recent Linux system for this class.
- (Chatting) Go the course discussion board (link on the web site) and post a followup to the Welcome message to introduce yourself, and to get gopost to automatically track new postings for you.
Turn-in Instructions: Use the turn-in drop box link on the main course web page to turn the
hw0.script
file created in problem 1.
The drop box will allow you to
turn in your homework up to
two days late, if you choose to use one or two of your late days, but you are strongly advised to save your late
days for much later in the quarter when you may really want them.
If you create the file on klaatu, you can use scp (winscp on windows) to
transfer the file to your local machine so it can be submitted using
the local web browser.
Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX
Comments to adminanchor