For more information about Unix, look at the
AiS Challenge Help
page that is available online.
Unix Lab Exercises
Logon to mode (mode.lanl.k12.nm.us)
Do an ls command to see what files you have and make sure
you have a file called
UserInput.java and if you don't, execute the following
command to get a copy for you to use during the java class: cp /usr/local/aisc/UserInput.java UserInput.java
At the mode:~> prompt, create a directory called examples
and change to it
mkdir examples
cd examples
Copy the files bacteria.f, and sample.c from
the directory /usr/local/aisc/examples into your examples directory
with the following commands
cp /usr/local/aisc/examples/bacteria.f bacteria.f
cp /usr/local/aisc/examples/sample.c sample.c
Look at the files you have with cat or more
cat bacteria.f
more sample.c
Compile the C++ program with CC sample.c (2 capital "C"s) and run it by entering
a.out
Remove the a.out file created from above with rm a.out
Check the Bulletin Board by entering bbs
Change to your public_html directory by returning to your home
directory with cd then enter cd public_html
Edit your abstract page pico abstract.html and replace the generic
information with your information. Then view it with a web browser, point
it to http://mode.lanl.k12.nm.us/~chnnnabc/abstract.html where
chnnnabc is your login name.
One of your team members needs to edit the abstract.html file that
is located in everyone's public_html directory with your team's
information and
once that is complete and spell checked (with ispell abstract.html),
submit it to the AiS Challenge staff by entering submit abstract.html
If you regularly read mail on an account other than your AiS Challenge
account, please create a file called .forward (pico .forward)
that contains your other email address. Make sure you test it by sending
mail to yourself on mode.
Using pine, send mail to your team members to establish a time this
week to discuss what you learned at Glorieta.
Use the man command to learn about some of the options to
the ls command, enter man ls
Logout of mode logout
Point a web browser to http://www.challenge.nm.org and click on
AiS Challenge Mail at the bottom of the logo. That will take you
to a web based interface to email. Login, as you do to mode, and check
your email.