Example, Disconnect, Exit – HP Integrity NonStop H-Series User Manual

Page 53: Dir disconnect exit

Advertising
background image

Example

To delete a file named custlist, enter the following command:

ftp> delete custlist

dir

Use the dir command to display the contents of a directory on the remote system.

dir [ remote-directory ] [ local-file ]

remote-directory

specifies the name of the directory you want to display. Specify remote-directory as
required by the remote system. If the remote host is a NonStop system, specify this in the form
subvolume.*

.

NOTE:

HP NonStop does not support the Big File feature on the OSS platform. Thus, an OSS

user cannot use the dir command to determine the size of a file exceeding 2 GB. An attempt
to use the dir command for such a file displays a 0 in the EOF column. To see the actual size
of the file, an OSS user must issue the dir command in the Guardian mode. For a discussion
of the Big File feature, see the File Utility Program (FUP) Reference Manual.

If you omit remote-directory, the current working directory is displayed.

local-file

specifies a local file to which the output is sent. If the file does not exist, FTP creates a text file.

If you omit local-file, the information appears on the current IN file, usually your home
terminal.

If you want to display the information in a brief format, use the ls command.

Example

The first command in this example requests the content of the sales directory to be displayed on
the terminal. The second command sends the same content to a local file named salesout.

ftp> dir sales

(Directory information appears here.)

ftp> dir sales salesout

disconnect

Use the disconnect command to disconnect from a remote server and return to the FTP prompt.

disconnect

The disconnect command performs the same operation as the close command.

Example

The following commands connect to and then disconnect from the system named warehs1.

ftp> open warehs1
.
.
ftp> disconnect
ftp>

exit

Use the exit command to disconnect from the FTP server and exit FTP.

exit

FTP Command Reference

53

Advertising
This manual is related to the following products: