TABLE OF CONTENTS I. COMMANDS AND APPLICATION PROGRAMS 450 ................ handle special functions of DASI450 terminal adb .................................................... debugger admin ..................................... administer SCCS files ar ............................... archive and library maintainer as .................................................... assembler banner ................................... print in block letters bas ....................................................... basic bc ..................... arbitrary precision interactive language bdiff .................................................. big diff bfs ............................................ big file scanner cal .............................................. print calendar cat ....................................... concatenate and print cb ................................................. C beautifier cc ................................................... C compiler cd ..................................... change working directory cdb .................................................. C debugger chdir .................................. change working directory chghist ............... change the history entry of an SCCS delta chgrp .............................................. change group chmod ............................................... change mode chown .............................................. change owner cmp ........................................... compare two files col ................................... filter reverse line feeds comb ........................................ combine SCCS deltas comm ............................ print lines common to two files cp ......................................................... copy cpio .............................. copy file archives in and out cpx ......................................... copy a file exactly cref ............................... make cross reference listing crypt ............................................. encode/decode csplit ............................................ context split date ..................................... print and set the date db ........................................................ debug dc .............................................. desk calculator dd ...................................... convert and copy a file delta ........................................ make an SCCS delta deroff .................. remove nroff, troff, and eqn constructs df ....................................... report disk free space diff ............................... differential file comparator diff3 ........................ 3-way differential file comparison diffmark ................ mark changes between versions of a file dsw ........................................ delete interactively du ......................................... summarize disk usage echo ............................................. echo arguments ed .................................................. text editor egrep .............. search a file for lines containing a pattern eqn ......................................... typeset mathematics = (equals) ............................. shell assignment command exit ..................................... terminate command file expr .............. evaluate arguments as an algebraic expression - xv - fc ............................................. Fortran compiler fd2 .............. redirect file descriptor 2 (diagnostic output) fgrep ............... search a file for lines containing keywords file ........................................ determine file type find ................................................. find files gath .............................. gather real and virtual files get ............................... get generation from SCCS file goto ........................................... command transfer graph .............................................. draw a graph grep ................................ search a file for a pattern gsi ................. handle special functions of GSI300 terminal help ............................................... ask for help hp ................. handle special functions of HP 2640 terminal if .......................................... conditional command kill ........................................ terminate a process ld .................................................. link editor lex .................. generate programs for simple lexical tasks ln .................................................. make a link login ............................................ sign onto UNIX logname, logdir, logtty .................. information from login ls ................................... list contents of directory m4 .............................................. macro processor mail .............................. send mail to designated users make ............................................. make a program man ................................. print on-line documentation mesg .................................... permit or deny messages mkdir .......................................... make a directory mm ................................. run off document with PWB/MM mv ........................................ move or rename a file neqn ............................ typeset mathematics on terminal newgrp .................................... log in to a new group next ..................... new standard input for shell procedure nice .............................. run a command at low priority nm .............................................. print name list nohup ........................... run a command immune to hangups nroff, troff .................................... text formatters od ................................................... octal dump onintr ......................... handle interrupts in shell files passwd .................................... change login password plot: t300, t300s, t450 ........................ graphics filters pr ................................................... print file prof ....................................... display profile data prt ............................................. print SCCS file ps ............................................... process status ptx .............................................. permuted index pump ................................ Shell data transfer command pwd ...................................... working directory name quiz ........................................ test your knowledge rc .............................................. Ratfor compiler reform ....................................... reformat text file regcmp ............................... regular expression compile rgrep ............................... search a file for a pattern rjestat ................................ RJE status and enquiries rm ........................................ remove (unlink) files - xvi - rmdel .......................... remove a delta from an SCCS file rmdir .......................................... remove directory roff ................................................ format text rsh ...................... restricted shell (command interpreter) sccsdiff ................... compare two versions of an SCCS file sed ............................................... stream editor send ............................................. submit RJE job sh .................................. shell (command interpreter) shift .................................... adjust Shell arguments size ..................................... size of an object file sleep ......................... suspend execution for an interval sno .......................................... Snobol interpreter sort ........................................ sort or merge files spell ...................................... find spelling errors spline ................................. interpolate smooth curve split .................................. split a file into pieces strip ........................ remove symbols and relocation bits stty ....................................... set terminal options su ....................................... become privileged user sum .................................... print checksum of a file switch ........................... shell multi-way branch command sync ..................................... update the super block tabs ....................................... set tabs on terminal tail ............................ deliver the last part of a file tbl ............................ format tables for nroff or troff tee ................................................ pipe fitting time ............................................. time a command tp ............................... manipulate DECtape and magtape tr ................................................ transliterate troff ............................................ text formatter tty ........................................... get terminal name typo ........................................ find possible typos uname ................................ print name of current UNIX uniq ............................ report repeated lines in a file units ........................................ conversion program vp ............................................... Versatec print wait ................................ await completion of process wc ................................................... word count what ............................................. identify files whatsnew ........................ compare file modification dates while ................................... shell iteration command who ........................................ who is on the system write ..................................... write to another user xargs ............ construct argument list(s) and execute command yacc .............................. yet another compiler-compiler II. SYSTEM CALLS intro .............................. introduction to system calls access .......................... determine accessibility of file alarm ...................... schedule signal after specified time break, brk, sbrk ......................... change core allocation chdir .................................. change working directory chmod ....................................... change mode of file chown .......................... change owner and group of a file - xvii - close .............................................. close a file creat ......................................... create a new file csw ....................................... read console switches dup ........................... duplicate an open file descriptor exec, execl, execv ............................... execute a file exit .......................................... terminate process fork .......................................... spawn new process fstat ................................... get status of open file getgid ................................ get group identifications getpid ............................... get process identification getuid ................................. get user identifications gtty ........................................ get terminal status indir ...................................... indirect system call kill ................................... send signal to a process link ............................................. link to a file logname, logdir, logtty, logpost .............. login information mknod ........................ make a directory or a special file mount ......................................... mount file system nice ....................................... set program priority open ................................ open for reading or writing pause ........................................... indefinite wait pipe ............................. create an interprocess channel profil ................................... execution time profile ptrace ............................................ process trace read ............................................. read from file seek .................................... move read/write pointer setgid ..................................... set process group ID setpgrp ................................ set process group number setuid ...................................... set process user ID signal .................................. catch or ignore signals stat ............................................ get file status stime .................................................. set time stty ....................................... set mode of terminal sync ......................................... update super-block tell ............................................ get file offset time .......................................... get date and time times ......................................... get process times udata ......................................... get per-user data umount ..................................... dismount file system uname .............................. get name of current PWB/UNIX unlink ................................... remove directory entry ustat ................................ get file system statistics utime ...................................... update times in file wait .............................. wait for process to terminate write ........................................... write on a file III. SUBROUTINES abort ..................................... generate an IOT fault abs, fabs ........................................ absolute value alloc, free ...................................... core allocator atan, atan2 ................................ arc tangent function atof .................................. convert ASCII to floating atoi ................................... convert ASCII to integer cgetpid ..................... return character form of process ID - xviii - crypt ......................................... password encoding ctime, localtime, gmtime ......... convert date and time to ASCII descend ..................... search UNIX file system directories ecvt, fcvt .................................... output conversion end, etext, edata ..................... last locations in program exp ........................................ exponential function floor, ceil ......................... floor and ceiling functions fmod ................................... floating modulo function fptrap ............................... floating point interpreter gamma ........................................ log gamma function getarg, iargc ................ get command arguments from Fortran getc, getw, fopen ................................ buffered input getchar .......................................... read character getpw ......................................... get name from UID gmatch .......... match a string with a pattern (like glob(VIII)) hmul ......................................... high-order product ierror ..................................... catch Fortran errors ldiv, lrem ........................................ long division locv ..................................... long output conversion log ........................................... natural logarithm monitor ............................... prepare execution profile nargs ............................................ argument count nlist ................................ get entries from name list perror, sys_errlist, sys_nerr, errno ............ system messages pexec ............................ path search and execute a file plot: openpl et al. .......................... graphics interface pow ..................................... floating exponentiation printf .......................................... formatted print putc, putw, fcreat, fflush ...................... buffered output putchar, flush .................................. write character qsort .............................................. quicker sort rand, srand ............................. random number generator regcmp, regex ........... compile and execute regular expressions reset, setexit ........................... execute non-local goto setfil ................................ specify Fortran file name setjmp, longjmp .......................... execute non-local goto sin, cos ................................ trigonometric functions sleep ............................ suspend execution for interval sqrt ....................................... square root function strcpy, strcat, strcmp, strlen ...... operations on ASCII strings ttyn ............................ return name of current terminal IV. SPECIAL FILES cat ................................... phototypesetter interface dh ............................. DH-11 communications multiplexer dn .......................................... DN-11 ACU interface dp ...................... DP-11, DU-11 synchronous line interface hp .............................. RP04/RP05/RP06 moving-head disk hs .................................... RS03/RS04 fixed-head disk ht ....................................... TU16 magtape interface kl ........................ KL-11 or DL-11 asynchronous interface lp ................................................. line printer mem, kmem, null ..................................... core memory rje ...................... DQS-11B interface for remote job entry - xix - rp .................................. RP-11/RP03 moving-head disk tm .................................. TM11/TU10 magtape interface tty .................................. general terminal interface V. FILE FORMATS AND CONVENTIONS a.out .......................... assembler and link editor output ar ................................ archive (library) file format ascii ................................ map of ASCII character set checklist ............... list of file systems processed by check core .................................. format of core image file cpio ..................................... format of cpio archive directory ................................. format of directories dump ............................... incremental dump tape format ebcdic .............................................. file format fs ................................. format of file system volume fspec ........................ format specification in text files greek .......... graphics for extended TELETYPE Model 37 type-box group ................................................ group file master .......................... master device information table mnttab ................................ mounted file system table passwd ............................................ password file plot ......................................... graphics interface sccsfile .................................... format of SCCS file sha ....................................... Shell accounting file tp .............................................. mag tape format ttys ............................... terminal initialization data utmp ........................................... user information wtmp ......................................... user login history VI. GAMES azel ...................................... satellite predictions bio .......................................... biorhythm analysis bj ....................................... the game of black jack chess ......................................... the game of chess cubic ............................. three dimensional tic-tac-toe factor ....................... discover prime factors of a number moo ............................................... guessing game othello ............................ a game of dramatic reversals sky .......................................... obtain ephemerides ttt ..................................... the game of tic-tac-toe wump ................................ the game of hunt-the-wumpus VII. MISCELLANEOUS terminals ............... descriptions of commonly-used terminals DASI450 .............. DASI450, DIABLO 1620, XEROX 1700 terminals GSI300 ........... GSI300 (DTC300 or DASI300) hard-copy terminals HP2640 ................. Hewlett-Packard 2640 CRT terminal family TermiNet ................... GE TermiNet 300 (and 1200) terminals TI700 ............................ TI 745, 735, and 725 terminals tmac.name ............... standard nroff and troff macro packages VIII. SYSTEM MAINTENANCE 70boot ............................... 11/70 bootstrap procedures ac ............................................. login accounting - xx - bcopy ........................................... disk block copy check ............................. file system consistency check clri ............................................... clear i-node clrm ....................................... clear mode of i-node config ....................................... configure a system crash ........................ what to do when the system crashes cron ............................................... clock daemon cu .................................................... call UNIX dcat ................................ read/write synchronous line dcheck .................. file system directory consistency check devnm ............................................... device name diskboot ................................ disk bootstrap programs dump ............................... incremental file system dump fsdb ....................................... file system debugger getty ......................................... set terminal mode glob ................................. generate command arguments hasp .............................. PWB/UNIX IBM Remote Job Entry icheck .................... file system storage consistency check init ............................. process control initialization lastcom ......................... search shell accounting records mkfs .................................... construct a file system mknod ........................................ build special file mount ......................................... mount file system ncheck ............................ generate names from i-numbers patchup .......................... patch up a damaged file system regen ............................. regenerate system directories restor .......................... incremental file system restore rmall ................................................ remove all romboot ........................... special ROM bootstrap loaders sa ............................................. Shell accounting setmnt ................................... establish mnttab table setuid ................................... set user id of command shutdown ............................... terminate all processing tapeboot ....................... magnetic tape bootstrap programs umount ..................................... dismount file system unixboot ....................... UNIX startup and boot procedures volcopy, labelit ........... copy filesystems with label checking wall ......................................... write to all users - xxi -