Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

cd - Change remote working directory

&pagelevel(4)&pagelevel

The cd command changes the current working directory on the remote host. If a connection has been set up to a BS2000 FTP server, the cd command can be used to switch between the DMS and POSIX file system if a POSIX file system is available on the remote host (see "FTP client in BS2000"). The current remote working directory can be determined using the pwd
command. Changing the file system always takes you to the HOME directory.

cd

.|..| <remote-directory> | %BS2000 | $HOME | %POSIX


.

The remote directory is not changed (only provided for reasons of compatibility with other implementations).

..

The last partial qualifier (on the extreme right) is removed from the name of the remote working directory in the DMS file system. In the POSIX file system, the directory is changed to the next higher level.

<remote-directory>

Name of the new working directory.

%BS2000

Change to the DMS HOME directory. If you are already in the DMS file system, the %BS2000 specification is synonymous with $HOME.

$HOME

Change to the DMS HOME directory. In order to specify $HOME, you must already be in a DMS directory.

%POSIX

Change to the POSIX HOME directory.


Example

The remote host is a BS2000 host with a POSIX directory.

  1. Query the remote working directory.

    pwd

    257 "/home/usr/tcptest" is current directory.

  2. Change the working directory by adding the suffix man/sam/nach.bs2000.

    cd man/sam/nach.bs2000

    250 "/home/usr/tcptest/man/sam/nach.bs2000" is current directory now.

  3. Query the new working directory.

    pwd

    257 "/home/usr/tcptest/man/sam/nach.bs2000" is current directory.

  4. Change to the DMS directory.

    cd %BS2000

    250 :4:$TEST is current directory now.