Z/VM Version 7 Release 2
Total Page:16
File Type:pdf, Size:1020Kb
z/VM Version 7 Release 2 OpenExtensions Commands Reference IBM SC24-6297-01 Note: Before you use this information and the product it supports, read the information in “Notices” on page 547. This edition applies to Version 7.2 of IBM z/VM (product number 5741-A09) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2020-12-02 © Copyright International Business Machines Corporation 1993, 2020. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures................................................................................................................. ix Tables.................................................................................................................. xi About This Document..........................................................................................xiii Intended Audience.................................................................................................................................... xiii Conventions Used in This Document........................................................................................................ xiii Escape Character Notation.................................................................................................................. xiii Case-Sensitivity....................................................................................................................................xiii Typography...........................................................................................................................................xiii Syntax, Message, and Response Conventions..........................................................................................xiv Where to Find More Information...............................................................................................................xvi Links to Other Documents and Websites............................................................................................ xvi How to Send Your Comments to IBM...................................................................xvii Summary of Changes for z/VM OpenExtensions Commands Reference................. xix SC24-6297-01, z/VM 7.2 (September 2020)...........................................................................................xix SC24-6297-00, z/VM 7.1 (September 2018)...........................................................................................xix SC24-6204-01, z/VM 6.4 (November 2016)............................................................................................xix Chapter 1. OpenExtensions Shell Commands......................................................... 1 Reading the Command Descriptions........................................................................................................... 1 Format Section....................................................................................................................................... 1 Description Section................................................................................................................................ 3 Options Section...................................................................................................................................... 3 Examples Section................................................................................................................................... 3 Environment Variables Section.............................................................................................................. 3 Localization Section................................................................................................................................3 Files Section............................................................................................................................................4 Usage Notes Section.............................................................................................................................. 5 Exit Values Section................................................................................................................................. 5 Limits Section......................................................................................................................................... 5 Portability Section.................................................................................................................................. 5 Related Commands................................................................................................................................ 5 Default File Permissions.............................................................................................................................. 5 alias — Display or create a command alias................................................................................................. 6 ar — Create or maintain library archives......................................................................................................9 awk — Process programs written in the awk language.............................................................................13 basename — Return the nondirectory components of a path name........................................................28 bc — Use the arbitrary-precision arithmetic calculation language...........................................................29 bg — Move a job to the background...........................................................................................................44 break — Exit from a for, select, while, or until loop in a shell script.........................................................45 c89/cxx — Compile C/C++ source code and create an executable file....................................................46 cat — Concatenate and display a text file................................................................................................. 54 cd — Change the working directory...........................................................................................................56 chgrp — Change the group owner of a file or directory.............................................................................59 chmod — Change the mode of a file or directory...................................................................................... 61 chown — Change the owner or group of a file or directory.......................................................................64 iii cksum — Calculate and write checksums and byte counts......................................................................66 cmp — Compare two files.......................................................................................................................... 68 cms — Enter a CMS command from the shell........................................................................................... 70 cmsfile — Redirect contents of standard input.........................................................................................71 : (colon) — Do nothing, successfully..........................................................................................................73 comm — Show and select or reject lines common to two files................................................................ 74 command — Run a simple command........................................................................................................ 76 compress — Use Lempel-Ziv compression............................................................................................... 78 continue — Skip to the next iteration of a loop in a shell script................................................................81 cp — Copy a file.......................................................................................................................................... 82 cpio -- Copy in/out file archives.................................................................................................................85 cut — Cut out selected fields from each line of a file................................................................................89 date — Display the date and time..............................................................................................................91 dd — Convert and copy a file......................................................................................................................95 diff — Compare two text files and show the differences.......................................................................... 99 dirname — Return the directory components of a path name............................................................... 104 . (dot) — Run a shell file in the current environment.............................................................................. 106 echo — Write arguments to standard output..........................................................................................107 ed — Use the ed line-oriented text editor............................................................................................... 109 env — Display environments, or set an environment for a process....................................................... 117 eval — Construct a command by concatenating arguments.................................................................. 119 exec — Run a command and open, close, or copy the file descriptors.................................................