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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

Portability<br />

Related Information<br />

cp, more, mv<br />

v End of the file detected on stdout<br />

v The input file is the same as the output file<br />

2 An incorrect command-line argument<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The –e, –s, –t, and –v options are extensions of the P<strong>OS</strong>IX standard.<br />

cc — Compile, link-edit and assemble C source code and create an<br />

executable file on z/<strong>OS</strong><br />

See c89/xlc or man xlc.<br />

Notes:<br />

1. The cc utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, it is recommended that the c89 utility be used instead because it may<br />

provide greater functionality and is considered the standard for portable <strong>UNIX</strong><br />

applications as defined by P<strong>OS</strong>IX.2 IEEE standard 1003.2-1992.<br />

2. When working in the shell, to view man page information about cc, type: man<br />

c89 or man xlc.<br />

cd — Change the working directory<br />

Format<br />

Description<br />

cd [directory]<br />

cd old new<br />

cd –<br />

tcsh shell: cd [-p] [-l] [-n|-v] [name]<br />

The command cd directory changes the working directory of the current shell<br />

execution environment (see sh) to directory. If you specify directory as an absolute<br />

pathname, beginning with /, this is the target directory. cd assumes the target<br />

directory to be the name just as you specified it. If you specify directory as a<br />

relative pathname, cd assumes it to be relative to the current working directory.<br />

If the variable CDPATH is defined in the shell, the built-in cd command searches for<br />

a relative pathname in each of the directories defined in CDPATH. If cd finds the<br />

directory outside the working directory, it displays the new working directory.<br />

Use colons to separate directories in CDPATH. In CDPATH, a null string represents<br />

the working directory. For example, if the value of CDPATH begins with a separator<br />

character, cd searches the working directory first; if it ends with a separator<br />

character, cd searches the working directory last.<br />

cat<br />

Chapter 2. Shell command descriptions 111

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

Saved successfully!

Ooh no, something went wrong!