|
CSE Home | About Us | Search | Contact Info |
Due: Thursday, April 1, at 11 pm.
The main purpose of this first assignment is to learn your way around the Linux system you will be using during the quarter, and also to be sure that any problems setting up accounts or logging in are taken care of immediately.
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 unix systems this can be done with the command
chsh
or ypchsh
. If you are using the EE Linux
machines, there is a separate web page to set your login shell - it's the
same one you use to change your
password.script problem1
to capture your console session
and store it in a file problem1
. Then run at least 60 different
commands using at least 15 different programs. Then
run the exit
command to terminate script
.
ls
and ls -a
are different commands using the same
program but ls
foo
and ls bar
are the same.) The terminology for this
question is that a command is the combination of a program name
(ls
, cat
, more
, date
,
...) followed by a unique set of options.Your solution file may, of course, contain a few false starts and extraneous
commands, but the file you turn in should have relatively little of this
(i.e., the person reading your output shouldn't
have to guess what is intended to be part of the solution your are
submitting). Also, the script
command captures every character
sent to the terminal, including invisible characters like backspaces. That
is expected
and you should not worry about those extra characters
Hint: look in the Unix Pocket Guide for ideas. Examples of the kinds of things
you might explore: What is the absolute pathname of your home directory? What
version of bash
are you using? Where is the gcc
command
located? How much free disk space is available? What happens when you run cat
?
How do you copy, rename, or remove files? How do you change access permissions
on files so other people
can or can't read them? What do the different options on ls
do?
How do you print the date and time? What commands are stored in /usr/local/bin
?
What directories are on the execution path ($PATH
variable)? ...
Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX [comments to Hal Perkins] |