16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1. Introduction to shell commands and DBCS<br />

This is an introduction to the shell commands and the doublebyte character set<br />

(DBCS).<br />

Reading the command descriptions<br />

Format<br />

Each shell command appears in alphabetic order. The description for each<br />

command is divided into several topics, which are explained in the following<br />

paragraphs. Some of these topics apply only to a few command descriptions. Also,<br />

some command descriptions include special topics that are not explained here.<br />

The Format topic provides a quick summary of the command’s format, or syntax.<br />

The syntax was chosen to conform to general <strong>UNIX</strong> usage. For example, here is<br />

the format of the ls command:<br />

ls [–AabCcdFfgiLlmnopqRrstuWx1] [pathname ...]<br />

The format takes the form of a command line as you might type it into the system; it<br />

shows what you can type in and the order in which you should do it. The parts<br />

enclosed in square brackets are optional; you can omit them if you choose. Parts<br />

outside the square brackets must be present for the command to be correct.<br />

The format begins with the name of the command itself. <strong>Command</strong> names always<br />

appear in bold Courier (typewriter) font.<br />

After the command name comes a list of options, if there are any. A typical z/<strong>OS</strong><br />

shell command option consists of a dash (–) followed by a single character, usually<br />

an uppercase or lowercase letter. For example, you might have –A or –a.<br />

Note: The case of letters is important; for example, in the format of ls, –a and –A<br />

are different options, with different effects.<br />

If you are going to specify several options for the same command, you can put all<br />

the option characters after the same dash. Or you can put each option after its own<br />

dash. Or you can rearrange the order of options. For example,<br />

ls -A -a ls -Aa ls -a -A ls -aA<br />

are all equivalent.<br />

The format line shows options like in bold Courier (typewriter) font. In the<br />

description of ls, all options are shown in one long string after the single dash. But<br />

another common option form is:<br />

-x value<br />

where –x is a dash followed by a character, and value provides extra information for<br />

using that option. For example, here is the format for the sort command, which<br />

takes unsorted input and sorts it:<br />

sort [–cmu]<br />

[–o outfile]<br />

[–t char]<br />

[–yn]<br />

[–zn]<br />

[–bdfiMnr]<br />

© Copyright IBM Corp. 1996, 2007 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!