• Aucun résultat trouvé

GUIDE TO YOUR ALTOS UNIX® SYSTEM V /386 RELEASE 3.2 DOCUMENTATION

N/A
N/A
Protected

Academic year: 2022

Partager "GUIDE TO YOUR ALTOS UNIX® SYSTEM V /386 RELEASE 3.2 DOCUMENTATION "

Copied!
1132
0
0

Texte intégral

(1)

""':',

Altos UN/X®Systern V/386 Release 3.2

User's Reference

(C,

M,

F)

.... <. :-

'. , ' ,

(2)

Document History

Copyright Notice

Trademarks

Limitations

EDITION Preliminary I;dltlon First Edition Second Edition

PART NUMBER 690-23414-001A 690-23414-001 690-23414-002

DATE February 1990 April 1990 March 1991

Manual Portions Copyright © 1990, 1991 AHos Computer Systems.

Manual Portions Copyright © 1989 AT&T.

Manual Portions Copyright © 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987,1988,1989 Microsoft Corporation.

Manual Portions Copyright © 1983, 1984,1985,1986,1987,1988,1989 The Santa Cruz Operation, Inc.

All rights reserved. Printed In U.S.A.

Unless you request and receive written permission from Altos Computer Systems, you may not copy any part of this document or the software you received, except In the normal use of the software or to make a backup copy of each diskette you receiVed.

The Altos logo, as It appears In this manual, Is a registered trademark of Altos Computer Systems.

386 and 486 are trademarks of Intel Corporation.

HACER Fast File System" Is a trademark of ACER Technologies Corporation.

Microsoft, MS-DOS, and XENIX are registered trademarks of Microsoft Corporation.

PostScript Is a registered trademark of Adobe Systems, Inc.

UNIX Is a registered trademark of UNIX System Laboratories, Inc.

Altos Computer Systems reserves the right to make changes to the product described In this manual at any time and without notice. Neither Altos nor its suppliers make any warranty wHh respect to the accuracy of the information in this manual.

(3)

GUIDE TO YOUR ALTOS UNIX® SYSTEM V /386 RELEASE 3.2 DOCUMENTATION

RUN-TIME SYSTEM

These books come with every system:

~

Installation Guide

Part Number: 690-24096-nnn

=- • Operating System installaiion Upgrade procedure

System Administrator's Guide

Part Number: 690-23415-nnn

• Sysadmsh

• Security

• System tuning, troubleshooting

• Peripherals

• Virtual Disks User's Guide

Part Number: 690-23408-nnn

• Vi, ed, mail, awk, sed

• Shells: sh and csh

• Job scheduling commands User's Reference (C, M, F) Part Number: 690-23414-nnn (also provided online with each operating system)

• (C) Commands

• (M) Miscellaneous files and commands

• (F) File formats

System Administrator's Reference (ADM, HW) Part Number: 690-23416-nnn (also provided online with each operating system)

• (ADM) Administrative commands

• (HW) Hardware information These books may be ordered separately:

~

Using the AOM Menu System

=- Part Numbers: 690-23814-nnn

• Easy-to-use menus to use programs

• Menu manager to add, update, remove menus

~

Tutorial Part Number: 690-23407-nnn

=- • Basic concepts and tasks Files and directories

• Utilities

~

International Operating System Guide

-- Part Number: 690-23810-nnn

• Character sets

• 7-bit vs. 8-bit characters

DEVELOPMENT SYSTEM

Set Part Number: 690-23417-000

Programmer's Reference (CP,S)

• (CP) Programming commands

• (S) System services, library routines

Programmer's Guide

• Lex, lint, yacc

• SCCS, make

• Extended Terminal Interface (ETI)

• Sdb, adb

• Shared libraries

• File and record locking

C Language Guide

• C User's Guide

• C Language Reference

Library Guide

• C Library Guide

• XENIX Development and Portability Guide

• International Development Guide

Developer's Guide

• DOS and OS/2 Development Guide

• STREAMS Primer

• STREAMS Programmer's Guide

• STREAMS Network Programmer's Guide

CodeView and Macro Assembler User's Guide

• The CodeView Debugger

• Macro Assembler User's Guide

Device Driver Writer's Guide

• Writing, compiling, and linking drivers

• SCSI drivers

• STREAMS and line disciplines

• (K) Kernel routines

To order any of the above manuals, call 408/434-6688, ext. 3004 and give the manual title and part number.

(4)
(5)

Operating System Documents for Different Audiences

As shown on the previous page, Altos offers many manuals with Altos UNIX System V-the manu- als you receive will depend on your configuration. To help you decide which manuals are best suited to your needs, we have listed below the manuals according to three broad groups of users.

These lists are only suggested starting points in your search for information. They are not meant to imply that certain users should not read certain manuals. Find the user group that best applies to you, and use its list of manuals as a starting point for your reading, from which you can move on to other manuals.

Note that every Run-time System includes five manuals: the Installation Guide, the User's Guide, the User's Reference, the System Administrator's Guide, and the System Administrator's Refer- ence. The Run-time System reference pages that describe the C, M, F, ADM, and HW commands ("man pages") are provided online as'well. If you have the Development System, all manuals listed under "For Programmers:" come with your operating system. (All Development System reference pages are also provided online.) To order additional manuals, call (408) 434-6688, exten- sion 3004 and give the manual title and part number.

For General Users (especially Beginners):

Tutorial User's Guide

User's Reference (C, M, F) Using the AOM Menu System

For System Administrators (and Advanced Users):

Installation Guide

System Administrator's Guide

System Administrator's Reference (ADM, HW) International Operating System Guide

Programmer's Reference (CP, S)

For Programmers:

Programmer's Guide

Programmer's Reference (CP, S) C Language Guide

Library Guide Developer's Guide

CodeView and Macro Assembler User's Guide Device Driver Writer's Guide

(6)
(7)

Preface

Throughout the documentation, a given command, routine, or file is referred to by its name and a section (in parentheses). For example, the programming command cc, is listed as cc(CP), which indicates that cc is described in the Programming Commands (CP) section.

There is a total of twelve reference sections in Altos UNIX System V, in different volumes of the Operating System and the Development System documents. (These reference sections are often called manual pages, or just man pages, in short.) For example, the cc(CP) command mentioned above is located in the CP section found in the Programmer's Reference.

This document, the User's Reference (e, M, F), contains the following three reference sections:

Section Description Volume

C Commands - used with the User's Reference

Operating System.

M Miscellaneous - information used User's Reference for access to devices, system

maintenance, and communi- cations.

F File Formats - description of User's Reference various system files not defined in

section M.

The following table lists the remaining reference sections, the type of commands they contain, and in which document each is located.

(8)

Section Description Volume ADM Administrative Commands - used System Administrator's

for system administration. Reference

CP Programming Commands - used Programmer's Reference with the Development System.

DOS DOS Cross-development Developer's Guide

subroutines and libraries

HW Hardware device manual pages - System Administrator's information about hardware Reference

devices and device nodes.

K Kernel routines - used for writing Device Driver Writer's

device drivers. Guide

NSL Network Services Library - used Developer's Guide with the STREAMS System.

S System Calls and Library Programmer's Reference

Routines - available for C and assembly language programming.

STR STREAMS manual pages Developer's Guide

XNX XENIX cross-development Library Guide manual pages

The alphabetized table of contents following this preface lists all Altos UNIX System V commands, system calls, library routines, and file formats. In addition, in the front of each individual reference section there is an alphabetized list of all the manual pages contained in that section.

The permuted index, found at the end of the User's Reference, and the end of the Programmer's Reference, is useful in matching a desired task with the manual page that describes it. It too is an organized list of all Altos UNIX System V commands, system calls, library routines, and file formats, but organized according to function, not alphabetically.

Note that some pages in the Operating System documents refer to

"include" files that are actually part of the Development System.

(9)

Alphabetized List

Commands, Systems Calls, Library Routines and File Formats 300 ... 300(C) assert ... assert(S)

4014 ... 4014(C) assign ... assign(C)

450 ... 450(C) asx ... asx(CP) 86rel ... 86rel (F) at ... at(C) _exit ... exit (S) atan ... trig(S) a.out ... a.out(F) atan2 ... trig (S) a641 ... a641(S) atcronsh ... atcronsh(ADM) abort ... abort(S) atof ... atof(S) abs ... abs(S) atof ... strtod(S) accept ... accept(ADM) atoi ... atof(S) access ... access (S) atoi ... strtol (S) acct ... acct(ADM) atol ... ;. atof(S) acct ... acct (F) atol ... strtol (S) acct ... acct (S) audit ... audit(ADM) acctcms ... acctcms (ADM) auditcmd ... auditcmd(ADM) acctcom ... acctcom (ADM) auditd ... auditd(ADM) acctdisk ... acct(ADM) auditsh ... auditsh (ADM) acctdusg ... acct(ADM) authcap ... authcap(F) acctmerg ... acctmerg (ADM) authck ... authck(ADM) accton ... acct(ADM) auths ... auths(C) accton ... accton (ADM) authsh ... authsh(ADM) acctprc ... acctprc (ADM) authsh ... authtsh (ADM) acctprcl ... acctprc (ADM) autoboot ... autoboot(ADM) acctprc2 ... acctprc (ADM) awk ... awk(C) acctsh ... acctsh(ADM) backup ... backup (ADM) acctwtmp ... acct(ADM) backupsh ... backupsh(ADM) acos ... trig (S) badtrk ... badtrk(ADM) adb ... adb(CP) banner ... banner(C) add.vd ... add.vd(ADM) basename ... basename(C) addxusers .... addxusers(ADM) batch ... at(C) adfmt ... adftnt(ADM) bc ... bc(C) admin ... admin(CP) bcheckrc ... brc(ADM) alarm ... alarm(S) bdiff ... bdiff( C) aom ... aom(M) bdos ... bdos(DOS) ar ... ar(CP) bessel ... bessel (S) ar ... ar(F) bfs ... bfs(C) arc~ive ... archi~~ (F)

ascII ... ascu (M)

boot ... boot(HW) brc ... brc(ADM) asctime ... ctime (S) brk ... sbrk(S) asin ... trig (S) brkctl ... brkctl (S) asktime ... asktime (ADM) bsearch ... bsearch(S)

(10)

cal ... cal(C) coltbl ... ; .. coltbl (M) calendar ... calendar(C) comb ... comb(CP) calloc ... malloc(S) comm ... comm(C) cancel ... lp (C) compress ... compress(C) captoinfo ... captoinfo (ADM) configure ... configure (ADM) card Jnfo ... card_info (F) console ... console (M) cat ... cat(C) consoleprint. consoleprint (ADM) cb ... cb(CP) conv ... conv(S) cc ... cc(CP) convkey ... mapkey (M) cd ... cd(C) copy ... copy (C) cdc ... cdc(CP) core ... core (F) cdrom ... cdrom(HW) cos ... trig(S) ceil ... jloor(S) cosh ... sinh(S) cflow ... cjlow(CP) cp ... cp(C) cgets ... cgets (DOS) cpio ... cpio(C) chargefee ... acctsh (ADM) cpio ... cpio (F) chdir ... chdir(S) cpp ... cpp(CP) checkaddr .. checkaddr(ADM) cprintf ... cprintj(DOS) checklist ... checklist (F) cputs ... cputs(DOS) checkmail ... checkmail (C) crash ... crash(ADM) checkque ... checkque (ADM) creat ... creat(S) checkup ... checkup (ADM) creatsem ... creatsem (S) chg audit .... chg audit(ADM)

chgrp ... : ... chgrp(C)

cref ... cref(CP) cron ... : ... cron(C) chmod ... chmod(C) "crontab" ... "crontab"(C) chmod ... chmod(S) crypt ... crypt (C) chown ... chown(C) cscanf ... cscanf(DOS) chown ... chown(S) csh ... csh(C) chroot ... chroot(ADM) csplit ... csplit (C) chroot ... chroot(S) ctags ... ctags(CP) chrtbl ... chrtbl (M) ctermid ... ctermid (S) chsize ... chsize (S) ctime ... clime (S) ckpacct ... acctsh (ADM) ctype ... ctype (S) cleantmp ... cleantmp (ADM) cu ... cu(C) clear ... clear(C) curses ... curses(S) clearerr ... ferror(S) curtbl ... curtbl (M) clock ... clock (F) cuserid ... cuserid(S) clock ... clock(S) custom ... custom (ADM) close ... close (S) cut ... cut(C) clone ... clone (M) cvtcoff ... cvtcoff(M) closedir ... directory (S) cvtomf ... cvtomf(M) clri ... elri (ADM) cxref ... cxref(CP) cmchk ... cmchk(C) daemon.mn ... daemon.mn(M) cmos ... cmos(HW) date ... date (C) cmp ... crnp(C) dbmbuild ... dbmbuild(ADM) col ... col(C) dbminit ... dbm(S) ii

(11)

de ... dc(C) dosrmdir ... dos(C) dcopy ... dcopy (ADM) dparam ... dparam(ADM) dd ... dd(C) drand48 ... drand48(S) deassign ... assign(C) dtox ... dtox(C) default ... default (F) dtype ... dtype(C) defopen ... defopen (S) du ... du(C) defread ... de/open (S) dumpdir ... dumpdir(C) delete ... dbm(S) dup ... dup(S) deliver ... deliver(ADM) dup2 ... dup(S) delta ... delta (CP) echo ... echo(C) del.vd ... del.vd(ADM) ecvt ... ecvt (S) devices ... devices (F) ed ... ed(C) devom ... devnm(C) edata ... end(S) df ... df(C) edit ... ex(C) dial ... dial(ADM) egrep ... grep(C) dial ... dial(S) enable ... enable (C) dialcodes ... dialcodes (F) end ... end(S) dialers ... dialers (F) endgrent ... getgrent (S) diff ... diff( C) endpwent ... getpwent(S) dift3 ... dijJ3 (C) endutent ... getut(S) dir ... dir(F) env ... env(C) dircmp ... dircmp(C) environ ... environ (M) directory ... directory (S) eof ... eo/(DOS) dirent ... dirent (F) erand48 ... drand48(S) dirname ... dirname(C) erf ... eif(S) disable ... disable (C) erfc ... eif(S) diskcmp ... diskcp (C) errno ... perror(S) diskcp ... diskcp(C) error ... error(M) diskusg ... diskusg (ADM) etext ... end(S) display ... display (HW)

displaypkg . displaypkg (ADM) divvy ... divvy (ADM) dlayout ... dlayout(ADM)

ev block ... ev block (S) ev -close ... ev- close (S) ev-count ... ev -count(S) ev =Oush ... eVJush(S) dlvr audit .. dlvr audit(ADM)

dmesg ... dmesg (ADM)

ev _getdev ... ev _getdev (S) ev _getemask ... ev _gtemsk(S) dodisk ... acctsh (ADM) ev _gindev ... ev _gindev (S) dos ... dos(C)

doscat ... dos(C) doscp ... : ... dos(C)

ev init ... ev init (S) ev

=

open ... ev _open (S) ev Jlop ... ev yop (S) dosdir ... dos(C)

dosexterr ... dosexter (DOS) dosformat ... dos(C) dosld ... dosld(CP)

ev read ... ev read (S) ev -resume ... ev resume (S) ev - setemask ... ev stemsk (S) ev =suspend ... ev _susp(S) dosls ... dos(C) ex ... ex(C) dosmkdir ... dos(C) execl ... exec(S) dosrm ... dos(C) execle ... exec (S)

iii

(12)

execlp ... exec (S) fopen ... Jopen(S) execseg ... execseg (S) fork ... Jork(S) execv ... exec (S) format ... Jormat(C) execve ... exec (S) fp_off ... fp_seg(DOS) execvp ... exec (S) fp_seg ... fp_seg(DOS)

e~it ... exit (DOS) fprintf ... printj(S) exit ... exit (S) fputc ... fputc(DOS) exp ... exp(S) fputc ... putc(S) expr ... expr(C) fputchar ... fputc (DOS) fabs ... jloor(S) fputs ... puts(S) factor ... Jactor(C) fread ... /read(S) false ... Jalse(C) free ... malloc(S) fclose ... Jclose(DOS) freopen ... Jopen(S) fclose ... Jclose(S) frexp ... Jrexp(S) fcloseall ... Jclose (DOS) fsave ... Jsave (ADM) fconvert ... /convert (M) fscanf ... scan/(S) fcntl ... Jcntl (M) fsck ... /sck(ADM) fcntl ... Jcntl(S) fsdb ... Jsdb(ADM) fcvt ... ecvt(S) fseek ... Jseek(S) fd ... Jd(HW) fsname ... Jsname(ADM) fdisk ...•... Jdisk(ADM) fspec ... Jspec(F) fdopen ... Jopen(S) fsphoto ... Jsphoto(ADM) fdswap ... /dswap(ADM) fsstat ... Jsstat(ADM) feof ... /error(S) fstat ... stat(S) ferror ... Jerror(S) fstatfs ... statjs(S) fetch ... : ... dbm(S) fstyp ... Jstyp(ADM) mush ... /close (S) ftell ... Jseek(S) fgetc ... /getc(DOS) ftime ... time(S) fgetc ... getc(S) ftok ... stdipc(S) fgetchar ... /getc (DOS) ftw ... ftw(S) fgets ... gets(S) fuser ... Juser(C) fgrep ... grep(C) fwrite ... /read(S) file ... file (C) fwtmp ... fwtmp(ADM) filehdr ... filehdr(F) fxlist ... xlist (S) filelength ... fileleng(DOS) gamma ... gamma(S) fileno ... /error(S) gcvt ... ecvt (S) filesys ... filesys (F) get ... get (CP) filesystem ... filesystem (F) getc ... getc (S) find ... find(C) getch ... getch (DOS) finger ... finger(C) getchar ... getc(S) firstkey ... dbm(S) getche ... getche (DOS) fixhdr ... fixhdr(C) getclk ... getclk (M) fixperm ... fixperm(ADM) getcwd ... getcwd (S) floor ... jloor(S) getdents ... getdents (S) f1ushall ... jlushall (DOS) getegid ... getuid(S) fmod ... jloor(S) getenv ... getenv (S) iv

(13)

geteuid ... getuid(S) hdestroy ... hsearch (S) getgid ... getuid(S) hdr ... hdr(CP) getgrent ... getgrent (S) hdutil ... hdutil (ADM) getgrgid ... getgrent(S) head ... head(C) getgrnam ... getgrent (S) hello ... hello (C) gethostid ... gethostid(S) help ... help (CP) getkernelid ... getsystemid (S) hostid ... hostid(C) getlogin ... get login (S) hp ... hp(C) getopt ... getopt(C) hs ... hs(F) getopt ... getopt(S) hsearch ... hsearch (S) getoptcvt ... getopts (C) hwconfig ... hwconfig(C) getopts ... getopts (C) hypot ... hypot(S) getpass ... getpass (S) i286emul ... i286emul (C) getpgrp ... getpid(S) i386 ... machid(C) getpid ... getpid(S) . id ... id(ADM) getppid ... getpid(S) id ... id(C) getpw ... getpw(S) idaddld ... idaddld(ADM) getpwent ... getpwent(S) idbuild ... idbuild(ADM) getpwnam ... getpwent(S) idcheck ... idcheck (ADM) getpwuid ... getpwent (S) idinstall ... idinstall (ADM) gets ... gets (C) idleout ... idleout (ADM) gets ... gets (S) idload ... idload(ADM) getsystemid ... getsystemid (S) idmemtune . idmemtune (ADM) getty ... getty (M) idmkinit ... idmkinit (ADM)

"gettydefs" ... "gettydefs "(F) idspace ... idspace (ADM) getuid ... getuid(S) idtune ... idtune (ADM) getut ... getut (S) imacct ... imacct(C) getutent ... getut (S) infocmp ... infocmp (ADM) getutid ... getut (S) inir ... init (M) getutline ... getut (S) init ... init (M) getw ... getc(S) initcond ... initcond (ADM) gmtime ... ctime (S) inittab ... inittab (F) goodpw ... goodpw(ADM) inode ... inode (F) gps ... gps(F) inp ... inp(DOS) graph ... graph(ADM) install ... install (ADM) greek ... greek(C) installpkg .... installpkg (ADM) grep ... grep(C) int86 ... int86 (DOS) group ... group (F) int86x ... int86x(DOS) grpcheck ... grpcheck (C) intdos ... intdos (DOS) gsignal ... ssignal (S) intdosx ... intdosx (DOS) haltsys ... haltsys (ADM) integrity ... integrity (ADM) hashcheck ... spell (C) ioctl ... ioctl (S) hashmake ... spell(C) ipcrm ... ipcrm(ADM) hcreate ... hsearch(S) ipcs ... ipcs (ADM) hd ... hd(C) ips ... ips(ADM) hd ... hd(IJW) isalnum ... ctype (S)

v

(14)

isalpha ... ctype (S) Id ... 1d(CP) isascii ... ctype (S) Id ... 1d(M) isatty ... isatty (DOS) Idexp ... frexp (S) isatty ... ttyname (S) Idfcn ... Idfcn (F) isbs ... ips(ADM) Idfcn ... Idfcn (F) iscntrl ... ctype(S) lex ... 1ex(CP) isdigit ... ctype (S) Hind ... lsearch (S) isgraph ... ctype(S) limits ... limits (F) islower ... ctype (S) line ... line (C) ismpx ... ismpx(C) linenum ... linenum (F) isprint ... ctype (S) link ... link(ADM) ispunct ... ctype (S) link ... link(S)

!sspace ... ~type (S) Issue ... zssue (F)

link unix ... link unix(ADM) lint -:: ... : ... lint(CP) isupper ... ctype (S) list ... list(ADM) isverify ... isverify (M) In ... In(C) isxdigit ... ctype (S) locale ... locale (M) itoa ... itoa(DOS) localtime ... ctime (S) jO ... bessel (S) lock ... 10ck(C) jl ... bessel(S) lock ... lock (S) jagent ... jagent (M) lockf ... 10ck[(S)

~n ... be~s~l (S)

JOlD •..•..•...•...•••...•.••..•.. }ozn(C)

locking ... locking (S) log ... exp(S) jrand48 ... drand48(S) log ... 10g(M) jterm ... jterm(C) loglO ... exp(S) jwin ... jwin(C) login ... 10gin(M) kbhit ... kbhit (DOS) logname ... log name (C) kbmode ... kbmode(ADM) logname ... log name (S) keyboard ... keyboard(HW) logs ... 10gs(F) kill ... kill (C) longjmp ... setjmp (S) kill ... kill (S) lorder ... 10rder(CP) killall ... killall (ADM) Ip ... lp(C) kmem ... mem(F) Ip ... lp(HW) ksh ... ksh(C) IpO ... lp(HW) I ... 1(C) Ipadmin ... 1padmin(ADM) 13tol ... 13tol (S) Ipfilter ... Ipfilter(ADM) 164a ... a641(S) Ipforms ... 1pforms(ADM) labelit ... labelit (ADM) Ipmove ... 1psched(ADM) labs ... labs(DOS) Iprint ... 1print(C) langinfo ... lang info (F) Ipsched ... Ipsched (ADM) last ... last (C) Ipsh ... lpsh(ADM) lastlogin ... acctsh (ADM) Ipshut ... Ipsched (ADM) layers ... layers (C) Ipstat ... lpstat(C) layers ... layers (M) Ipusers ... 1pusers(ADM) Ic ... 1c(C) Irand48 ... drand48(S) lcong48 ... drand48(S) Is ... 1s(C) vi

(15)

Isearch ... Isearch (S) Iseek ... Iseek (S) Itoa ... ltoa(DOS) Itol3 ... 13tol (S) m4 ... m4(CP) machid ... machid(C) machine ... machine (HW) mail ... mail (C) maiideUvery .. maildelivery (F) majorsinuse. majorsinuse (ADM) make ... make (CP) makekey ... makekey (ADM) malloc ... malloc(S) man ... man (C) mapchan ... mapchan(F) mapchan ... mapchan(M) mapkey ... mapkey (M) mapscrn ... mapkey (M) mapstr ... mapkey (M) masm ... masm(CP) math ... math(M) matherr ... matherr(S) maxuuscheds . maxuuscheds (F) maxuuxqts ... maxuuxqts (F) mconvert ... mconvert (M) mdevice ... mdevice (F) meisa ... meisa (F) mem ... mem(F) memccpy ... memory (S) memchr ... memory (S) memcmp ... memory(S) memcpy ... memory (S) memset ... memory (S) memtune ... memtune (F) mesg ... mesg(C) messages ... messages(M) mestbl ... mestbl (M) mfsys ... mfsys (F) micnet ... '" micnet (F) mkdev ... mkdev (ADM) mkdir ... mkdir(C) mkdir ... mkdir(DOS) mkfs ... mkfs(ADM) mknod ... mknod(C) mknod ... mknod(S) mkstr ... mkstr(CP)

mktemp ... mktemp (S) mmdf ... mmdf(ADM) mmdfalias .. mmdfalias (ADM) mnlist ... mnlist(ADM) mnttab ... mnttab (F) modf ... frexp(S) monacct ... acctsh(ADM) monitor ... monitor(S) montbl ... montbl (M) more ... more(C) mount ... mount(ADM) mount ... mount(S) mountall ... mountall (ADM) mouse ... mouse(HW) movedata ... movedata (DOS) mrand48 ... drand48(S) mscreen ... mscreen (M) msgctl ... msgctl (S) msgget ... msgget(S) msgop ... msgop(S) mtune ... mtune (F) multiscreen .... multiscreen (M) mv ... mv(C) mvdir ... mvdir(ADM) nap ... nap(S) nbwaitsem ... waitsem (S) ncheck ... ncheck(ADM) netutil ... netutil (ADM) newform ... newform(C) newgrp ... newgrp(C) news ... news(C) nextkey ... dbm(S) nice ... nice (C) nice ... nice (S) nictable ... nictable (ADM) nl ... nl(C) nUst ... nlist(S) nlsadmin ... nlsadmin(ADM) nl_ type ...

nC

type (F) nm ... nm(CP) nohup ... nohup(C) nrand48 ... drand48(S) null ... null (F) nulladm ... acctsh (ADM) numtbl ... numtbl (M) od ... od(C)

vii

(16)

open ... open(S) ps ... ps(C) opendir ... directory (S) pseat ... pscat(C) opensem ... opensem(S) pstat ... pstat(C) otar ... otar(C) ptraee ... ptrace (S) outp ... outp(DOS) purge ... purge (C) pack ... pack(C) purge ... purge(F) parallel ... parallel (HW) pute ... putc(S) passwd ... passwd(C) puteh ... putch (DOS) passwd ... passwd(F) putehar ... putc(S) paste ... paste (C) putenv ... putenv(S) pause ... pause(S) putpwent ... putpwent(S) pax ... pax(C) puts ... puts(S) peat ... pack (C) pututline ... getut (S) pclose ... popen(S) putw ... putc(S) pepio ... pcpio(C) pweheek ... pwcheck(C) peu ... pcu(ADM) pwd ... pwd(C) permissions ... permissions (F) qsort ... qsort(S) perror ... perror(S) queue ... queue (F) pg ... pg(C) queuedefs ... queuedeJs(F) pipe ... pipe(S) quot ... quot(C) plock ... plock(S) ramdisk ... ramdisk(HW) plot ... plot(F) rand ... rand(S) pneh ... pnch (F) random ... random(C) poll ... poll (F) ranlib ... ranlib(CP) popen ... popen(S) ratfor ... ratfor(CP) pow ... ~ ... exp(S) reO ... rcO(ADM) powerfail ... powerfail (M) re2 ... rc2(ADM) pr ... pr(C) rep ... rcp(C) prctmp ... acctsh (ADM) revtrip ... rcvtrip (C) prdaily ... acctsh (ADM) rdehk ... rdchk(S) prf ... prf(HW) read ... read(S) prfde ... profiler(ADM) readdir ... directory (S) prfld ... profiler(ADM) realloc ... malloc(S) prfpr ... profiler(ADM) reboot ... haltsys (ADM) prfsnap ... profiler(ADM) red ... ed(C) prfstat ... profiler(ADM) reduce ... reduce (ADM) printf ... printf(S) regemp ... regcmp (CP) proctl ... proctl (S) regemp ... regex(S) prof ... proJ(CP) regex ... regex(S) profil ... profil(S) regexp ... regexp (S) profile ... profile (M) reject ... accept (ADM) profiler ... profiler(ADM) reloc ... reloc(F) promain ... promain(M) relogin ... relogin (ADM) proto ... proto (ADM) remote ... remote(C) prs ... prs(CP) removepkg . removepkg (ADM) prtaect ... acctsh (ADM) rename ... rename (DOS) viii

(17)

restart ... restart (M) semctl ... semctl (S) restore ... restore (ADM) semget ... semget(S) rewind ... fseek(S) semop ... semop(S) rewinddir ... directory (S) send ... send (ADM) rm ... rm(C) serial ... serial (HW) rmail ... rmail (ADM) setbuf ... setbuf(S) rmb ... rnzb(M) setclock ... setclock (ADM) rmdel ... rmdel (CP) setcolor ... setcolor(C) rmdir ... rm(C) setgid ... setuid (S) rmdir ... rmdir(DOS) setgrent ... getgrent(S) routines ... routines (ADM) setjmp ... setjmp (S) rsh ... rsh(C) setkey ... setkey (C) rtc ... rtc(HW) setlocale ... setlocale (S) runacct ... acctsh (ADM) setmnt ... setmnt(ADM) runacct ... runacct(ADM) setmode ... setmode(C) sal ... sar(ADM) setmode ... setmode (DOS) sa2 ... sar(ADM) setpgrp ... setpgrp (S) sact ... sact(CP) setpwent ... getpwent (S) sadc ... sar(ADM) settime ... settime (ADM) sag ... sag (ADM) setuid ... setuid (S) sar ... sar(ADM) setutent ... getut(S) sbrk ... sbrk(S) setvbuf ... setbuf(S) scanf ... scanf(S) sfsys ... sfsys (F) sccsdiff ... sccsdijf(CP) sgetl ... sputl(S) sccsfile ... sccsfile (F) sh ... sh(C) schedule ... schedule (ADM) shl ... shl(C) scnhdr ... scnhdr(F) shmctl ... shmctl(S) scr_dump ... scr_dump(F) shmget ... shmget(S) screen ... screen (HW) shmop ... shmop(S) scsi ... scsi (HW) shutacct ... acctsh (ADM) scsinfo ... scsinfo (ADM) shutdn ... shutdn(S) sdb ... sdb(CP) shutdown ... shutdown(ADM) sddate ... sddate (C) signal ... signal(S) sdenter ... sdenter(S) sigsem ... sigsem(S) sdevice ... sdevice (F) sin ... trig (S) sdfree ... sdget(S) sinh ... sinh(S) sdget ... sdget(S) size ... size (CP) sdgetv ... sdgetv (S) sleep ... sleep (C) sdiff ... sdiff(C) sleep ... sleep (S) sdleave ... sdenter(S) sop en ... sopen(DOS) sdwaitv ... sdgetv(S) sort ... sort(C) sed ... sed (C) spawnl ... spawn(DOS) seed48 ... drand48(S) spawnvp ... spawn(DOS) seekdir ... directory (S) spell ... spell (C) segread ... segread(DOS) spellin ... spell (C) select ... select (S) spline ... spline (C)

ix

(18)

split ... split (C) su ... su(C) sprintf ... printf(S) submit ... submit(ADM) sputl ... sputl (S) subsystem ... subsystem (M) sqrt ... exp (S) sulogin ... sulogin(ADM) srand48 ... rand(S) sum ... sum(C) sscanf ... scanf(S) swab ... swab(S) ssignal ... ssignal (S) swap ... swap(ADM) startup ... acctsh (ADM) swconfig ... swconfig(C) stat ... stat (F) sxt ... sxt(M) stat ... stat(S) syms ... syms (F) statfs ... statfs (S) sync ... sync(ADM) stdio ... stdio(S) sync ... sync(S) stime ... stime (S) sys_errlist ... perror(S) store ... dbm(S) sys_nerr ... perror(S) strace ... strace(ADM) sysadmsh ... sysadmsh(ADM) strcat ... string(S) sysdef ... sysdef(ADM) strchr ... string(S) sysfiles ... sysfiles (F) strclean ... strclean (ADM) sysi86 ... sysi86(S) strcmp ... string (S) system ... system(S) strcpy ... string(S) systemid ... systemid (F) strcspn ... string(S) systems ... systems (F) strdup ... string (S) systty ... systty (M) strerr ... strerr(ADM) tables ... tables (F) streamio ... streamio (M) tabs ... tabs (C) strftime ... strftime (S) tail ... tail (C) string ... string(S) tam ... tam(S) strings ... strings (C) tan ... trig(S) strip ... strip (CP) tanh ... sinh(S) strlen ... strlen (DOS) tape ... tape(C) strlwr ... strlwr(DOS) tape ... tape (HW) strmcfg ... strmcfg (ADM) tapecntl ... tapecntl (C) strmtune ... strmtune(ADM) tapedump ... tapedump(C) strncat ... string (S) tar ... tar (C) strncmp ... string (S) tar ... tar(F) strncpy ... string (S) tcbck ... tcbck (ADM) strpbrk ... string (S) tdelete ... tsearch (S) strrchr ... string(S) tee ... tee (C) strrev ... strrev(DOS) tell ... tell (DOS) strset ... strset (DOS) telldir ... directory (S) strspn ... string(S) tempnam ... tmpnam(S) strtod ... strtod(S) term ... term(F) strtok ... string(S) termcap ... termcap (F) strtol ... strtol (S) terminal ... terminal (HW) strupr ... strupr(DOS) terminals ... terminals (M) stty ... stty (C) "terminfo" ... "terminfo"(F) stune ... stune (F) "terminfo" ... "terminfo"(M) x

(19)

"terminfo" ... "terminfo"(S) TZ ... tz(M) termio ... termio (M) tzset ... ctime (S) termios ... termios (M) uadmin ... uadmin(S) test ... test(C) uconfig ... uconfig(ADM) tfind ... tsearch (S) uUmit ... ulimit(S) tgetent ... termcap (S) ultoa ... ultoa(DOS) tgetfiag ... termcap(S) umask ... umask(C) tgetnum ... termcap (S) umask ... umask(S) tgetstr ... termcap (S) umount ... umount(ADM) tgoto ... termcap (S) umount ... umount(S) tic ... tic (C) umountall ... mountall (ADM) time ... time (C) uname ... uname (C) time ... time (S) uname ... uname(S) times ... times (S) uncompress ... compress(C) time" ... timex(ADM) unget ... unget(CP) timezone ... timezone (F) ungetc ... ungetc(S) timod ... timod (M) ungetch ... ungetch (DOS) tirdwr ... tirdwr(M) uniq ... uniq(C) tmpfile ... tmPfile(S) unistd ... unistd (F) tmpnam ... tmpnam(S) units ... units(C) toascii ... conv(S) unlink ... link (ADM) toascii ... ctype (S) unlink ... unlink(S) tolower ... conv(S) unpack ... pack(C) tolower ... ctype (S) upcfg ... upsc[g (S) top ... top(F) upsconfig ... upsconfig(ADM) top.ned ... top (F) uptime ... uptime (C) touch ... touch (C) usemouse ... usemouse(C) toupper ... conv(S) ustat ... ustat(S) toupper ... ctype (S) utime ... utime(S) tplot ... tplot(ADM) utmp ... utmp(F) tput ... tput(C) utmpname ... getut(S) tputs ... termcap(S) uuchat ... dial (ADM) tr ... tr(C) uucheck ... uucheck(ADM) translate ... translate (C) uucico ... uucico (ADM) trchan ... trchan(M) uuclean ... uuclean (ADM) true ... true (C) uucp ... uucp(C) tsearch ... tsearch (S) uuencode ... uuencode(C) - tset ... tset(C) uugetty ... uugetty (ADM) tsort ... tsort(CP) uuinstall ... uuinstall (ADM) tty ... tty (C) uulist ... uulist(ADM) tty ... tty(M) uulog ... uucp(C) ttyname ... tty name (S) uuname ... uucp(C) ttyslot ... ttyslot (S) uupick ... uuto(C) turnacct ... acctsh(ADM) uusched ... uusched(ADM) twalk ... tsearch(S) uustat ... uustat(C) types ... types (F) uuto ... uuto(C)

xi

(20)

uutry ... uutry(ADM) xt ... xt(HW) uux ... UUX(C) xtod ... xtod (C) uuxqt ... uuxqt(ADM) xtproto ... xtproto (M) val ... val(CP) xts ... xts(ADM) values ... values (M) xtt ... xtt(ADM) varargs ... varargs(S) yO ... bessel (S) ve ... vc(C) yl ... bessel (S) vddaemon ... vddaemon(ADM) yaee ... yacc (CP) vdinfo ... vdinfo (ADM) yes ... yes (C) vdutil ... vdutil (ADM) yn ... bessel (S) vectorsinuse. vectorsinuse (ADM) zeat ... compress(C) vedit ... vi(C)

vfprintf ... vprint/(S) vi ... vi(C) vidi ... vidi (C) view ... vi(C) vmstat ... vmstat (C) voleopy ... volcopy (ADM) vprintf ... vprint/(S) vsprintf ... vprint/(S) w ... w(C) wait ... wait(C) wait ... wait(S) waitsem ... waitsem(S) wall ... wall(ADM) we ... wc(C) what ... what(C) who ... who(C) whodo ... whodo(C) write ... write (C) write ... write (S) wtinit ... wtinit(ADM) wtmp ... utmp(F) wtmpfix ... fwtmp(ADM) x286emul ... x286emul (C) xatgs ... xargs(C) xbaekup ... xbackup (ADM) xbaeku p ... xbackup (F) xinstall ... xinstall (ADM) xlist ... xlist (S) xpreat ... xprcat(C) xprsetup ... xprsetup (ADM) xprtab ... xprtab (F) xref ... xre/(CP) xrestore ... xrestore (ADM) xstr ... xstr(CP) xii

(21)

Altos UNIX® System V/386 Release 3.2

(C) Commands

... :-:: ..

.. ' . '

' ...

(22)
(23)

Contents

Commands (C) Intro

300,300s 4014 450

assign, deassign at, batch auths awk banner basename bc bdiff bfs cal calendar cat cd checkmail chgrp chmod chown clear cmchk cmp col comm compress, uncompress, zcat copy

cp cpio cron crontab

introduces Altos UNIX System V commands

handle special functions of DASI 300 and 300s terminals

paginator for the TEKTRONIX 4014 terminal handle special functions of the DASI 450 terminal assigns and deassigns devices

executes commands at a later time list and/or restrict kernel authorizations pattern scanning and processing language prints large letters

removes directory names from pathnames invokes a calculator

compares files too large for diff(e) scans big files

prints a calendar

invokes a reminder service concatenates and displays files changes working directory

checks for mail which has been submitted but not delivered

changes group ID

changes the access permissions of a file or directory changes owner ID

clears a terminal screen reports hard disk block size compares two files

filters reverse linefeeds

selects or rejects lines common to two sorted files compress data for storage, uncompress and display compressed files

copies groups of files copies files

copy file archives in and out

executes commands scheduled by at, batch, and crontab

schedule commands to be executed at regular intervals

(24)

crypt csb csplit cu cut date dc dd devnm df ditf dift3 dircmp dirname disable

diskcp, diskcmp dos: doscat, doscp, dosdir, dosformat, dosmkdir, dosls, dosrm, dosrmdir dtox

dtype du echo ed, red enable env ex, edit expr factor false file find finger fixhdr format fuser getopt

getopts, getoptcvt gets

greek

ii

encode/decode

invokes a shell command interpreter with C-like syntax

splits files according to context call another UNIX/XENIX system

cuts out selected fields of each line of a file prints and sets the date

invokes an arbitrary precision calculator converts and copies a file

identi fies device name

report number of free disk blocks compares two text files

compares three files compares directories

delivers directory part of pathname turns off terminals and printers copies or compares floppy disks

access to and manipulation of DOS files and DOS filesystems

change file fonnat from MS-DOS to UNIX detennines disk type

summarizes disk usage echo arguments invokes the text editor

turns on terminals and line printers sets environment for command execution invokes a text editor

evaluates arguments as an expression factor a number

returns with a nonzero exit value determines file type

finds files

finds infonnation about users

changes executable binary file headers fonnat floppy disks and mini-cartridge tapes Identify processes using a file or file structure parses command options

parses command options

gets a string from the standard input select terminal filter

(25)

grep, egrep, fgrep grpcheck

hd head hello hostid hp hwconfig i286emul id ismpx join jterm jwin kill ksh,rksh last layers Ic line In lock logname Ip, cancel Iprint Ipstat Is

machid: i386 mail

man mesg mkdir mknod mnt, umnt more mv newform newgrp news nice nl

searches a file for a pattern checks group file

displays files in hexadecimal format prints the first few lines of a file send a message to another user Print unique hardware ID

handle special functions of Hewlett-Packard terminals

read the configuration information emulate UNIX 80286

prints user and group IDs and names return windowing terminal state joins two relations

reset layer of windowing terminal print size of layer

terminates a process

KornShell, a standard/restricted command and programming language

lists information about contents of directory indicate last logins of users and teletypes layer multiplexer for windowing terminals lists directory contents in columns reads one line

makes a link to a file locks a user's terminal gets login name

send/cancel requests to lineprinter

print to a printer attached to the user's terminal print information about status of LP print service gives information about contents of directories get processor type truth value

interactive message processing system prints reference pages in this guide

permits or denies messages sent to a terminal makes a directory

builds special files mount a filesystem

views a file one screen full at a time moves or renames files and directories changes the format of a text file logs user into a new group print news items

runs a command at a different scheduling priority adds line numbers to a file

iii

(26)

nohup od otar pack, pcat, unpack passwd paste pax pcpio pg pr ps pscat pstat ptar purge pwcheck pwd quot random rcp rcvtrip remote rm rmdir rsh sddate sdiff sed setcolor, setcolour setkey setmode sh shl sleep sort

spell, hashmake, spellin,

hashcheck spline split strings

iv

runs a command immune to hangups and quits displays files in octal format

original tape archive command compresses and expands files

change login, modem (dialup shell), filesystem, or group password

merges lines of files portable archive exchange copy file archives in and out

file perusal filter for soft-copy terminals prints files on the standard output reports process status

ASCII-to-PostScript filter reports system information process tape archives overwrites specified files checks password file

prints working directory name summarizes file system ownership generates a random number copies files across systems

notifies mail sender that recipient is away executes commands on a remote system removes files or directories

removes directories

invokes a restricted shell (command interpreter) prints and sets backup dates

compares files side-by-side invokes the stream editor

set screen color and other screen attributes assigns the function keys

Port modes utility

invokes the shell command interpreter shell layer manager

suspends execution for an interval sorts and merges files

finds spelling errors interpolates smooth curve splits a file into pieces

find the printable strings in an object file

(27)

stty su sum swconfig tabs tail

tape, mcart tapecntl tapedump tar tee test tic time touch tput tr translate true tset tty umask uname uniq units uptime usemouse uucp, uulog, uuname uuencode, uudecode uustat uuto, uupick uux

vc

vi, view, vedit vidi

vmstat w wait wc

sets the options for a terminal

makes the user a super-user or another user calculates checksum and counts blocks in a file produces a list of the software modifications to the system

set tabs on a tenninal displays the last part of a file magnetic tape maintenance program

AT&T tape control for QIC-24/QIC-02 tape device dumps magnetic tape to output file

archives files

creates a tee in a pipe tests conditions terminfo compiler times a command

updates access and modification times of a file queries the terminfo database

translates characters

translates files from one format to another returns with a zero exit value

provide information to set terminal modes gets the terminal's name

sets file-creation mode mask

prints the name of the current system reports repeated lines in a file converts units

displays information about system activity

maps mouse input to keystrokes for use with non- mouse based programs

UNIX-to-UNIX system copy

encode/decode a binary file for transmission via mail uucp status inquiry and job control

public UNIX-to-UNIX system file copy UNIX-to-UNIX system command execution version control

invokes a screen-oriented display editor sets the font and video mode for a video device report paging and system statistics

displays information about who is on the system and what they are doing

awaits completion of background processes counts lines, words and characters

v

(28)

what who whodo write x286emul xargs xprcat xtod yes

vi

identi fies files

lists who is on the system determines who is doing what writes to another user emulate XENIX 80286

constructs and executes commands use transparent printer over modem line change file format from UNIX to MS-DOS prints string repeatedly

(29)

INTRO (C) INTRO (C)

Intro

introduces Altos UNIX System V commands Description

This section describes how to use many of the general-purpose com- mands available in the Altos UNIX System V Operating System.

These command are labeled with a C, as with date (C). The letter

"c"

stands for "command."

Other commands have different labels, such as CP (for "Command Programming") or M (for "Miscellanous "). Refer to the "Preface"

of this manual for a list of all the different reference sections, what commands and utilities each section describes, and in which manual each section is located.

Note that some reference sections, most notable the CP and S sections, are included only with the Development System, which is an optional supplemental package not always included with the standard Operat- ing System.

Syntax

Unless otherwise noted, commands described in the Syntax section of a manual page accept options and other arguments according to the following syntax and should be interpreted as explained below.

name [-option ... J [cmdarg ... J where:

[ ] Square brackets surround an option or cmdarg that is not required.

A pipe (vertical bar) separates mutually exclusive options. Choose one of the items separated by this symbol.

Ellipses (three periods) indicate multiple occurrences of the option or cmdarg .

name This specifies the name of an executable file.

option (Always preceded by a "-".) noargletter ... or,

argletter optarg [, ... ]

March 15,1991 INTR0-1

(30)

INTRO (C) noargletter

argletter optarg

cmdarg

INTRO (C) A single letter representing an option without an option-argument. Note that more than one noargletter option can be grouped after one "-" (Rule 5 in the following text).

A single letter representing an option requiring an option-argument.

An option-argument (character string) satisfying a preceding argletter. Note that groups of optargs fol- lowing an argletter must be separated by commas or separated by white space and quoted (Rule 8 below).

Path name (or other command argument) not begin- ning with "-", or "-" by itself indicating the standard input.

Command Syntax Standard: Rules

These command syntax rules are not followed by all current com- mands, but all new commands use them. getopts (C) should be used by all shell procedures to parse positional parameters and to check for legal options. It supports Rules 3-10 below. The enforcement of the other rules must be done by the command itself.

1. Command names (name above) must be between two and nine characters long.

2. Command names must include only lowercase letters and digits.

3. Option names (option above) must be one character long.

4. All options must be preceded by "-".

5. Options with no arguments may be grouped after a. single

" "

6. The first option-argument (optarg above) following an option must be preceded by white space.

7. Option-arguments cannot be optional.

8. Groups of option-arguments following an option must either be separated by commas or separated by white space and quoted (e.g., -0 xxx,z,yy or -0 "xxx Z yylt).

9. All options must precede operands (cmdarg above) on the command line.

March 15, 1991 INTR0-2

(31)

INTRO (C) INTRO (C) 10. " •• " may be used to indicate the end of the options.

11. The order of the options relative to one another should not matter.

12. The relative order of the operands (cmdarg above) may affect their significance in ways determined by the command with which they appear.

13. "." preceded and followed by white space should only be used to mean standard input.

See Also

getopts(C), exit(S), waiteS), getopt(S)

Diagnostics

Upon termination, each command returns 2 bytes of status, one sup- plied by the system and giving the cause for termination, and (in the case of "normal" termination) one supplied by the program (see waiteS) and exit(S». The former byte is 0 for normal termination; the latter is customarily 0 for successful execution and nonzero to indicate troubles such as erroneous parameters, bad or inaccessible data. It is called variously "exit code", "exit status", or "return code", and is described only where special conventions are involved.

Notes

Not all commands adhere to the syntax described here.

March 15, 1991 INTR0-3

(32)

300 (C) 300 (C)

300,300s

handle special functions of DASI 300 and 300s termi- nals

Syntax

300 [+12] [-n] [-dt,l,c]

300s [ +12] [ -n] [ -dt,l,c ]

Description

The 300 command supports special functions and optimizes the use of the DASI 300 (GSI 300 or DTC 300) terminal; 300s performs the same functions for the DASI 300s (GSI 300s or DTC 300s) terminal. It con- verts half-line forward, half-line reverse, and full-line reverse motions to the correct vertical motions. In the following discussion of the 300 command, it should be noted that unless your system contains the text processing software, references to certain commands (e.g., nroff, neqn, eqn, etc.) will not work. It also attempts to draw Greek letters and other special symbols. It permits convenient use of l2-pitch text.

It also reduces printing time 5 to 70%. The 300 command can be used to print equations neatly, in the sequence:

neqn file •..

I

nroff

I

300

WARNING: if your terminal has a PLOT switch, make sure it is turned on before 300 is used.

The behavior of 300 can be modified by the optional flag arguments to handle l2-pitch text, fractional line spacings, messages, and delays.

+12 permits use of l2-pitch, 6 lines/inch text. DASI 300 termi- nals normally allow only two combinations: lO-pitch, 6 lines/inch, or 12-pitch, 8 lines/inch. To obtain the 12-pitch, 6 lines per inch combination, the user should turn the PITCH switch to 12, and use the +12 option.

March 15, 1989 300-1

(33)

300 (C) -n

-dt,l,c

300 (C) controls the size of half-line spacing. A half-line is, by default, equal to 4 vertical plot increments. Because each increment equals 1/48 of an inch, a 10-pitch line-feed requires 8 increments, while a 12-pitch line-feed needs only 6. The first digit of n overrides the default value, thus allowing for individual taste in the appearance of sub- scripts and superscripts. For example, nroffhalf-lines could be made to act as quarter-lines by using -2. The user could also obtain appropriate half-lines for 12-pitch, 8 lines/inch mode by using the option -3 alone, having set the PITCH switch to 12-pitch.

controls delay factors. The default setting is -d3,90,30.

DASI 300 terminals sometimes produce peculiar output when faced with very long lines, too many tab characters, or long strings of blankless, non-identical characters. One null (delay) character is inserted in a line for every set of t tabs, and for every contiguous string of c non-blank, non- tab characters. If a line is longer than I bytes, 1 +(total length)/20 nulls are inserted at the end of that line. Items can be omitted from the end of the list, implying use of the default values. Also, a value of zero for t (c) results in two null bytes per tab (character). The former may be needed for C programs, the latter for files like letc/passwd.

Because terminal behavior varies according to the specific characters printed and the load on a system, the user may have to experiment with these values to get correct output.

The -d option exists only as a last resort for those few cases that do not otherwise print properly. For example, the file /etc/passwd may be printed using -d3,30,5. The value -dO,! is a good one to use for C programs that have many levels of indentation.

Note that the delay control interacts heavily with the pre- vailing carriage return and line-feed delays. The stty (C) modes nIO cr2 or nIO cr3 are recommended for most uses.

The 300 command can be used with the nroff -s flag or .rd requests, when it is necessary to insert paper manually or change fonts in the middle of a document. Instead of hitting the return key in these cases, you must use the line-feed key to get any response.

In many (but not all) cases, the following sequences are equivalent:

nroff -DOO files. .. and nroff files ...

I

300 nroff -T300-12 files . . . and nroff files. ..

I

300 + 12

The use of 300 can thus often be avoided unless special delays or options are required; in a few cases, however, the additional move- ment optimization of 300 may produce better aligned output.

March 15, 1989 300-2

(34)

300 (C)

See Also

450(C), mesg(C), graph(ADM), stty(C), tabs(C), tplot(ADM)

Notes

300 (C)

Some special characters cannot be correctly printed in column 1 because the print head cannot be moved to the left from there.

If your output contains Greek and/or reverse line-feeds, use a friction- feed platen instead of a forms tractor; although good enough for drafts, the latter has a tendency to slip when reversing direction, distorting Greek characters and misaligning the first line of text after one or more reverse line-feeds.

March 15, 1989 300-3

(35)

4014 (C)

4014

paginator for the TEKTRON IX 4014 terminal Syntax

4014 [ -t ] [ -n ] [ -eN] [ -pL ] [ file ]

Description

4014 (C)

The output of 4014 is intended for a TEKTRONIX 4014 terminal;

4014 arranges for 66 lines to fit on the screen, divides the screen into N columns, and contributes an eight-space page offset in the (default) single-column case. Tabs, spaces, and backspaces are collected and plotted when necessary. TELETYPE Model 37 half- and reverse-line sequences are interpreted and plotted. At the end of each page, 4014 waits for a new-line (empty line) from the keyboard before continuing on to the next page. In this wait state, the command !cmd will send the cmd to the shell.

The command line options are:

-t Do not wait between pages (useful for directing output into a file).

-n Start printing at the current cursor position and never erase the screen.

-eN

Divide the screen into N columns and wait after the last column.

-pL

Set page length to L; L accepts the scale factors i (inches) and I (lines); default is ·lines.

See Also

pr(C)

March 15, 1 989 4014-1

(36)

450 (C) 450 (C)

450

handle special functions of the DASI 450 terminal

Syntax

450

Description

The 450 command supports special functions of, and optimizes the use of, the DASI 450 terminal, or any terminal that is functionally identical, such as the Diablo 1620 or Xerox 1700. It converts half-line forward, half-line reverse, and full-line reverse motions to the correct vertical motions. It also attempts to draw Greek letters and other spe- cial symbols in the same manner as 300(C). It should be noted that, unless your system contains text processing software, certain com- mands (e.g., eqn, nroff, tbI, etc.) will not work. Use 450 to print equations neatly, in the sequence:

neqn file ...

I

nroff

I

450

WARNING: Make sure that the PLOT switch on your terminal is ON before 450 is used. The SPACING switch should be put in the desired position (either 10- or 12-pitch). In either case, vertical spacing is 6 lines/inch, unless dynamically changed to 8 lines per inch by an ap- propriate escape sequence.

Use 450 with the nroff -s flag or .rd requests when it is necessary to insert paper manually or change fonts in the middle of a document.

Instead of hitting the return key in these cases, you must use the line- feed key to get any response.

In many (but not all) cases, the use of 450 can be eliminated in favor of one of the following:

nroff -T450 files ...

or

nroff -T450-12 files ...

The use of 450 can thus often be avoided unless special delays or options are required; in a few cases, however, the additional move- ment optimization of 450 may produce better aligned output.

See Also

300(C), mesg(C), stty(C), tabs(C), graph(ADM), tplot(ADM)

March 15. 1989 450-1

(37)

450 (C)

Notes

450 (C)

Some special characters cannot be correctly printed in column 1 because the print head cannot be moved to the left from there.

If your output contains Greek and/or reverse line-feeds, use it friction- feed platen instead of a forms tractor; although good enough for drafts, the latter has a tendency to slip when reversing direction, distorting Greek characters and misaligning the first line of text after one or more reverse line-feeds.

March 15, 1989 450-2

(38)

ASSIGN (C)

assign, deassign

assigns and deassigns devices Syntax

assign [ -u ] [ -v ] [ -d ] [ device] ...

deassign [ -u ] [ -v ] [ device] ...

Description

ASSIGN (C)

assign attempts to assign device to the current user. The device argu- ment must be an assignable device that is not currently assigned. An assign command without an argument prints a list of assignable de- vices along with the name of the user to whom they are assigned.

deassign is used to "deassign" devices. Without any arguments, deassign will deassign all devices assigned to the user. When argu- ments are given, an attempt is made to deassign each device given as an argument.

With these commands you can exclusively use a device, such as a tape drive or floppy drive. This keeps other users from using the device.

They have a similar effect as chown(C) and chmod(C), although they only act on devices in /dev. Other aspects are discussed further on.

Available options include:

-d Performs the action of deassign. The -d option can be embedded in device names to assign some devices and deassign others.

-v Gives verbose output.

-u Suppresses assignment or deassignment, but performs error check- ing.

The assign command will not assign any assignable devices if it can- not assign all of them. deassign gives no diagnostic if the device can- not be deassigned. Devices can be automatically deassigned at logout, but this is not guaranteed. Device names can be just the begin- ning of the device required. For example,

assign fd

should be used to assign all floppy disk devices. Raw versions of de- vice will also be assigned, e.g., the raw floppy disk devices /dev/rfd?

would be assigned in the above example.

March 15, 1989 ASSIGN-1

(39)

ASSIGN (C) ASSIGN (C) Note that in many installations the assignable devices such as floppy disks have general read and write access, so the assign command may not be necessary. This is particularly true on single-user systems. De- vices supposed to be assignable with this command should be owned by the user asg. The directory Idev should be owned by bin and have mode 755. The assign command (after checking for use by someone else) will then make the device owned by whoever invokes the com- mand, without changing the access permissions. This allows the sys- tem administrator to set up individual devices that are freely avail- able, assignable (owned by asg), or nonassignable and restricted (not owned by asg and with some restricted mode).

Note that the first time assign is invoked, it builds the assignable de- vices table letc/atab. This table is used in subsequent invocations to save repeated searches of the Idev directory. If one of the devices in Idev is changed to be assignable or unassignable (Le., owned by asg), then letc/atab should be removed (by the super-user) so that a correct list will be built the next time the command is invoked.

Files

/etc/atab Table of assignable devices

/dev/asglock File to prevent concurrent access

Diagnostics

Exit code 0 returned if successful, 1 if problems, 2 if device cannot be assigned.

March 15, 1989 ASSIGN-2

Références

Documents relatifs

Using the example above, if your local computer is machine2 and you want to send a copy of lusrlmarktltransfile on machine} to the lusrlcindy directory

Chapter 1, &#34;Installing and Setting Up the Operating System,&#34; describes how to initially install and set up the operating system, reconfigure ports for

With the cursor still positioned on the last line of the file, type P to paste the text above the current line:.. The quick brown fox jumped over the

Summary In this chapter we have seen the following: • The various prompt variables that the shell uses to decide how to format information to display • The system of prompt escapes

The security appliance can use RADIUS servers for user authorization for network access using dynamic access lists or access list names per user. To implement dynamic access lists,

Each remote machine should have an entry in its Systems file for your machine that contains the login ID and password that you add to your /etc/passwd file.. An example of a

usr /vmsys /bin/basename usr / vmsys /bin / chexec usr /vmsys /bin/ chkterm usr /vmsys /bin / cmdfile usr /vmsys /bin/ color_chk usr / vmsys /bin/ creaserve usr /vmsys /bin

The UNIX system supports multiple file systems and file systems of various types, such as the traditional UNIX System V file system, which stores data in blocks of O.SK, lK,