• Aucun résultat trouvé

XENIX® System V

N/A
N/A
Protected

Academic year: 2022

Partager "XENIX® System V"

Copied!
864
0
0

Texte intégral

(1)

XENIX® System V

Operating System

User's Reference

(2)
(3)

Infonnation in this document is subject to change without notice and does not represent a commitment on the part of The Santa Cruz Operation, Inc. nor Microsoft Corporation.

The software described in this document is furnished under a license agreement or nondisclosure agreement. The software may be used or copied only in accordance with the tenns of the agreement. It is against the law to copy this software on magnetic tape, disk, or any other medium for any purpose other than the purchaser's personal use.

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

All rights reserved.

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

All rights reserved.

ALL USE, DUPLICATION, OR DISCLOSURE WHATSOEVER BY THE GOVERNMENT SHALL BE EXPRESSLY SUBJECT TO RESTRICTIONS AS SET FORTH IN SUBDIVISION (b) (3) (ii) FOR RESTRICTED RIGHTS IN COMPUTER SOFTWARE AND SUBDIVISION (b) (2) FOR LIMITED RIGHTS IN TECHNICAL DATA, BOTH AS SET FORTH IN FAR 52.227-7013.

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

(4)
(5)

Preface

The complete XENIX Reference is actually divided into nine parts and distributed as individual reference sections in the various volumes of the XENIX Operating, Text Processing, and Development Systems. The following table lists the name, content, and location of each reference section.

Section Description XENIX Volume

ADM Administrative Commands - used System Administrator's Guide for system administration.

C Commands - used with the XENIX User's Reference Operating System.

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

CT Text Processing Commands - used Text Processing Guide with the Text Processing System.

DOS Routines used with the Programmer's Reference Development System

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

section M.

HW Hardware specific manual pages - System Administrator's Guide information about XENIX

procedures specific to your computer.

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

maintenance, and communi- cations.

S System Calls and Library Programmer's Reference

(6)

In the manual pages, a given command, routine, or file is referred to by name and section. For example, the programming command "cc", which is described in the Programming Commands (CP) section, is listed as cc(CP).

The alphabetized table of contents given on the following pages is a complete listing of all XENIX commands, system calls, library routines, and file formats. The permuted index, found at the end of the XENIX User's Reference, and the the end of the XENIX Programmer's Reference, is useful in matching a desired task with the manual page that describes it.

(7)

Alphabetized List

Commands, Systems Calls, Library Routines and File Formats 8087 ... 8087 (HW) badtrk ... badtrk(ADM) 86rel ... 86rel(F) banner ... banner(C) a641 ... a641(S) basename ... basename(C) a.out ... a.out(F) batch ... at(C) abort ... abort(S) bc ... bc(C) abs ... abs(S) bdiff ... bdijJ( C) accept ... accept(C) bdos ... bdos (DOS) access ... access (S) bessel ... bessel (S) acct ... acct (F) bfs ... bfs(C) acct ... acct(S) boot ... boot(HW) acctcom ... acctcom (ADM) brk ... sbrk(S) accton ... accton (ADM) brkctl ... brkctl (S) acos ... trig (S) bsearch ... bsearch(S) adb ... adb(CP) cabs ... hypot(S) adfmt ... adftnt(ADM) cal ... cal(C) admin ... admin(CP) calendar ... calendar (C) alarm ... alarm(S) calIoc ... maUoc (S) aliases ... aliases (M) cancel ... lp (C) aliases. hash ... aliases (M) capinfo ... capinfo(C) aliashash ... aliashash(ADM) cat ... cat(C) ar ... ar(CP) catimp ... catimp (CT) ar ... ar(F) cb ... cb(CP) archive ... archive (F) cc ... cc(CP) ascii ... ascii (M) cd ... cd(C) asctime ... ctime (S) cdc ... cdc (CP) asin ... trig (S) ceil ... jloor(S) asktime ... asktime (ADM) cftow ... cjlow(CP) assert ... assert(S) cgets ... cgets (DOS) assign ... assign(C) character ... eqnchar(CT) asx ... asx(CP) charmap ... charmap(CT) at ... at(C) chdir ... chdir(S) atan ... trig (S) checkcw ... cw(CT) atan2 ... trig (S) checkeq ... eqn{CT) atof ... atof(S) checklist ... checklist (F) atof ... strtod(S) checkmm ... checkmm(CT) atol ... atof(S) chgrp ... chgrp(C) atol ... strtol (S) chmod ... chmod(C)

(8)

chroot ... chroot(S) cu ... cu(C) chsh ... chsh (ADM) curses ... curses (S) chsize ... chsize (S) cuserid ... cuserid(S) clear ... clear(C) custom ... custom (ADM) clear err ... ferror(S) cut ... cut(CT) clock ... clock (F) cw ... cw(CT) clock ... clock (S) cwcheck ... cw(CT) close ... close (S) cxref ... cxref(CP) clri ... clri (ADM) daemon.mn ... daemon.mn(M) cmchk ... cmchk(C) date ... date (C) cmos ... cmos (HW) dbminit ... dbm(S) cmp ... cmp(C) dc ... dc(C) coffconv ... coffconv (M) dd ... dd(C) col ... ... col (CT) deassign ... assign (C) comb ... comb (CP) deco ... deco (CT) comm ... comm(C) default ... default (F) compress ... compress (C) definitions ... eqnchar(CT) config ... config(ADM) defopen ... defopen (S) configure ... configure(ADM) defread ... defopen (S) console ... console (M) delete ... dbm(S) consoleprint. consoleprint (ADM) delta ... delta (CP) contains ... eqnchar(CT) deroff ... deroff(CT) conv ... con v (S) devnm ... devnm (C) convkey ... mapkey (M) df ... df(C) copy ... copy(C) dial ... dial(ADM) core ... core (F) dial ... dial (S) cos ... trig(S) diction ... diction (CT) cosh ... sinh(S) diff ... dijJ(C) cp ... cp(C) dift3 ... diff3 (C) cpio ... cpio(C) diflink ... dijJmk (CT) cpio ... cpio (F) dir ... dir(F) cpp ... cpp(CP) dircmp ... dircmp(C) cprintf ... cprintj(DOS) dirname ... dirname(C) cputs ... cputs(DOS) disable ... disable (C) creat ... createS) diskcmp ... diskcp (C) creatsem ... creatsem (S) diskcp ... diskcp(C) cref ... cref(CP) divvy ... divvy (ADM) cron ... cron(C) dmesg ... dmesg(ADM) cscanf ... cscmif(DOS) dos ... dos(C) csh ... csh(C) doscat ... dos(C) csplit ... csplit(C) doscp ... dos(C) ct ... ct(C) dosdir ... dos(C) ctags ... ctags(CP) dosexterr ... dosexter (DOS) ctermid ... ctermid(S) dosformat ... dos(C) ctime ... ctime (S) dosld ... dosld(CP) ctype ... ctype (S)

ii

(9)

dosls ... dos(C) dosmkdir ... dos(C)

exit ... exit(S) exp ... exp(S) dosrm ... dos(C) explain ... explain (CT) dosrmdir ... dos (C) expr ... expr(C) dparam ... dparam(ADM) fabs ... jloor(S) drand48 ... drand48(S) factor ... factor(C) dtype ... dtype(C) faliases ... aliases (M) du ... du(C) false ... false(C) dump ... dump(C) fclose ... fclose (DOS) dump ... dump(F) fclose ... fclose (S) dumpdir ... dumpdir(C) fcloseall ... fclose (DOS) dup ... dup(S) fcntl ... fcntl (S) dup2 ... dup(S) fcvt ... ecvt (S) dviimp ... dviimp(CT) fd ... fd(HW) echo ... echo (C) fdisk ... fdisk(ADM) ecvt ... ecvt(S) fdopen ... fopen(S) ed ... ed(C) fdswap ... fdswap (ADM) edata ... end(S) feof ... ferror(S) egrep ... grep(C) ferror ... ferror(S) enable ... enable (C) fetch ... dbm(S) en co ... deco(CT) mush ... fclose(S) end ... end(S) fgetc ... fgetc (DOS) endgrent ... getgrent (S) fgetc ... getc (S) endpwent ... getpwent (S) fgetchar ... fgetc (DOS) env ... env(C) fgets ... gets (S) environ ... environ (M) fgrep ... grep (C) eof ... eof(DOS) file ... file(C) eqn ... eqn(CT) filelength ... fileleng (DOS) eqn ... < 0 . eqnchar(CT) fileno ... ferror(S) eqnchar ... eqnchar(CT) filesys ... filesys (F) eqncheck ... eqn(CT) filesystem ... filesystem (F) erand48 ... drand48(S) find ... find(C) erf ... eif(S) finger ... finger(C) erfc ... eif(S) firstkey ... dbm(S) errno ... perror(S) fixhdr ... fixhdr(C) error ... error(M) fixpad ... capinfo (C) etext ... end(S) fixperm ... fixperm(ADM) ex ... ex (C) floor ... jloor(S) execl ... exec (S) flushall ... jlus hall (DOS) execle ... exec (S) fmod ... jloor(S) execlp ... exec(S) fopen ... fopen(S) execseg ... execseg (S) for ... eqnchar(CT) execv ... exec (S) fork ... fork(S)

(10)

fp_seg ... fp_seg(DOS) getpw ... getpw(S) fputc ... fputc(DOS) getpwent ... getpwent(S) fputc ... putc(S) getpwnam ... getpwent(S) fputchar ... fputc (DOS) getpwuid ... getpwent (S) fputs ... puts(S) gets ... gets (CP) fread ... fread(S) gets ... gets(S) free ... malloc(S) getty ... getty (M) freopen ... fopen(S) gettydefs ... gettydefs (F) frexp ... frexp (S) getuid ... getuid (S) fsave ... fsave (ADM) getutent ... getut(S) fscanf ... scanf(S) getutid ... getut(S) fsck ... fsck(ADM) getutline ... getut(S) fsdb ... fsdb(ADM) getw ... getc (S) fseek ... fseek (S) gmtime ... ctime (S) fsname ... fsname(ADM) grep ... grep(C) fsphoto ... fsphoto(ADM) group ... group(F) fstab .. , ... , ... fstab (F) grpcheck ... grpcheck(C) fstat ... stat(S) gsignal ... ssignal (S) ftell ... fseek(S) haltsys ... haltsys (ADM) ftime ... time(S) hashcheck ... spell (CT) ftok ... stdipc(S) hashmake ... spell (CT) ftw ... ftw(S) hcreate ... hsearch (S) fwrite ... .fread(S) hd ... hd(C) fxlist ... xlist(S) hd ... hd(ffW) gamma ... gamma(S) hdestroy ... hsearch (S) gcvt ... ecvt(S) hdr ... hdr(CP) get ... get(CP) head ... head(C) getc ... getc (S) hello ... hello (C) getch ... getch (DOS) help ... help (C) getchar ... getc(S) help ... help (CP) getche ... getche (DOS) hsearch ... hsearch(S) getcwd ... getcwd(S) hwconfig ... hwconfig(C) getegid ... getuid (S) hyphen ... hyphen(CT) getenv ... getenv (S) hypot ... hypot(S) geteuid ... getuid (S) id ... id(C) getgid ... getuid(S) idleout ... idleout{ADM) getgrent ... getgrent(S) imacct ... imacct(C) getgrgid ... getgrent(S) imagen ... imagen (M) getgrnam ... getgrent(S) imagen.pbs ... imagen (M) getlogin ... getlogin (S) imagen. remote ... imagen (M) getopt ... getopt(C) imagen.sbs ... imagen (M) getopt ... getopt(S) imagen.spp ... imagen (M) getpass ... getpass(S) imprint ... imprint(C) getpgrp ... getpid(S) imprint ... imprint(CT) getpid ... getpid(S) inir ... init(M) getppid ... getpid(S) init ... init (M) iv

(11)

inittab ... inittab (F) kbhit ... kbhit(DOS) inode ... inode (F) kbmode ... kbmode(ADM) inp ... inp(DOS) keyboard ... keyboard (HW) install ... install (ADM) kill ... kill (C) int86 ... int86(DOS) kill ... kill (S) int86x ... int86x(DOS) kmem ... mem(F) intdos ... intdos(DOS) I ... I(C) intdosx ... intdosx(DOS) 13tol ... l3tol (S) intro ... Intro(ADM) 164a ... '0 • • • • • • • • • • • • • • • • • • • • • • • • • a641(S) intro ... I ntro (C) labs ... ~ ... labs(DOS) intro ... Intro(CP) last ... last(C) intro ... Intro(CT) Ic ... Ic(C) intro ... ; ... intro(DOS) Id ... ld(M) intro ... Intro(F) Id ... ld(CP) intro ... I ntro (HW) Idexp ... frexp (S) intro ... Intro(M) lex ... lex (CP) intro ... Intro(S) Ifind ... lsearch (S) ioctl ... ioctl (S) line ... line (C) ipbs ... ips (ADM) link ... link(S) ipcrm ... ipcrm(ADM) lint ... lint(CP) ipcs ... ipcs (ADM) In ... In(C) ipr ... ipr(C) localtime ... ctime (S) iprint ... iprint(C) lock ... lock(C) ips ... ips(ADM) lock ... lock(S) isalnum ... ctype (S) lockf ... lockj(S) isalpha ... ctype (S) locking ... locking (S) isascii ... ctype (S) log ... exp(S) isatty ... isatty(DOS) 10glO ... exp(S) isatty ... ttyname (S) login ... login (M) isbs ... ips (ADM) logname ... logname(C) iscntrl ... ctype (S) logname ... logname(S) isdigit ... ctype (S) longjmp ... setjmp (S) isgraph ... ctype (S) look ... look(CT) islower ... ctype (S) lorder ... lorder(CP) isprint ... ctype (S) Ip ... lp(C) ispunct ... ctype (S) Ip ... lp(HW) isspace ... ctype (S) IpO ... lp(HW) isupper ... ctype (S) Ipl ... lp(HW) isxdigit ... ctype (S) Ip2 ... lp(HW) itoa ... itoa (DOS) Ipadmin ... Ipadmin (ADM) itroff ... itroff(CT) Ipinit ... lpinit (ADM) jO ... bessel (S) Ipmove ... lpsched (ADM) jl ... bessel (S) Ipr ... lp(C)

(12)

Ipshut ... lpsched (ADM) mm ... mm(CT) Ipstat ... lpstat(C) mmcheck ... checkmm (CT) Irand48 ... drand48(S) mmt ... mmt(CT) Is ... Is(C) mnt ... mnt(C) Isearch ... lsearch (S) mnttab ... mnttab (F) Iseek ... Iseek(S) modf ... /rexp(S) Itoa ... ltoa(DOS) monitor ... monitor(S) ltol3 ... 13tol (S) more ... more(C) m4 ... m4(CP) mount ... mount(ADM) machine ... machine (HW) mount ... mount(S) mail ... mail (C) mouse ... mouse (HW) make ... make (CP) movedata ... movedata (DOS) makekey ... makekey (ADM) mrand48 ... drand48(S) maliases ... aliases (M) mscreen ... mscreen (M) maliases.hash ... aliases (M) msgctl ... msgctl (S) mallinfo ... maUoc (S) msgget ... msgget(S) malloc ... maUoc (S) msgop ... msgop(S) mallopt ... maUoc (S) multi screen .... multiscreen (M) man ... man (CT) mv ... mv(C) mapchan ... mapchan(F) mvdir ... mvdir(ADM) mapchan ... mapchan(M) nap ... napeS) map key ... mapkey (M) nbwaitsem ... waitsem (S) mapscrn ... mapkey (M) ncheck ... ncheck(ADM) mapstr ... mapkey(M) neqn ... eqn (CT) masm ... masm(CP) neqn ... neqn (CT) master ... master (F) netutil ... netutil (ADM) matherr ... matherr(S) newform ... new/orm (C) mem ... mem(F) newgrp ... newgrp(C) memccpy ... memory(S) news ... news(C) memchr ... memory(S) nextkey ... dbm(S) memcmp ... memory(S) nice ... nice (C) memcpy ... memory(S) nice ... nice (S) memset ... memory(S) nl ... nl(C) mesg ... mesg(C) nlist ... nlist(S) messages ... messages (M) nm ... nm(CP) micnet ... micnet (F) nohup ... nohup(C) mkdev ... mkdev (ADM) nrand48 ... drand48(S) mkdir ... mkdir(C) nroff ... nroff(CT) mkdir ... mkdir (DOS)

mkfs ... mkfs(ADM)

null ... nuU (F) f od ... od(C) ~

mkinittab ... telinit (ADM) oldipr ... ipr(C) mknod ... mknod(C) open ... open(S) mknod ... mknod(S) opendir ... directory (S) mkstr ... mkstr(CP) opensem ... opensem(S) mktemp ... mktemp(S) outp ... outp(DOS) mkuser ... mkuser(ADM) pack ... pack (C) vi

(13)

passwd ... passwd(C) realloc ... malloc(S) passwd ... passwd(F) reboot ... haltsys (ADM) paste ... paste (CT) red ... red(C) pause ... pause(S) regcmp ... regcmp(CP) pcat ... pack(C) regcmp ... regex(S) pclose ... popen(S) regex ... regex(S) perror ... perror(S) regexp ... regexp(S) pg ... pg(C) reject ... accept (C) pipe ... pipe (S) remote ... remote (C) plock ... plock(S) rename ... rename(DOS) popen ... popen(S) restor ... restore (C) pow ... exp(S) restore ... restore (C) pr ... pr(C) rewind ... fseek(S) prep ... prep (CT) rewinddir ... directory (S) printf ... printf(S) rm ... rm(C) proctl ... proctl{S) rmdel ... rmdel (CP) prof ... prof(CP) rmdir ... rm (C) profil ... profil (S) rmdir ... rmdir (C) profile ... profile (M) rmdir ... rmdir(DOS) prs ... prs(CP) rmuser ... rmuser(ADM) ps ... ps(C) rsh ... rsh(C) pstat ... pstat(C) runbig ... runbig(ADM) ptrace ... ptrace (S) sact ... sact(CP) ptx ... ptx(CT) sbrk ... sbrk(S) putc ... putc (S) scanf ... scanf(S) putch ... putch(DOS) sccsdiff ... sccsdiff(CP) putchar ... putc(S) sccsfile ... sccsfile(F) putenv ... putenv (S) schedule ... schedule (ADM) putpwent ... putpwent(S) screen ... screen (HW) puts ... puts(S) scsi ... scsi (HW) pututline ... getut(S) sdb ... sdb(CP) putw ... putc(S) sddate ... sddate(C) pwadmin ... pwadmin(ADM) sdenter ... sdenter(S) pwcheck ... pwcheck(C) sdfree ... sdget(S) pwd ... pwd(C) sdget ... sdget(S) qsort ... qsort(S) sdgetv ... sdgetv(S) quot ... quot(C) sdiff ... sdiff(C) ramdisk ... ramdisk(HW) sdleave ... sdenter(S) rand ... rand(S) sdwaitv ... sdgetv (S) random ... random(C) sed ... sed (C) ranlib ... ranlib(CP) seekdir ... directory (S) ratfor ... ratfor(CP) segread ... segread(DOS) rcp ... rcp(C) semctl ... semctl (S)

(14)

setclock ... setclock (ADM) stat ... stateS) setcolor ... setcolor (C) stdio ... stdio(S) setgid ... setuid (S) stime ... stime (S) setgrent ... getgrent (S) store ...•. dbm(S) setjmp ... setjmp(S) strcat ... string(S) setkey ... setkey (C) strcmp ... string(S) setmnt ... setmnt(ADM) strcpy ... string (S) setmode ... setmode (DOS) string ... string(S) setpgrp ... setpgrp (S) strings ... strings(CP) setpwent ... getpwent (S) strip ... strip (CP) settime ... settime (ADM) strlen ... strlen (DOS) setuid ... setuM (S) strlwr ... strlwr (DOS) setutent ... getut(S) strncat ... string(S) setvbuf ... setbuf(S) strncmp ... string(S) sgetl ... sputl (S) strncpy ... string (S) sh ... sh(C) strrev ... strrev(DOS) shl ... shl(C) strset ... strset(DOS) shmctl ... shmctl (S) strtod ... strtod (S) shmget ... shmget(S) strtol ... strtol (S) shmop ... shmop(S) strupr ... strupr(DOS) shutdn ... shutdn (S) stty ... stty (C) shutdown ... shutdown(ADM) style ... style (CT) signal ... signal (S) su ... su(C) sigsem ... sigsem(S) sum ... sum(C) sin ... trig (S) swab ... swab(S) sinh ... sinh (S) swapadd ... swapadd(S) size ... size (CP) sxt ... sxt(M) sleep ... sleep (C) sync ... sync (ADM) sleep ... sleep (S) sync ... sync (S) soelim ... soelim(CT) sysadmin ... sysadmin (ADM) sopen ... sopen(DOS) sysadmsh ... sysadmsh(ADM) sort ... sort(C)

spawnl ... spawn(DOS) spawnvp ... spawn(DOS)

sys err list ... perror(S) sys - nerr ... perror(S) system ... system(S) special ... eqnchar(CT) systemid ... systemid (F) spell ... spell (CT) systty ... systty (M) spellin ... spell (CT) tail ... tail (C) spline ... spline (CP) tan ... trig (S) split ... split(C) tanh ... sinh(S) sprintf ... print[(S) tape ... tape (C) sputl ... sputl (S) tape ... tape (HW) sqrt ... exp (S) tapedump ... tapedump(C) srand ... rand(S) tar ... tar(C) sscanf ... scanf(S) tar ... tar(F) ssignal ... ssignal (S) tbl ... tbl (CT) stat ... stat (F) tdelete ... tsearch (S) viii

(15)

tee ... tee (C) tsort ... tsort(CP) telinit ... telinit (ADM) tty ... tty (C) tell ... tell (DOS) tty ... tty(M) telldir ... ~irectory (S) tty name ... ttyname(S) tempnam ... :. tmpnam(S) ttys ... ttys (F) term ... term(CT) ttyslot ... ttyslot (S) term ... term (F) twalk ... tsearch(S) termcap ... termcap (M) types ... types (F) terminal ... terminal (HW) TZ ... tz(M) terminals ... terminals (M) tzset ... ctime (S) terminfo ... terminfo (F) nadmin ... uadmin(S) terminfo ... terminfo (M) ulimit ... ulimit(S) terminfo ... terminfo (S) ultoa ... ultoa(DOS) termio ... termio (M) umask ... umask(C) test ... test(C) umask ... umask(S) tfind ... tsearch (S) umount ... umount(ADM) tgetent ... termcap (S) umount ... umount(S) tgetfiag ... termcap (S) uname ... uname(C) tgetnum ... termcap(S) uname ... uname(S) tgetstr ... termcap(S) uncompress ... compress(C) tgoto ... termcap(S) unget ... unget(CP) tic ... tic (C) ungetc ... ungetc (S) tid ... tid (C) ungetch ... ungetch (DOS) time ... time (CP) uniq ... uniq(C) time ... time (S) units ... units(C) times ... times (S) unlink ... unlink(S) tmpfile ... tmp/tle(S) unpack ... pack (C) tmpnam ... tmpnam(S) uptime ... uptime (C) toascii ... conv(S) usemouse ... usemouse (C) toascii ... ctype (S) ustat ... ustat(S) tolower ... conv (S) utime ... utime (S) tolower ... ctype (S) utmp ... utmp (F) top ... top(F) uuchat ... dial (ADM) top.next ... top (F) uucheck ... uucheck (ADM) touch ... touch (C) uucico ... uucico (ADM) toupper ... conv(S) unclean ... uuclean (ADM) toupper ... ctype (S) uucp ... uucp(C) tput ... tput(C) uuencode ... uuencode (C) tputs ... termcap(S) uuinstall ... uuinstall (ADM) tr ... tr(C) uulog ... uucp(C) translate ... translate (C) uuname ... uucp(C) trchan ... trchan (M) uupick ... uuto (C) troff ... trojf(CT) uusched ... uusched(ADM)

(16)

uutry ... uutry(ADM) uux ... uux(C) uuxqt ... uuxqt(ADM) val ... val(CP) varargs ... varargs(S) vedit ... vi (C) vfprintf ... vprintj(S) vi ... vi(C) vidi ... vidi (C) view ... vi(C) vms tat ... vmstat(C) vprintf ... vprintj(S) vsh ... vsh(C) vsprintf ... vprintj(S) w ... w(C) wait ... wait(C) wait ... waiteS) waitsem ... waitsem(S) wall ... wall (ADM) we ... wc(C) what ... what(C) who ... who(C) whodo ... whodo(C) write ... write (C) write ... write (S) wtmp ... utmp (F) xargs ... xargs(C) xlist ... xlist (S) xref ... xre/(CP) xstr ... xstr(CP) yO ... bessel (S) yl ... bessel (S) yaee ... yacc (CP) yes ... yes (C) yn ... bessel (S) zeat ... compress(C)

x

(17)

Contents

Commands (C) intro

accept, reject assign, deassign at, batch awk backup banner basename bc bdiff bfs cal calendar capinfo cat cd chgrp chmod chown clear cmchk cmp comm compress, llncompress, zcat copy

cp cpio cron csh csplit ct

Introduces XENIX commands.

Allows/prevents print requests to a lineprinter or class of printers.

Assigns and deassigns devices.

Executes commands at a later time.

Searches for and processes a pattern in a file.

Performs incremental file system backup.

Prints large letters.

Removes directory names from pathnames.

Invokes a calculator.

Compares files too large for difJ.

Scans big files.

Prints a calendar.

Invokes a reminder service.

Converts termcap descriptions into terminfo descriptions.

Concatenates and displays files.

Changes working directory.

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.

Selects or rejects lines common to two sorted files.

Compress data for storage, uncompress, display a stored file.

Copies groups of files.

Copies files.

Copies file archives in and out.

Executes commands at specified times.

Invokes a shell command interpreter with C-like syntax.

Splits files according to context.

Spawns getty to a remote terminal.

(18)

date dc dd devnm df diff dift3 dircmp dirname disable

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

dtype du dump dumpdir echo ed enable env ex expr factor false file find finger fixhdr format getopt

grep,egrep,fgrep grpcheck

hd head hello help hwconfig id imacct

ii

Prints and sets the date.

Invokes an arbitrary precision calculator.

Converts and copies a file.

Identifies 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 DOS files.

Determines disk type.

Summarizes disk usage.

Performs incremental file system backup.

Prints the names of files on a backup archive.

Echoes 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 information about users.

Changes executable binary file headers.

Format floppy disks.

Parses command options.

Searches a file for a pattern.

Checks group file.

Displays files in hexadecimal format.

Prints the first few lines of a stream.

Send a message to another user.

Asks for help with XENIX commands and SCCS error messages.

Read the configuration information.

Prints user and group IDs and names.

Generate an IMAGEN accounting report.

(19)

imprint ipr,oldipr iprint join kill I last Ie line In lock logname Ip, Ipr, cancel Ipr

Iprint Ipstat Is mail mesg mkdir mknod mnt more mv newform newgrp news nice nI nohup od

pack, pcat, unpack passwd pg pr ps pstat pwcheck pwd quot random rcp

Prints text files on an IMAGEN printer.

Put files into the IMAGEN printer queue.

Converts text files to DVI format.

Joins two relations.

Terminates a process.

Lists information about contents of directory.

Indicate last logins of users and teletypes.

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.

Sends files to the lineprinter queue.

Print to a printer attached to the user's terminal.

Prints lineprinter status information.

Gives information about contents of directories.

Sends, reads, or disposes of mail.

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.

Changes the format of a text file.

Logs users into a new group.

Print news items.

Runs a command at a different priority.

Adds line numbers to a file.

Runs a command immune to hangups and quits.

Displays files in octal format.

Compresses and expands files.

Changes login password.

File perusal filter for soft-copy terminals.

Prints files on the standard output.

Reports process status.

Reports system information.

Checks password file.

Prints working directory name.

Summarizes file system ownership.

Generates a random number.

Copies files across XENIX systems.

(20)

remote restore, restor rm, rmdir rmdir rsh sddate sdiff sed setcolor setkey sh shl sleep sort split stty su sum tail tape tapedump tar tee test tic tid touch tput tr translate true tset tty umask uname uniq units uptime usemouse uucp, uulog,

Executes

Invokes incremental file system restorer.

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.

Assigns the function keys.

Invokes the shell command interpreter.

Shell layer manager.

Suspends execution for an interval.

Sorts and merges files.

Splits a file into pieces.

Sets the options for a terminal.

Makes the user a super-user or another user.

Calculates checksum and counts blocks in a file.

Delivers the last part of a file.

Magnetic tape maintenance program.

Dumps magnetic tape to output file.

Archives files.

Creates a tee in a pipe.

Tests conditions.

Terminfo compiler.

Terminfo decompiler.

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.

Sets terminal modes.

Gets the terminal's name.

Sets file-creation mode mask.

Prints the name of the current XENIX system.

Reports repeated lines in a file.

Converts units.

Displays information about the system activity.

Maps mouse input to keystrokes for use with non- mouse based programs.

uuname Copies files from XENIX to XENIX.

uuencode,uudecode

Encode/decode a binary file for transmission via mail

iv

(21)

uustat uusub uuto, uupick uux

vi, view, vedit vidi

vrnstat vsh w wait wc what who whodo write xargs yes

uucp status inquiry and job control.

Monitor uucp network.

Public XENIX-to-XENIX file copy.

Executes command on remote XENIX.

Invokes a screen-oriented display editor.

Sets the font and video mode for a video device.

Reports virtual memory statistics.

Menu driven visual shell.

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

A waits completion of background processes.

Counts lines, words and characters.

Identifies files.

Lists who is on the system.

Determines who is doing what.

Writes to another user.

Constructs and executes commands.

Prints string repeatedly.

(22)
(23)

INTRO (C) INFKU (C) Name

intro - Introduces XENIX commands.

Description

This section describes use of the individual commands available in the XENIX Operating System. Each individual command is labeled with either a C, a CP, or a CT for easy reference from other volumes. The letter "C" stands for "command". The letters "P" and "T" stand for commands that come with the optional XENIX Development Sys- tem (Programming) and the XENIX Text Processing System, respec- tively. For example, the reference date (C) indicates a reference to a discussion of the date command in the C section; the reference cc (CP) indicates a reference to a discussion of the cc command in the XENIX Development System; and the reference spell (CT) indicates a reference to a discussion of the spell command in the XENIX Text Pro- cessing System. The Text Processing and Development Systems are optional supplemental packages to the standard Operating System.

The "M" Miscellaneous section contains miscellaneous information including a great deal of system maintenance information. Other reference sections include the ' 'S' , System Services section, the

"DOS" Routines section and the "F" File Format section.

Syntax

Unless otherwise noted, commands described in this section accept options and other arguments according to the following syntax:

name [option(s)] [cmdarg(s)]

where:

name option

noargletter

argletter

Is the name of an executable file.

- noargletter (s) or, - argletter <>optarg

where <> is optional whitespace.

Is a single letter representing an option without an argument.

Is a single letter representing an option requiring an argument.

(24)

INTRO (C) optarg cmdarg

See Also

INTRO (C) Is an argument (character string) satisfying preceding argletter.

Is a pathname (or other command argument) not beginning with -. - by itself indicates the standard input.

getopt(C), getopt(S) Diagnostics

Upon termination, each command returns 2 bytes of status, one sup- plied by the system and giving the cause for terminatiorr, 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.

May 16, 1988 Page 2

(25)

ACCEPT (C) ACCEPT (C) Name

accept, reject - Allows/prevents print requests to a lineprinter or class of printers.

Syntax

lusr/libl accept destinations

lusrllib/reject [ -r[ reason] ] destinations Description

accept allows Ip(C) to accept requests for the named destinations. A destination can be either a printer or a class of printers. Use Ipstat(C) to find the status of destinations.

reject prevents Ip(C) from accepting requests for the named destina- tions. A destination can be either a printer or a class of printers. Use Ipstat(C) to find the status of destinations. The following option is useful with reject:

-r[ reason] Associates a reason with disabling (using disable (C)) the printer. The reason applies to all printers listed up to the next -r option. If the -r option is not present or the -r option is given without a reason, then a default reason is used. Reason is reported by Ipstat(C). Please see disable( C) for an example of reason syntax.

Files

/usr/spool/lp/

*

See Also

enable(C), Ip(C), Ipadmin(ADM), Ipinit(ADM), Ipsched(ADM), Ipstat(C), disable(C).

(26)
(27)

ASSIGN (C) Name

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 dev- ices 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 may 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 may be automatically deassigned at

(28)

ASSIGN (C) ASSIGN (C) logout, but this is not guaranteed. Device names may be just the beginning of the device required. For example,

assign fd

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

would be assigned in the above example.

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. Dev- ices 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 dev- ices 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 (i.e., 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.

Return Values

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

May 16,1988 Page 2

(29)

AT(C) Name

at, batch - Executes commands at a later time.

Syntax

at time [date] [+ increment]

at -r job ...

at -I[job ... ]

at -q[ letter] time [date] [job ... ] Description

AT(C)

at and batch read commands from the standard input to be executed at a later time. at allows you to specify a time when the commands should be executed, while batch executes jobs when the system load level permits.

Standard output and standard error output are mailed to the user unless they are redirected elsewhere. The shell environment variables, current directory, umask, and ulimit are retained when the commands are executed. Open file descriptors, traps, and priorities are lost.

A user is permitted to use at if his name appears in the file lusr/lib/cron/at.allow. If that file does not exist, the file lusr/lib/cron/at.deny is checked to determine if the user should be denied access to at. If neither file exists, only root is allowed to sub- mit a job. If only the at.deny file exists, global usage is permitted.

The allow/deny files consist of one user name per line.

The options are:

time The time may be specified as 1, 2, or 4 digits. One- and two- digit numbers are taken to be hours, four digits to be hours and minutes. The time may alternately be specified as two numbers separated by a colon, meaning hour:minute. A suffix am or pm may be appended; otherwise a 24-hour clock time is understood.

The suffix zulu may be used to indicate GMT. The special names noon, midnight, now, and next are also recognized.

date An optional date may be specified as either a month name fol- lowed by a day number (and possibly year number preceded by an optional comma) or a day of the week (fully spelled or abbre- viated to three characters). Two special "days", today and tomorrow, are recognized. If no date is given, today is

(30)

Ai ~C) A1(C)

than the current month (and no year is given), next year is assumed.

increment

The optional increment is simply a number suffixed by one of the following: minutes, hours, days, weeks, months, or years.

(The singular form is also accepted.) Thus, legitimate com- mands include:

at 0815am Jan 24 at 8:15am Jan 24 at now + 1 day at 5 pm Friday

-r Removes jobs previously scheduled by the. at or batch command. Unless you are the super-user, you can only remove your own jobs.

-I Lists all the jobs currently scheduled for the invoking user.

-qletter

Places the specified job in a queue denoted by letter, where letter is any letter from "a" to "z" (not uppercase). The queue letter is appended to the job number. The following letters have special significance:

a at queue b batch queue c cron queue

at and batch write the job number and schedule time to standard error.

batch submits a batch job. It is almost equivalent to "at now," but with a difference: batch goes into a different queue; at now will respond with the error message too late.

Examples

The at and batch commands read the commands to be executed at a later time from the standard input. sh(C) provides different ways of specifying standard input. Within your commands, it may be useful to redirect standard output.

The following sequence can be used at a terminal:

batch

nroffjtlename > outftle

<Ctrl-D> (press "Ctrl" and press "D")

May 16, 1988 Page 2

(31)

AT (C) AT(C)

This sequence, which demonstrates redirecting standard error to a pipe ( I ), is useful in a shell procedure (the sequence of output redirection specifications is significant):

batch «~I

nrofffilename 2>&1 >outfile I mail loginid

!

To have a job reschedule itself, invoke at from within the shell pro- cedure by including code similar to the following within the shell file:

echo "sh shell file" I at 1900 thursday next week

The most simple use of at is to specify that a given command or regu- lar file containing commands,file, be run on the date specified:

at date < file Files

/usr/lib/ cron

/usr/lib/ cron/at.allow /usr/lib/cron/at.deny /usr/lib/ cron/queue /usr/spool/cron/atjobs See Also

main cron directory list of allowed users list of denied users scheduling information spool area

cron(C), kill(C), mail(C), nice(C), ps(C), sh(C) Diagnostics

Complains about syntax errors and times out of range.

(32)
(33)

AWK(C) AWK(C)

Name

awk - Pattern scanning and processing language.

Syntax

awk [ -F re ] [parameter ... ] [ 'prog' ] [ - f progfile ] [ file ... ] Description

The -F re option defines the input field separator to be the regular expression re.

Parameters, in the form x= ... y= ... may be passed to awk, where x and yare awk built-in variables (see list below).

awk scans each input file for lines that match any of a set of patterns specified in prog. The prog string must be enclosed in single quotes (') to protect it from the shell. For each pattern in prog there may be an associated action performed when a line of a file matches the pat- tern. The set of pattern-action statements may appear literally as prog or in a file specified with the - f progfile option.

Input files are read in order; if there are no files, the standard input is read. The file name - means the standard input. Each input line is matched against the pattern portion of every pattern-action statement;

the associated action is performed for each matched pattern.

An input line is normally made up of fields separated by white space.

(This default can be changed by using the FS built-in variable or the -F re option.) The fields are denoted $1, $2, ... ; $0 refers to the entire line.

A pattern-action statement has the form:

pattern { action }

Either pattern or action may be omitted. If there is no action with a pattern, the matching line is printed. If there is no pattern with an action, the action is performed on every input line.

Patterns are arbitrary Boolean combinations ( !,

1 I,

&&, and parentheses) of rational expressions and regular expressions. A rela-

(34)

AWK(C) AWK(C)

tional expression is one of the following:

expression relop expression

expression matchop regular expression

where a relop is any of the six relational operators in C, and a matchop is either - (contains) or ! - (does not contain). A conditional is an arithmetic expression, a relational expression, the special expression

var in array,

or a Boolean combination of these.

The special patterns BEGIN and END may be used to capture control before the first input line has been read and after the last input line has been read respectively.

Regular expressions are as in egrep (see grep(C». In patterns they must be surrounded by slashes. Isolated regular expressions in a pat- tern apply to the entire line. Regular expressions may also occur in relational expressions. A pattern may consist of two patterns separated by a comma; in this case, the action is performed for all lines between an occurrence of the first pattern and next occurrence of the second pattern.

A regular expression may be used to separate fields by using the -F re option or by assigning the expression to the built-in variable FS . The default is to ignore leading blanks and to separate fields by blanks and/or tab characters. However, if FS is assigned a value, leading blanks are no longer ignored.

Other built-in variables include:

ARGC

ARGV

FILENAME

FNR FS NF

NR

OFMT OFS ORS RS

May 16,1988

command line argument count command line argument array name of the current input file

ordinal number of the current record in the current file input field separator regular expression (default blank) number of fields in the current record

ordinal number of the current record output format for numbers (default % .6g) output field separator (default blank) output record separator (default new-line) input record separator (default new-line)

Page 2

(35)

AWK(C) AWK(C)

An action is a sequence of statements. A statement may be one of the following:

if ( conditional ) statement [ else statement ] while ( conditional ) statement

do statement while ( conditional )

for ( expression ; conditional ; expression ) statement for ( var in array ) statement

delete array [subscript]

break continue

{ [ statement ] ... }

expression # commonly variable = expression print [ expression-list ] [ >expression ]

printf format [ , expression-list ] [ >expression ] next # skip remaining patterns on this input line exit [expr] # skip the rest of the input; exit status is expr return [expr]

Statements are terminated by semicolons, new lines, or right braces.

An empty expression-list stands for the whole input line. Expressions take on string or numeric values as appropriate, and are built using the operators +, - , *, I, %, and concatenation (indicated by a blank). The C operators ++, - - , +=, -=, *=, 1=, and % = are also available in expressions. Variables may be scalars, array elements (denoted x[i]), or fields. Variables are initialized to the null string or zero. Array subscripts may be any string, not necessarily numeric; this allows for a form of associative memory. String constants are quoted (").

The print statement prints its arguments on the standard output, or on a file if >expression is present, or on a pipe if

I

cmd is present. The arguments are separated by the current output field separator and ter- minated by the output record separator. The printf statement formats its expression list according to the format (see printj(S) in the Programmer's Reference Manual).

awk has a variety of built-in functions: arithmetic, string, input/output, and general.

The arithmetic functions are: atan2, cos, exp, int, log, rand, sin, sqrt, and srand. int truncates its argument to an integer. rand returns a ran- dom number between 0 and 1. srand ( expr ) sets the seed value for rand to expr or uses the time of day if expr is omitted.

The string functions are:

gsub(jor, repl, in)

behaves like sub (see below), except that it replaces successive occurrences of the regular express (like

(36)

AWK(C)

index(s, t) length(s) match(s, re)

split(s, a,fs)

AWK(C)

returns the position in string s where string t first occurs, or 0 if it does not occur at all.

returns the length of its argument taken as a string, or of the whole line if there is no argument.

returns the position in string s where the regular expressIon re occurs, or 0 if it does not occur at all.

RSTART is set to the starting position (which is the same as the returned value), and RLENGTH is set to the length of the matched string.

splits the string s into array elements a[l], a[2], a[n], and returns to n. The separation is done with the reg- ular expression fs or with the field separator FS if fs is not given.

sprintf(jmt, expr, expr, ... )

formats the expressions according to the printf(S) format given by fmt and returns the resulting string.

sub(jor, repl, in) substitutes the string repl in place of the first instance of the regular expression for in string in and returns the number of substitutions. If in is omitted, awk substitutes in the current record ($0).

substr(s, m, n) returns the n-character substring of s that begins at position m.

The input/output and general functions are:

close(jilename) closes the file or pipe named filename.

cmdlgetline

getline getline <file getline var

pipes the output of cmd into getline; each successive call to getline returns the next line of output from cmd.

sets $0 to the next input record from the current input file.

sets $0 to the next record fromfile.

sets variable var instead.

getline var <file sets var from the next record offile.

system( cmd) executes cmd and returns to its exit status.

All forms of getline return 1 for successful input, 0 for end of file, and -1 for an error.

May 16, 1988 Page 4

(37)

AWK(C) AWK(C)

awk also provides user-defined functions. Such functions may be defined (in the pattern position of a pattern-action statement) as

function name(args, ... ) { stmts } func name(args, ... ) { stmts }

Function arguments are passed by value if scalar and by reference if array name. Argument names are local to the function; all other vari- able names are global. Function calls may be nested and functions may be recursive. The return statement may be used to return a value.

Examples

Print lines longer than 72 characters:

length> 72

Print first two fields in opposite order:

{ print $2, $1 }

Same, with input fields separated by comma and/or blanks and tabs:

BEGIN { FS

= ",[

\t]*[ \t]+"

{ print $2, $1 }

Add up the first column, print sum and average:

{ s += $1 }

END { print "sum is", s," average is", s/NR } Print fields in reverse order:

{ for (i

=

NF; i > 0; - - i ) print $i Print all lines between start/stop pairs:

/start/, /stop/

Print all lines whose first field is different from previous one:

$1 != prev { print; prev = $1 }

(38)

AWK(C)

Simulate echo(C):

BEGIN {

for (i = 1; i < ARGC; i++) printf "%S", ARGV[i]

printf ''\nil exit

}

Print file, filling in page numbers starting at 5:

/pagel { $2 = n++; } { print }

command line: awk - f program n=5 input

See Also

grep(C), sed(C).

1ex(CP), printf(S) in the Programmer's Reference Manual.

Bugs

AWK(C)

Input white space is not preserved on output if fields are involved.

There are no explicit conversions between numbers and strings. To force an expression to be treated as a number add 0 to it; to force it to be treated as a string concatenate the null string (" ") to it.

May 16,1988 Page 6

(39)

BACKUP (C) BACKUP (C) Name

backup - Performs incremental file system backup.

Syntax

backup [ key [ arguments] filesystem ] Description

backup copies all files changed after a certain date in the date in the filesystem. The key specifies the date and other options about the backup, where a key consists of characters from the set 0123456789kfusd. The meanings of these characters are described below:

f Places the backup on the next argument file instead of the default device.

u If the backup completes successfully, writes the date of the beginning of the backup to the file /etc/ddate. This file records a separate date for each file system and each backup level.

0-9 This number is the "backup level". Backs up all files modified since the last date stored in the file /etc/ddate for the same file system at lesser levels. If no date is determined by the level, the beginning of time is assumed; thus the option 0 causes the entire file system to be backed up.

s For backups to magnetic tape, the size of the tape is specified in feet. The number of feet is taken from the next argument.

When the specified size is reached, backup will wait for reels to be changed. The default size is 2,300 feet.

d For backups to magnetic tape, the density of the tape, expressed in BPI, is taken from the next argument. This is used in calcu- lating the amount of tape used per write. The default is 1600.

k This option is used when backing up to a block-structured dev- ice, such as a floppy disk. The size (in K-bytes) of the volume being written is taken from the next argument. If the k argument is specified, any s and d arguments are ignored. The default is to use s and d.

If no arguments are given, the key is assumed to be 9u and a default

(40)

BACKUP (C)

file system is backed up to the default device.

The first backup should be a fullievel-O backup:

backup Ou

BACKUP (C)

Next, periodic level 9 backups should be made on an exponential pro- gression of tapes or floppies:

backup 9u

This progression is shown as follows:

12131214 ...

where backup 1 is used every other time, backup 2 every fourth, backup 3 every eighth, etc.) When the level-9 incremental backup becomes unmanageable because a tape is full or too many floppies are required, a level-l backup should be made:

backup lu

After this, the exponential series should progress as if uninterrupted.

These level-9 backups are based on the level-l backup, which is based on the level-O full backup. This progression of levels of backups can be carried as far as desired.

The default file system and the backup device depend on the settings of the variables DISK and TAPE, respectively, in the file /etc/default/backup.

Files /etc/ddate

/etc/default!backup See Also

Records backup dates of file system!level Default backup information

XENIX System Administrator's Guide

cpio(C), default(F), dumpdir(C), restore(C), sddate(C), backup(F) Diagnostics

If the backup requires more than one volume (where a volume is likely to be a floppy disk or tape), you will be asked to change volumes.

Press RETURN after changing volumes.

May 16, 1988 Page 2

(41)

BACKUP (C) BACKUP (C) Notes

Sizes are based on 1600 BPI for blocked tape; the raw magnetic tape device has to be used to approach these densities. Write errors to the backup device are usually fatal. Read errors on the file system are ignored.

If the default archive medium specified in fete/default/backup or fete/default/restor is block structured, (i.e. floppy disk) then the volume size in Kbytes must be specified on the command line. Nei- ther utility works correctly without this information. For example, using the default device (below) with the backup command, enter the following: backup k 360 The default device entry for fete/default/backup (tape=/dev/xxx) and fete/default/restor (archive=/dev/xxx) is /dev/rfd02.

It is not possible to successfully restore an entire active root file sys- tem.

Warning

When backing up to floppy disks, be sure to have enough formatted floppies ready before starting a backup. You must also be sure to close the floppy door when inserting floppy disks. If you fail to do so in a multi-floppy backup, the entire backup will fail and you will have to begin again.

You should never backup more than one filesystem to the tape devices /dev/nrctO and /dev/nrct2. This is because, although backup can write more than one filesystem to /dev/nrctO or /dev/nrct2, restore may not be able to restore more than one filesystem from these devices.

(42)
(43)

BANNER (C) BANNER (C) Name

banner - Prints large letters.

Syntax

banner strings

Description

banner prints its arguments (each up to 10 characters long) in large letters on the standard output. This is useful for printing names at the front of printouts.

See Also echo(C)

(44)
(45)

BASENAME (C) BASENAME (C) Name

basename - Removes directory names from pathnames.

Syntax

basename string [ suffix ] Description

base name deletes any prefix ending in / and the suffix (if present in string) from string, and prints the result on the standard output. The result is the "base" name of the file, i.e., the filename without any preceding directory path and without an extension. It is used inside substitution marks (,' ) in shell procedures to construct new filenames.

The related command dirname deletes the last level from string and prints the resulting path on the standard output.

Examples

The following command displays the filename memos on the standard output:

basename /usr/johnh/memos.old .old

The following shell procedure, when invoked with the argument /usr/src/cmd/cat.c, compiles the named file and moves the output to a file named cat in the current directory:

cc $1

mv a.out 'basename $1 .c' See Also

dimame(C), sh(C)

(46)
(47)

BC(C) BC (C)

Name

bc - Invokes a calculator.

Syntax

bc [ -c ] [ -I ] [ file ... ] Description

be is an interactive processor for a language that resembles C but pro- vides unlimited precision arithmetic. It takes input from any files given, then reads the standard input. The -I argument stands for the name of an arbitrary precision math library. The syntax for be pro- grams is as follows: L means the letters a-z, E means expression, S means statement.

Comments:

Enclosed in /* and */

Names:

Simple variables: L Array elements: L [ E ]

The words "ibase", "obase", and "scale"

Other operands:

Arbitrarily long numbers with optional sign and decimal point (E)

sqrt (E) length (E) scale (E) L(E, ... ,E) Additive operators:

+

Number of significant decimal digits Number of digits right of decimal point

Multiplicative operators:

*

/

% (remainder)

" (exponentiation)

Références

Documents relatifs

This status report includes the Process Identification Number (PID), the terminal (TTY), the time the process has been executing (TIME), and the command line used to

If this token is present, the auto-login process will supply the specified string if the remote server requires an additional account password.

If file is given, the file-name command changes the currently-remembered file- name to file; otherwise, it prints the currently-remembered file name. initially set to

The system opens the super-user account and displays the message of the day and the super-user prompt (#). Take reasonable care when yw are logged in as the super-user. you

We model the root directory as a finite map from FileID (file identifiers) to natural numbers (inode numbers).. We also define initialState , a distinguished element of State,

If you have both ST506 and SCSI disks installed on your computer, XENIX must be installed on an ST506 disk, using it as the root disk. This implies that if you currently

Development System Packages Description Entire Development System set Basic software development tools Generates programs for lexical analysis Yet another compiler-compiler..

This property is used only if no uid or username ↔ gid mapping for the user can be determined by reading the /etc/passwd file on the host, by using the Sun NIS database, or by