home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / hackersguides-&-software / vaxhack.zip / VAX-6.TXT < prev    next >
Text File  |  1990-05-11  |  4KB  |  79 lines

  1. Subject:   What's Hacking VAX Special - 6
  2. From:      David Lightman (Level 30) [A dude who wanted access]
  3. To:        ALL
  4. Sent:      3/1/90 at 2:58 pm
  5.  
  6.  
  7.  
  8.         SET DEFAULT (or... MOVING AROUND A VAX):
  9.         =======================================
  10.  
  11.            To move around the VAX DCL, in and out of directories, I  need
  12.         to  tell you about the SET DEFAULT command.  It is just like  the
  13.         CD command on UNIX and MS-DOS/PC-DOS, except it follows a format.
  14.         The format is "SET DEFAULT [.subdir]" to go down to a sub  direc-
  15.         tory and "SET DEFAULT [-]" to go to the parent directory.  I will
  16.         explain more involved uses like changing disks, if asked, to keep
  17.         you  out of trouble for now.  First, I will show by  example  and
  18.         then explain my example to those out there who lack a brain.
  19.  
  20.         $ DIR                                                 (step 1)
  21.         PROGRAM.EXE;2   PROGRAM.EXE;1
  22.         $ CREATE/DIR example                                  (step 2)
  23.         $ DIR                                                 (step 3)
  24.         EXAMPLE.DIR;1   PROGRAM.EXE;2   PROGRAM.EXE;1
  25.         $ SET DEFAULT [.example]                              (step 4)
  26.         $ DIR                                                 (step 5)
  27.         no files, animals, vegetables, nor minerals error
  28.         $ SET DEF [-]                                         (step 6)
  29.         $ COPY PROGRAM.EXE;2 [.example]                       (step 7)
  30.         $ SET DEF [.example]                                  (step 8)
  31.         $ DIR                                                 (step 9)
  32.         PROGRAM.EXE;2
  33.         $
  34.  
  35.         Here's what I did...
  36.  
  37.            STEP 1:  I asked to see the contents of the current directory.
  38.                     I  found that I have the program PROGRAM.EXE  is  the
  39.                     1st and 2st versions in the directory.
  40.  
  41.            STEP 2:  I  created a  directory called "EXAMPLE."  This  name
  42.                     can be anything of course.
  43.  
  44.            STEP 3:  I again asked for the contents of the directory.   It
  45.                     now   shows   me  that  I  have   a   "file"   called
  46.                     "EXAMPLE.DIR;1."   That is just the directory.   Any-
  47.                     thing with an extension of "DIR" will be a directory.
  48.                     For more on extensions, see below.
  49.  
  50.            STEP 4:  I  changed directories  by use  of  the  SET  DEFAULT
  51.                     command.   You  must  always follow  this  format  to
  52.                     change into a SUB directory.
  53.  
  54.            STEP 5:  I AGAIN (!) looked into the directory.  This time, my
  55.                     directory  was  EXAMPLE so I of course  saw  nothing.
  56.                     You  will get an error I believe when you try to  DIR
  57.                     an empty directory.
  58.  
  59.            STEP 6:  This command is used to rise up to the parent  direc-
  60.                     tory.   The  parent directory contains  the  filename
  61.                     "EXAMPLE.DIR;1," remember?  The DEFAULT option can be
  62.                     shortened to DEF.
  63.  
  64.            STEP 7:  Here I am illustrating how to move programs around  a
  65.                     little.  I just copied the program PROGRAM.EXE;2 into
  66.                     the subdirectory EXAMPLE.
  67.  
  68.            STEP 8:  See step 3.   (a lazy, tired Dave)
  69.  
  70.            STEP 9:  I  >ONCE MORE<  issued the DIR command to  reveal the
  71.                     contents  of the directory.  I now find  the  program
  72.                     PROGRAM.EXE;2  in  my  directory listing  of  my  sub
  73.                     directory EXAMPLE.
  74.  
  75.            If  you don't understand the basics of moving around a VAX  by
  76.         now, push "OFF".
  77.  
  78.  
  79.