z/OS Communications Server: IP User's Guide and Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CDUp subcommand—Change to the parent of the working directory

z/OS Communications Server: IP User's Guide and Commands
SC27-3662-00

Purpose

Use the CDUp subcommand as a special case of the CD subcommand to change the working directory to the next higher directory level. You can use it to simplify the implementation of programs for transferring directory trees between operating systems that have different syntaxes for naming the parent directory.

Format

Read syntax diagramSkip visual syntax diagram
>>-CDUp--------------------------------------------------------><

Parameters

There are no parameters for this subcommand.

Examples

Change the working directory to the next higher directory level:
cd 'a.b.c.d'
  >>>CWD 'a.b.c.d'
 257 "'A.B.C.D.'" is working directory name prefix.
  Command: pwd
 
  >>>PWD
 257 "'A.B.C.D.'" is working directory
  Command: cdup
 
  >>>CDUP
 257 "'A.B.C.'" is working directory name prefix.
  Command: pwd
 
  >>>PWD
 257 "'A.B.C.'" is working directory
  Command: cdup
 
  >>>CDUP
 257 "'A.B.'" is working directory name prefix.
  Command: pwd
 
  >>>PWD
 257 "'A.B.'" is working directory
Change the working directory to the next higher directory level for a z/OS® UNIX file:
cd '/u/user121/A/B/C'
  >>>CWD '/u/user121/A/B/C'
 250 HFS directory /u/user121/A/B/C is the current working directory
  Command: pwd
 
  >>>PWD
 257 "/u/user121/A/B/C" is the HFS working directory
  Command: cdup
 
  >>>CDUP
 250 HFS directory /u/user121/A/B is the current working directory
  Command: pwd
 
  >>>PWD
 257 "/u/user121/A/B" is the HFS working directory
  Command: cdup
 
  >>>CDUP
  250 HFS directory /u/user121/A is the current working directory
  Command: pwd
 
  >>>PWD
 257 "/u/user121/A" is the HFS working directory.
 Command: 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2013
This information center is Built on Eclipse™ ( www.eclipse.org ).