version 1.24, 1999/02/09 17:43:04 |
version 1.25, 1999/06/05 01:21:26 |
|
|
.\" |
.\" |
.Dd August 18, 1997 |
.Dd August 18, 1997 |
.Dt FTP 1 |
.Dt FTP 1 |
.Os BSD 4.2 |
.Os |
.Sh NAME |
.Sh NAME |
.Nm ftp |
.Nm ftp |
.Nd |
.Nd |
|
|
and |
and |
.Ic structure |
.Ic structure |
are used while transferring the file. |
are used while transferring the file. |
.It Ic gate Op Ar host Op Ar port |
.It Ic gate Op Ar host Op Ar port |
Toggle gate-ftp mode. |
Toggle gate-ftp mode. |
This will not be permitted if the gate-ftp server hasn't been set |
This will not be permitted if the gate-ftp server hasn't been set |
(either explicitly by the user, or from the |
(either explicitly by the user, or from the |
.Ev FTPSERVER |
.Ev FTPSERVER |
environment variable). |
environment variable). |
If |
If |
.Ar host |
.Ar host |
|
|
Retrieve |
Retrieve |
.Ic file |
.Ic file |
and display with the program defined in |
and display with the program defined in |
.Ev PAGER |
.Ev PAGER |
(which defaults to |
(which defaults to |
.Xr more 1 ). |
.Xr more 1 ). |
.It Ic passive |
.It Ic passive |
|
|
.Pp |
.Pp |
The following formats are valid syntax for an auto-fetch element: |
The following formats are valid syntax for an auto-fetch element: |
.Bl -tag -width "ftp://[user:password@]host[:port]/file" |
.Bl -tag -width "ftp://[user:password@]host[:port]/file" |
.It host:/file |
.It host:/file |
.Dq Classic |
.Dq Classic |
ftp format |
ftp format |
.It ftp://[user:password@]host[:port]/file |
.It ftp://[user:password@]host[:port]/file |
|
|
.Pp |
.Pp |
If |
If |
.Ic file |
.Ic file |
contains a glob character and globbing is enabled, |
contains a glob character and globbing is enabled, |
(see |
(see |
.Ic glob ) , |
.Ic glob ) , |
then the equivalent of |
then the equivalent of |
|
|
.El |
.El |
.Sh COMMAND LINE EDITING |
.Sh COMMAND LINE EDITING |
.Nm |
.Nm |
supports interactive command line editing, via the |
supports interactive command line editing, via the |
.Xr editline 3 |
.Xr editline 3 |
library. |
library. |
It is enabled with the |
It is enabled with the |
|
|
is enabled. |
is enabled. |
Default is port returned by a |
Default is port returned by a |
.Fn getservbyname |
.Fn getservbyname |
lookup of |
lookup of |
.Dq ftpgate/tcp . |
.Dq ftpgate/tcp . |
.It Ev HOME |
.It Ev HOME |
For default location of a |
For default location of a |