HP 3000 Manuals

Working with Files [ Using Your System The User's Guide ] MPE/iX 5.0 Documentation


Using Your System The User's Guide

Working with Files 

You have learned to log on to your account, to look at your account or
group, and to create text files.  In this section, you will practice:

   *   renaming files

   *   identifying groups

   *   copying files

   *   releasing file security

   *   deleting files

For the following exercises, use the FILE1 file that you created in the
previous section.

To rename a file 

To rename the file called FILE1, enter:

     :RENAME FILE1, YOURFILE Return 

Notice the punctuation.  The comma (,) is necessary to rename a file.

Use the LISTFILE command to check that FILE1 has disappeared and that a
file called YOURFILE has appeared.  Enter:

     :LISTFILE Return 

Your screen should look like this:
________________________________________________________________________
|                                                                      |
|                                                                      |
| FILENAME                                                             |
|                                                                      |
|                                                                      |
|                                                                      |
| YOURFILE                                                             |
|                                                                      |
________________________________________________________________________

            

To copy a file 

To copy a file, use the COPY command, specifying the name of the file
that you want to copy and the name that you want the new, identical copy
to have.

To make a copy of YOURFILE, calling the new copy NEWFILE, do this:

     :COPY FROM=YOURFILE;TO=NEWFILE Return 

Now enter:

     :LISTFILE Return 

Your screen should look like this:
________________________________________________________________________
|                                                                      |
|                                                                      |
| FILENAME                                                             |
|                                                                      |
| NEWFILE   YOURFILE                                                   |
|                                                                      |
________________________________________________________________________

            

Here is what the parameters do:

   *   From= tells the computer which file to copy from.  This original,
       from which the copy is made, is called the source file.

   *   To= tells the computer what to call the copy.  This new file is
       called the target file or destination file.

There is an easier way to use the COPY command.  Try this now:

     :COPY NEWFILE,DOCFILE Return 

Use the LISTFILE command, and you should see the new file named DOCFILE
on your screen.

To release file security 

You may want to allow another user to copy your files.  In order to do
this, you must release your file to this person.  This is called
releasing a file.  The RELEASE command removes the security provisions
for a file.  You can only release files that you have created.

To remove the security provisions of the file YOURFILE, enter:

     :RELEASE YOURFILE Return 

This file is now ready to be copied to another account and group.

To copy files from another group 

Once your files have been released, you can move these files to other
groups.  To copy a file from one group to another group:

   *   You must know the qualified name of the file that you want to
       copy.  This name is the file name with the group name, such as:

            YOURFILE.PUB

       or 

   *   The owner of the file you want to copy must release that file for
       you with the RELEASE command.

       or 

   *   Group security must be organized to allow you access to the group.

Do this:

     :COPY YOURFILE.PUB, YOURFILE.OTHERGRP Return 

Then enter:

     :LISTFILE @.OTHERGRP Return 

You should see a copy of the YOURFILE file.

To delete a file 

Make sure that you are in your home group PUB. The PURGE command erases a
file.  It erases one file at a time.  If you want to erase five files,
you now need to use the PURGE command five times.

Delete the file called DOCFILE. Enter:

     :PURGE DOCFILE Return 

If you try to delete a file that does not exist, you get an error
message.

Try to delete the file QUIKSAND. What happens?

Your screen should look like this:
________________________________________________________________________
|                                                                      |
|                                                                      |
| PURGE QUIKSAND                                                       |
|                                                                      |
| FILE QUIKSAND.PUB.PRACTICE NOT FOUND, NO PURGE DONE.                 |
| (CIWARN 383)                                                         |
| :                                                                    |
|                                                                      |
________________________________________________________________________

            



MPE/iX 5.0 Documentation