• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
Unix Command Dictionary (Hanson)
Table of Contents
\u2022
UNIX Log In and Out Commands.
\u2022
UNIX Information Commands.
\u2022
UNIX C Language Commands.
\u2022
UNIX makefile Commands.
\u2022
UNIX Directory Commands.
\u2022
UNIX File Commands.
\u2022
UNIX Pipe and Redirection Commands.
\u2022
UNIX Mail Commands.
\u2022
UNIX Control-Key Commands.
\u2022
UNIX Terminal Environment Commands.
\u2022
UNIX Process Commands.
\u2022
UNIX Editor Commands.
\u2022
The ex Editor.
\u2022
The vi Editor.
UNIX Command Dictionaries
The UNIX manual is mostly on line and the UNIX `man' command is used to display
parts of the manual. Typing
man [command] (CR)

will yield information in an almost readable format during a IBM Telnet session. The
problem is that you have both UNIX and CMS paging the output. You respond to the
UNIX paging prompt `:' with a `(CR)' return for a new page, `d (CR)' for a short new
page, u (CR)' for a short page up (back), or `q (CR)' to quit. For the CMS paging
prompt `holding', respond with the designated `Clear-key'. If you are using IBM
Telnet, then `man [command]' usually produces poor output for the head of the
display. The version `man -blou [command] (CR)' should remove underscoring and
other backspacing for printing at UIC, but does not work completely. For a quick
overview of a command try the `-q' quick option:

man -q command] (CR)
Alternatively,
man [command] > [file] (CR)

is useful for redirecting the output to a file that can later be transfer back to CMS for printing (e.g. by `printdoc'). The UNIX no paging `-r' option does not work in a CMS session, so the CMS user has to press both the `Return-key' for a new UNIX `man'

page or the `Clear-key' for a new CMS page depending on the odd UNIX prompt or
the CMS ``HOLDING'' prompt, respectively.

This abridged UNIX dictionary is only intended to be a short enough list to get you
started without being bewildered by the enormous UNIX manuals, but with enough
commands to be able to do something useful. For more information use the `man'
command or refer to some of the UNIX texts. UNIX is a trademark of Bell
Laboratories.

The format is
[command] [generic operand] : [Definition.]
along with a carriage return `(CR)' for each command. DO NOT FORGET that
almost all UNIX commands must be in lower case. Do not attempt to learn all of this
at once, but read some of it and try it out at an actual computer session.
Return to TABLE OF CONTENTS?
UNIX Log In and Out Commands:
login (CR) : Logon command.
logout (CR) : Logoff command.
Return to TABLE OF CONTENTS?
UNIX Information Commands
man [-option] [command] (CR) : Manual or UNIX help command. The usual

quit sequence `q (CR)' can be used to quit long UNIX `man' listings, `(CR)' is
used for new `man' pages. During a IBM Telnet session the `Clear-key' is
needed for new CMS pages that are not the same as the `man' pages.
Otherwise `d', `q' or `Ctrl-c' should work for UNIX like access.

finger [user] (CR) : Displays system biography on user `[user]'.
whereis [name] (CR) : Locates source for program or command; e.g.
`whereis kermit'.
which [name] (CR) : Tell which version of a program or command will be
used in your session in case of multiple copies; e.g. `which cc'.

whatis [command] (CR) : Describes the command [command].
who am i (CR) : Displays current user id and access.
who (CR) : Displays currently logged in users.

Return to TABLE OF CONTENTS?
UNIXC Language Commands
cc -o run [file].c (CR) : Compiles source [file].c, using the standard C
compiler `scc2.0' and producing an executable named run. In place of `cc', use
`scc3.0' or `scc' for the latest version of standard C or `pcc' for portable C.
cc -c [file].c (CR) : Compiles source [file].c, using the standard C compiler
`scc2.0' and producing an object file named [file].o.
cc -hnoopt -o run [file].c (CR) : Compiles source [file].c, using the standard

C compiler `scc3.0' and producing an executable file named run without scalar
optimization or vector optimization while `hopt' enables scalar and vector
optimization, Some other optimization related options are `-hinline' for
inlining while `-hnone' is the default no inlining, `-hnovector' for no vector
(vector is the default), and `-h listing' for a pseudo-assembler (CAL) listing.
Some standard C options are `-htask3' for automatic parallelization
(autotasking in crayese) and `-hvector3' for more powerful vector
restructuring. Other `-h' suboptions are `ivdep' for ignore vector dependence,
`-hreport=isvf' generates messages about inlining (i), scalar optimization (s)
and vector optimization (v), and `-hreport=isvf' writes same messages to

`[file].v'. A commonly used form will be
cc -o run -h report=isvf [file].c (CR)
See `man cc' or `docview' for more information.
#define fortran : Form of C header statement to permit the call to a fortran
subroutine from a C program. For example:

#include <stdio.h>
#include <fortran.h>
#define fortran
main()
{

fortran void SUB();
float x = 3.14, y;
SUB(&x, &y);
printf("SUB answer: y = %f for x = %f\n", x, y);

}#pragma _CRI [directive] : Form of C compiler directive placed within the C

code, where some example directives are `ivdep' for ignoring vector
dependence, `novector' for turning off the default vectorization, `vector' for
turning it back on, `inline' for procedure inline optimization, `shortloop',
`noreduction', `getcpus [p]', `relcpus', `parallel........', and `end parallel'. See
`vector directives' for instance in `docview' for more information and
examples.

Return to TABLE OF CONTENTS?
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...