Assignment 2 - Aubrey Weese
Part 1. Getting started with Unix/Linux.
-
Start your PC.
-
Choose "linux" in the boot option menu.
-
Use student as your username and leave the password area blank.
-
Start an X-terminal window by clicking on the terminal icon at the button
of your screen.
-
Type netscape at the prompt.
-
Wait for netscape to come up. If you don't have a MASON account then visit
http://mason.gmu.edu/ISO/SysEng/Mason/account.html
-
Open another terminal and login to your "Physics" account by typing
-
telnet physics.gmu.edu.
-
Read pages 21-29 of the handout on "Getting Friendly with Unix."
-
Change your working directory to /tmp.
-
Copy files myfile.m index.html and Area.f to your home directory. Go back
to your home directory.
-
Make a subdirectory called WWW. Change the permission on WWW in such a way
to make it viewable to the world. (Hint: Use chmod command. If you don't
know how to use this command, then do man chmod to get help on chmod.)
-
Move index.html file to WWW directory.
-
Make a subdirectory called Fortran.
-
Make a subdirectory called Matlab.
-
Move myfile.m to Matlab subdirectory.
-
Move Area.f to Fortran subdirectory.
-
Execute the following commands
-
ls
pwd
cd Matlab
pwd
cd /usr/local
pwd
cd ..
pwd
cd
pwd
ls -R
ls -al
ls -F
w
whoami
wc Fortran/myfile.f
head Fortran/myfile.f
tail WWW/index.html
-
From your home directory change your directory to one level higher. Change
permission in your home directory in such a way that files under /WWW become
viewable to the world.
-
Rename index.html to index2.html Under WWW subdirectory. Now try to view
this file using netscape.
-
Execute ls -alFR > mydir.txt
-
Edit index2.html file and replace "Student Name" with your name and add your
e-mail address to it. Reload the page in netscape and make sure that the
changes you made are correct.
-
Logout from your "Physics" account.
-
Logout from your "local" machine.
Done.
Part II. Getting Started with Windows NT.
-
Reboot your PC.
-
Choose Windows NT Workstation (first option) in boot option menu.
-
Telnet to Physics.
-
Transfer the file mydata.dat on the floppy disk to your home directory on
Physics using "ftp."
-
Transfer the file mydir.txt from Physics to the floppy disk.
-
Email your instructor with index2.html file as an attachment. For subject
heading use "Phys 251 Assignment 2".
-
Return the floppy disk to your instructor.
Done.
Return to Aubrey's George Mason University School
Bag