HP ARPA File Transfer Protocol User's Guide (36957-90159)
74 AppendixA
MPE/iX and POSIX Differences
Working With Directories
Working With Directories
When a user logs on as USER.ACCT,GROUP, the current working directory is initialized to
/ACCT/GROUP. If a user creates a hierarchical directory through the FTP/iX MKDIR DIR1
command and then changes to that directory with the FTP/iX CD command, the new
working directory will be /ACCT/GROUP/DIR1. The current working directory can be
identified with the FTP/iX command PWD.
To change directories on the local system, use the FTP/iX LCD command. The LCD
command will automatically preface (./) to the given name if it does not start with a dot or
a slash. This command identifies the new current directory.
To remove directories, use the FTP/iX rmdir command. The (./) is prefaced to the given file
name if it does not start with a dot or a slash.
The rmdir will not work on MPE/iX groups or accounts. Likewise, mkdir creates new
directories, not groups or accounts.
Note that (.) refers to the current directory, (..) refers to the directory above the current
directory, and (/) is used as the separator in the path name. Thus if a file name starts with
(.) or (..), the path traversed to find the file is relative to the current directory, whereas if a
file name starts with (/), the path is independent of the current directory and refers to the
absolute path name.
To change to a different directory outside of the FTP/iX subsystem in the POSIX name
space, use the CHDIR command.
Commands
CHDIR
Changes the process’s current working directory (CWD) on the local system.
Syntax
CHDIR [ [DIR=]dir_name] [;SHOW | NOSHOW]
Parameters
dir_name The name of the new current directory (optional). The dir_name is
assumed to be an MPE/iX name. HFS-named directories can be changed if
dir_name starts with a dot (.) or a slash (/). The dir_name may not end in a
slash and wild carding is not allowed. If dir_name is omitted, your logon
directory is used. Your logon directory is your logon group, in the form:
/LOGON_ACCOUNT/LOGON_GROUP
whereas if you need to change to a different MPE/iX group name, use the
CHGROUP command.
CHGROUP
Switches you from the current group to another group within the logon account to which
you are allowed access (NM capability required). This command is not executable through