Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

ftp(1) OSS Shell and Utilities Reference Manual
To check the current working directory, enter the pwd command after the ftp> prompt:
ftp> pwd
A message similar to the following is displayed on your local system:
257 "u/smith" is current directory
To list the contents of the current working directory, enter the ls command after the ftp>
prompt:
ftp> ls
A message similar to the following is displayed on your local system:
200 PORT command successful.
150 Opening data connection for /usr/bin/ls
(555.5.55.555) (0 bytes)
printfile
testfile
226 Transfer complete.
(The Opening data connection message appears on one line, not on two lines as
shown.)
To transfer a le from the remote host to the local host, enter the get or mget subcommand
following the ftp> prompt:
ftp> get testle tmp.testle
A message similar to the following is displayed on your local system:
200 PORT command successful.
150 Opening data connection for testfile
(555.5.55.555) (1201 bytes)
226 Transfer complete.
local:tmp.testfile remote:testfile
(The Opening data connection message appears on one line, not on two lines as
shown.)
To end the ftp session, enter the quit subcommand after the ftp> prompt:
ftp> quit
221 Goodbye.
$ __
2. This example shows how user smith, who is logged in on host1, can log in as the user
smith on the remote host host2:
$ ftp host2
Connected to host2.abc.org
220 host2 FTP server (Version 5.47 13 Mar 90 02:27) ready.
Name (host2:smith): smith
3164 Hewlett-Packard Company 527188-004