


CREF(1)                  USER COMMANDS                    CREF(1)



NAME
     cref - Documentation finder

SYNOPSIS
     cref [-c _n_e_w__r_o_o_t ] [-r  _r_o_o_t__d_i_r  ]  [-f  _s_t_a_r_t__d_i_r  ]  [-s
     _s_a_v_e__f_i_l_e ] [-a _a_b_b_r_e_v__f_i_l_e ]

DESCRIPTION
     _c_r_e_f is a program for finding  information  in  a  directory
     hierarchy.

     _c_r_e_f is used to find information in a  directory  hierarchy.
     This hierarchy is generally organized by topic, but need not
     be.  Invoked with no arguments,  _c_r_e_f  displays  a  menu  of
     available  topics in the default top-level directory.  There
     are several commands for  moving  about  the  hierarchy  and
     displaying  files.   These are listed below.  In addition, a
     list of commands with brief descriptions  is  available  on-
     line by typing '?' or 'h' at the _c_r_e_f prompt.

     _c_r_e_f has the following command-line options:

     -c    The next argument is taken to be the  name  of  a  new
           root directory for a _c_r_e_f hierarchy.  The directory is
           created and initialized with an empty  contents  file.
           The  directory  name  be be a full pathname; _c_r_e_f does
           not accept relative names.

     -r    The next argument is taken to be the name of the  root
           directory for the current session.  The directory name
           be be a complete pathname.

     -f    The next argument is used as a filename offset in  the
           root  directory.  This allows one to specify the place
           in the hierarchy to begin  the  current  session.   It
           should  be a pathname relative to the _c_r_e_f root direc-
           tory.

     -s    The next argument is used as the default filename  for
           saving   a   _c_r_e_f  entry.   The  standard  default  is
           _c_r_e_f__i_n_f_o.

     -a    The next argument is taken to be the name of an abbre-
           viations  file to use instead of the default, which is
           $_H_O_M_E/._c_r_e_f_r_c.

     At the "cref>" prompt, the following commands are available:

     ?     Prints a list of _c_r_e_f commands and brief  descriptions
           of their functions.

     a     Adds a new abbreviation.  An abbreviation  is  a  name



Sun Release 4L.a1st change: Revision 3.0 -- March 15,1986          1






CREF(1)                  USER COMMANDS                    CREF(1)



           for  a  particular  directory  in  the _c_r_e_f hierarchy.
           This commands prompts for the name and entry number on
           the  current  menu  for the desired abbreviation.  The
           abbreviation is stored in the user's personal abbrevi-
           ation file.

     g     Prompts  for  an  abbreviation,  then  goes   to   the
           corresponding entry.

     h     Prints help information.  Same as '?.'

     i     Inserts an  entry  into  the  current  directory.   It
           prompt  for  the necessary information.  The user must
           have permission to write in the _c_r_e_f directory.

     l     Lists all abbreviations, both the user's personal ones
           and the default ones that belong to the hierarchy.

     f     Displays the contents file of the _c_r_e_f directory being
           displayed on the screen.

     c     Lists the contents of the directory being displayed on
           the screen.

     n     Displays the next entry.

     p     Displays the previous entry.

     q     Quits _c_r_e_f.

     d     Deletes an entry from the hierarchy.   The  user  must
           have write permission in the current entry.

     s     Saves an entry to a file.  It prompts for a  filename,
           with the default _c_r_e_f__i_n_f_o.

     t     Moves to the top level of the _c_r_e_f hierarchy.

     u     Moves up one level.

     +     Displays the next page of the index.  -  Displays  the
           previous page of the index.

     <_n_u_m_b_e_r>
           Display the specified entry.

     <_s_p_a_c_e>
           Displays the next page of the index.

     _r     Redisplay the cref menu





Sun Release 4L.a1st change: Revision 3.0 -- March 15,1986          2






CREF(1)                  USER COMMANDS                    CREF(1)



     When an entry is selected, a menu  is  displayed  if  it  is
     another directory; otherwise the file is printed on the ter-
     minal using _m_o_r_e(_1).

FILES
     .index              Contents files in each _c_r_e_f directory.

     $HOME/.crefrc       Default user abbreviation file.

     cref_abbrevs        Global abbreviations file  in  the  root
                         directory.

     /mit/cref/Ref       Default root directory.

DIAGNOSTICS
     Mostly self-explanatory.

BUGS
     Many, some even unknown.

AUTHOR
     Chris VanHaren, Jeff Jimenez, Win Treese, MIT Project Athena

































Sun Release 4L.a1st change: Revision 3.0 -- March 15,1986          3



