UNIX System V User's Reference Manual AT&T
Total Page:16
File Type:pdf, Size:1020Kb
ATs.T ~vst8m ., UNIX® System V User's Reference Manual AT.T UNIX® System V I" User's Reference Manual AT&T Prentice-Hall, Inc., Englewood Cliffs, NJ 07632 Library of Congress Catalog Card Number: 87-60148 Editorial/production supervision: Karen S. Fortgang Cover illustration: Jim Kinstry Manufacturing buyer: S. Gordon Osbourne © 1987,1986 by AT&T. All Rights Reserved. IMPORTANT NOTICE TO USERS While every effort has been to ensure the accuracy of all information in this document, AT&T assumes no liability to any party for any loss or damage caused by errors or omissions or statements of any kind in the UNIX@ Sys tem V User's Reference Manual ©AT&T, its upgrades, supplements, or spe cial editions, whether such errors are omissions or statements resulting from negligence, accident or any other cause. AT&T further assumes no liability arising out of the application or use of any product or system described herein; nor any liability for incidental or consequential damages arising from the use of this document. AT&T disclaims all warranties regarding the infor mation contained herein, whether expressed, implied or statutory, including implied warranties or merchantability or fitness for a particular purpose. AT&T reserves the right to make changes without further notice to any pro ducts herein to improve reliability, function or design. No part of this publication may be reproduced, transmitted or used in any form or by any means-graphic, electronic, mechanical or chemical, including photocopying, recording in any medium, taping, by any computer or informa tion storage and retrieval systems, etc. without prior permission in writing from AT&T. Dataphone is a registered trademark of TEKTRONIX is a trademark of TEKTRONIX. AT&T. Teletype is a registered trademark of AT&T. DEC is a trademark of Digital Equipment. TermiNet is a trademark of General Electric. Diablo is a registered trademark of Xerox. UNIX is a registered trademark of AT&T. DOCUMENTER'S WORKBENCH is a Versatec is a registered trademark of trademark of AT&T. Versatec. HP is a trademark of Hewlett-Packard. All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher. Printed in the United States of America 10 9 8 7 6 5 4 3 2 ISBN 0-13-940487-2 025 Prentice-Hall International (UK) Limited, London Prentice-Hall of Australia Pty. Limited, Sydney Editora Prentice-Hall do Brasil, Ltda., Rio de Janeiro Prentice-Hall of Canada Inc., Toronto Prentice-Hall Hispanoamericana, S.A., Mexico Prentice-Hall of India Private Limited, New Delhi Prentice-Hall of Japan, Inc., Tokyo Prentice-Hall of Southea~t Asia Pte. Ltd., Singapore ~~ ..~ \.....c,. \ ~ ~:\ ~'.} r I 'y? .1t,.. \~. ,:<"/intro(1) ...................................... introduction to commands and application programs 300,300s(1) ......................... handle special functions of DASI 300 and 300s terminals 4014(1) .................................................................... paginator for the Tektronix 4014 terminal 450(1) ....................................................... handle special functions of the DASI 450 terminal ar(1) ....................................................... archive and library maintainer for portable archives at, batch(1) ............................................................................ execute commands at a later time awk(1) .................................................................... pattern scanning and processing language banner(1) .................................................................................................................... make posters basename, dirname(1) ............................................................. deliver portions of path names bc(1) .............................................................................. arbitrary-precision arithmetic language bdiff(1) ............................................................................................. :...................................... big diff bfs(1) ........................................................................................................................ big file scanner cal(1) ........................................................................................................................... print calendar calendar(l) ........................................................................................................... reminder service cat(1) ................................................................................................... concatenate and print files cd(1) ...................................................................................................... change working directory chmod(1) .................................................................................................................... change mode chown, chgrp(1) ..................................................................................... change owner or group cmp(1) ................................................................................................................. compare two files col(1) .................................................................................................... :..... filter reverse line-feeds comm(1) ...................................................... select or reject lines common to two sorted files cp, In, mv(1) ........................................................................................... copy, link or move files cpio(l) ............................................................................................. copy file archives in and out crontab(1) ............................................................................................................... user crontab file crypt(1) .................................................................................................................... encode/decode csplit(1) ......................................................................................................................... context split ct(1C) ...................................................................................... spawn getty to a remote terminal cu(lC) .................................................................................................... call another UNIX system cut(1) ...................................................................... cut out selected fields of each line of a file date(1) .......................................................................................................... print and set the date dc(1) .......................................................................................................................... desk calculator dd(1M) ...................................................................................................... convert and copy a file deroff(1) ................................................................ remove nroff/troff, tbl, and eqn constructs df(1M) ............................................................. report number of free disk blocks and i-nodes diff(1) .................................................................................................. differential file comparator diff3(1) ................................................................................... 3-way differential file comparison dircmp(1) ...................................................................................................... directory comparison du(1M) ........................................................................................................ summarize disk usage echo(1) ................................................................................................................... echo arguments TABLE OF CONTENTS v Table of Contents ed, red (1) . ........ ......... ............ ................... ...... ........... ........... .................................... ...... ... text editor edit(l) ....................................................................... text editor (variant of ex for casual users) egrep(l) .......................................... search a file for a pattern using full regular expressions enable, disable(l) .............................................................................. enable/disable LP printers env(l) ........................................................................ set environment for command execution ex (1) ..................................... ........................................................................................ ..... text editor expr(l) .............................................................................. evaluate arguments as an expression factor(l) ........................................................................... obtain the prime factors of a number fgrep(l) .................................................................................. search a file for a character string file(l) ................................................................................................................. determine file type find(l) .................................................................................................................................. find files gdev: hpd, erase, hardcopy, tekset, td(lG) ............... graphical device routines and filters ged(lG) ................................................................................................................... graphical editor getopt(l) .................................................................................................