Assignment #2: Using VMS pico editor and VMS file commands
The folowing message has been mailed to you. Access this message in your
mail and provide appropriate responses to the requested questions/activities.
CS 1410, Sec 101 1/26/98 Assignment #2 Due: At beginning of class on 2/2/98
Using the EXPORT command in Pine, extract this document from your mail into
a file called lab2.txt. (The file will be saved in your home directory.)
Since you are going to modify the file lab2.txt, it may be helpful if you do
not delete this message from pine until later, just in case you need to see
the original message again). Now, exit pine and do the following:
1. Use the VMS editor pico to edit the file lab2.txt. First, delete
everything through the line indicated below. Then respond to the
requests and edit in your answers the questions IN SEQUENCE. You
will find it convenient to open two sessions to your VAX account;
then, in one window, you can respond to the requests and in the
other window, you can edit in your answers.
2. Use pine to send a copy of your finished document to GOODMANTW by
the due date. To send a file with pine, you can either (1) enter
the name of the file on the attachment line and send the file as an
attachment or (2) use the ^R command when you are composing a
message to insert a file into the message.
3. Use the VMS print command to print a copy of your finished document
and hand it in by the due date.
--------------------------delete through this line--------------------------
CS 1410: Assignment #2
Name:
Section:
Date:
Respond to each of the following requests and supply the answer to the
corresponding question:
1. Enter your name, section number, and the date where indicated above.
2. Create a directory in your home directory called tmp.dir.
Command(s) used?
3. Create a directory in your home directory called misc.dir.
Command(s) used?
4. Change your current directory to tmp.dir.
Command(s) used?
5. Change your current directory to misc.dir (don't forget that you currently
in tmp.dir.)
Command(s) used?
6. Use appropriate command(s) to determine your current directory.
Command(s) used?
Current directory as displayed on the screen?
7. Change your current directory to your home directory.
Command(s) used?
8. Change your current directory to tmp.dir and do the following in order:
i. Use the VMS editor pico to create a short file called tmpfile.txt.
ii. After exiting pico and creating tmpfile.txt, re-execute pico on this
file several times, making somechanges each time, in order to create
at least four versions. Note that it doesn't matter what you put
in these files; just a character of two is sufficient.
iii. Now, get a listing of the contents of this directory.
Command(s) Used (to get contents of directory)?
Contends of directory as displayed on the screen?
9. Use appropriate command to delete all of the versions of tmpfile.txt EXCEPT
the latest version.
Command(s) used?
10. Rename tmpfile.txt as oldfile.txt.
Command(s) used?
11. Now use pico to create two versions of a file called newfile.txt.
Command(s) used?
12. Append newfile.txt to oldfile.txt.
Command(s) used?
13. Delete oldfile.txt and newfile.txt.
Command(s) used?
14. Change your current directory to your home directory. Then change
the protection on misc.dir to give yourself delete privileges and then
delete this directory.
Command(s) used:
15. Find out how much disk space you have used and how much space you have
allotted.
Command used?
Space used?
Allotted space?