HP-UX SNAplus2 R7 APPC Application Suite User's Guide
AFTP
AFTP Subcommands
AFTP Subcommand Description
put local-file [remote-file] Use the put subcommand to transfer a copy of one or more files from
the local computer to the remote computer. The local-file parameter is the
name of the local file on your computer you want to copy to the remote
computer. You can use wildcards to create a list of files you want to
copy. If you do not specify remote-file,
AFTP
copies the files into the cur-
rent directory on the remote computer using the local-file name without
the directory path.
send Alias for put.
2.3.4 Directory and File Manipulation on the Target Computer
AFTP includes subcommands to enable you to manipulate files and directories on the target computer, make and
remove directories, list directory contents, rename files, and perform other common operating system functions.
Table 2–4, AFTP Subcommands to Manipulate Directories and Files on the Target Computer, summarizes the
AFTP
subcommands used for directory and file manipulation on the target computer.
Table 2–4 AFTP Subcommands to Manipulate Directories and Files on the Target
Computer
AFTP Subcommand Description
cd directory-spec
Changes the current working directory of the target computer to the direc-
tory you specify with directory-spec.
delete remote-file-spec
or del remote-file-spec
Deletes the file on the target computer you specify with remote-file-spec.
dir [file-spec]
Provides a long directory list of the files and directories on the target
computer. The list is displayed in the target computer’s native format.
Use file-spec to specify particular files you want to display. You can
use wildcards to generate a list of files. If you specify a directory, all files
within that directory on the target computer are displayed. Issue this sub-
command only when a session is open.
ls [file-spec]
Displays a short directory list from the target computer. Only file names
and directory names (not file attributes) are shown. Use file-spec to
specify the files you want to display. You can use wildcards to generate a
list of files. If you specify a directory, all files within that directory are
displayed. Issue this subcommand only when a session is open.
lsd [file-spec]
Provides a short directory list from the target computer that contains only
directories. Use file-spec to specify the directories you want dis-
played on the target computer. You can use wildcards to generate a list of
files. If you specify a directory, all subdirectories within that directory are
displayed. Issue this subcommand only when a session is open.
mkdir directory-spec or
md directory-spec
Creates a new directory on the target computer. You cannot use wild-
cards. Issue this subcommand only when a session is open.
pwd
Displays the name of the present working directory on the target com-
puter. Issue this subcommand only when a session is open.
22