Setting file transfer parameters, Using directories, Displaying information – HP Integrity NonStop H-Series User Manual

Page 44: Setting file transfer parameters using directories

Advertising
background image

You can use the status command to display the current setting of toggle commands and other FTP
session controls.

The following example illustrates how to turn on the bell and the debugging mode before logging
on to a remote host:

ftp> bell
ftp> debug
ftp> open warehs1

Setting File Transfer Parameters

You can set values for several file transfer parameters that affect the way in which file transfers
take place. In addition, you can assign a Guardian file code to a binary file created by either the
get

or recv command by using the filecode command. The default file code for binary-mode

transfers is 0.

Each file transfer parameter has a default value when you start FTP. To change a parameter’s
value, you use the FTP command with the same name as the parameter. For example, use the mode
command to change the file transfer mode, and use the type command to change the data
representation type. (You can also use the ascii, binary, and tenex commands to change the
current data representation type.) The commands that you use to set these parameters are
summarized in

Table 1

.

In the next example, the binary and filecode commands set the current data representation type
to binary and the filecode to 888:

ftp> binary
ftp> filecode 888

You can also change the data representation type with the following command:

ftp> type binary

When you use either the put or send command to send a file to a Guardian system on which the
file does not already exist, the FTP server creates the file with an eight-page primary extent and,
at most, 977 sixteen-page secondary extents. When you are transferring large files, you can
improve performance by specifying larger extent sizes. This allows the system to allocate fewer
extents while the file is being copied. See the description of either the put or send command for
information about how to specify extents.

Using Directories

FTP provides several commands that you can use to work with directories on the remote system.

To determine the name of the current working directory on the remote system, use the pwd command;
to change to the parent directory of the current one, use the cdup command. In the following
example, assume a UNIX directory structure consists of the /usr directory that contains a directory
named /tmp.

ftp> pwd
257 "/usr/tmp" is current default.
ftp> cdup
ftp> pwd
257 "/usr" is current default.

You can use the cd command to select a specific directory. You can also use the mkdir command
to make directories, and the rmdir command to remove directories.

Displaying Information

You can use the dir, ls, mdir, and mls commands to display information from directories on
a remote system.

The following commands display the name of the current directory, the contents of the directory
named projects, and abbreviated information about all files in the current directory with have

44

FTP—Transferring Files

Advertising
This manual is related to the following products: