version 1.41, 2003/09/02 18:50:06 |
version 1.42, 2003/11/20 12:43:55 |
|
|
.Os |
.Os |
.Sh NAME |
.Sh NAME |
.Nm ftp |
.Nm ftp |
.Nd |
.Nd ARPANET file transfer program |
.Tn ARPANET |
|
file transfer program |
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm ftp |
.Nm ftp |
.Op Fl AVadegimnptv46 |
.Op Fl 46AadegimnptVv |
.Op Fl o Ar output |
|
.Op Fl P Ar port |
.Op Fl P Ar port |
.Op Fl r Ar seconds |
.Op Fl r Ar seconds |
.Op Ar host Op Ar port |
.Op Ar host Op Ar port |
.Nm ftp |
.Nm ftp |
ftp://[\fIuser\fR:\fIpassword\fR@]\fIhost\fR[:\fIport\fR]/\fIfile\fR[/] |
.Op Fl o Ar output |
|
.Sm off |
|
.No ftp:// Oo Ar user : password No @ |
|
.Oc Ar host Oo : Ar port |
|
.Oc No / Ar file Oo / |
|
.Oc |
|
.Sm on |
.Nm ftp |
.Nm ftp |
http://\fIhost\fR[:\fIport\fR]/\fIfile\fR |
.Op Fl o Ar output |
|
.Sm off |
|
.No http:// Ar host Oo : Ar port |
|
.Oc No / Ar file |
|
.Sm on |
.Nm ftp |
.Nm ftp |
\fIhost\fR:[/\fIpath\fR/]\fIfile\fR[/] |
.Op Fl o Ar output |
|
.Sm off |
|
.Ar host : No / Ar file Oo / |
|
.Oc |
|
.Sm on |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
is the user interface to the |
is the user interface to the |
|
|
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
.It Fl 4 |
|
Forces |
|
.Nm |
|
to use IPv4 addresses only. |
|
.It Fl 6 |
|
Forces |
|
.Nm |
|
to use IPv6 addresses only. |
.It Fl A |
.It Fl A |
Force active mode ftp. |
Force active mode ftp. |
By default, |
By default, |
|
|
.Nm |
.Nm |
will check the |
will check the |
.Pa .netrc |
.Pa .netrc |
(see below) file in the user's home directory for an entry describing |
file (see below) in the user's home directory for an entry describing |
an account on the remote machine. |
an account on the remote machine. |
If no entry exists, |
If no entry exists, |
.Nm |
.Nm |
|
|
identity on the local machine), and, if necessary, prompt for a password |
identity on the local machine), and, if necessary, prompt for a password |
and an account with which to login. |
and an account with which to login. |
.It Fl o Ar output |
.It Fl o Ar output |
When fetching a single file or url, save the contents in |
When fetching a single file or URL, save the contents in |
.Ar output . |
.Ar output . |
To make the contents go to stdout, |
To make the contents go to stdout, |
use |
use |
.Dq - |
.Dq - |
for |
for |
.Ar output . |
.Ar output . |
|
.It Fl P Ar port |
|
Sets the port number to |
|
.Ar port . |
.It Fl p |
.It Fl p |
Enable passive mode operation for use behind connection filtering firewalls. |
Enable passive mode operation for use behind connection filtering firewalls. |
This option has been deprecated as |
This option has been deprecated as |
.Nm |
.Nm |
now tries to use passive mode by default, falling back to active mode |
now tries to use passive mode by default, falling back to active mode |
if the server does not support passive connections. |
if the server does not support passive connections. |
.It Fl P Ar port |
.It Fl r Ar seconds |
Sets the port number to |
Retry to connect if failed, pausing for number of |
.Ar port . |
.Ar seconds . |
.It Fl r Ar number |
|
Retry to connect if failed, pausing for |
|
.Ar number |
|
of seconds. |
|
.It Fl t |
.It Fl t |
Enables packet tracing. |
Enables packet tracing. |
|
.It Fl V |
|
Disable verbose mode, overriding the default of enabled when input |
|
is from a terminal. |
.It Fl v |
.It Fl v |
Enable verbose mode. |
Enable verbose mode. |
This is the default if input is from a terminal. |
This is the default if input is from a terminal. |
|
|
.Nm |
.Nm |
to show all responses from the remote server, as well |
to show all responses from the remote server, as well |
as report on data transfer statistics. |
as report on data transfer statistics. |
.It Fl V |
|
Disable verbose mode, overriding the default of enabled when input |
|
is from a terminal. |
|
.It Fl 4 |
|
Forces |
|
.Nm |
|
to use IPv4 addresses only. |
|
.It Fl 6 |
|
Forces |
|
.Nm |
|
to use IPv6 addresses only. |
|
.El |
.El |
.Pp |
.Pp |
The client host with which |
The client host with which |
|
|
from the user. |
from the user. |
When |
When |
.Nm |
.Nm |
is awaiting commands the prompt |
is awaiting commands, the prompt |
.Dq ftp> |
.Dq ftp> |
is provided to the user. |
is provided to the user. |
The following commands are recognized |
The following commands are recognized |
|
|
.Ic macdef |
.Ic macdef |
command. |
command. |
Arguments are passed to the macro unglobbed. |
Arguments are passed to the macro unglobbed. |
|
.It Ic \&? Op Ar command |
|
A synonym for |
|
.Ic help . |
.It Ic account Op Ar passwd |
.It Ic account Op Ar passwd |
Supply a supplemental password required by a remote system for access |
Supply a supplemental password required by a remote system for access |
to resources once a login has been successfully completed. |
to resources once a login has been successfully completed. |
|
|
is on (default is off), remote computer file names with all letters in |
is on (default is off), remote computer file names with all letters in |
upper case are written in the local directory with the letters mapped |
upper case are written in the local directory with the letters mapped |
to lower case. |
to lower case. |
.It Ic \&cd Ar remote-directory |
.It Ic cd Ar remote-directory |
Change the working directory on the remote machine |
Change the working directory on the remote machine |
to |
to |
.Ar remote-directory . |
.Ar remote-directory . |
|
|
session with the remote server and |
session with the remote server and |
return to the command interpreter. |
return to the command interpreter. |
Any defined macros are erased. |
Any defined macros are erased. |
.It Ic \&cr |
.It Ic cr |
Toggle carriage return stripping during |
Toggle carriage return stripping during |
ASCII type file retrieval. |
ASCII type file retrieval. |
Records are denoted by a carriage return/linefeed sequence |
Records are denoted by a carriage return/linefeed sequence |
during ASCII type file transfer. |
during ASCII type file transfer. |
When |
When |
.Ic \&cr |
.Ic cr |
is on (the default), carriage returns are stripped from this |
is on (the default), carriage returns are stripped from this |
sequence to conform with the |
sequence to conform with the |
.Ux |
.Ux |
single linefeed record |
single linefeed record delimiter. |
delimiter. |
Records on non-UNIX |
Records on |
|
non\-UNIX |
|
remote systems may contain single linefeeds; |
remote systems may contain single linefeeds; |
when an ASCII type transfer is made, these linefeeds may be |
when an ASCII type transfer is made, these linefeeds may be |
distinguished from a record delimiter only when |
distinguished from a record delimiter only when |
.Ic \&cr |
.Ic cr |
is off. |
is off. |
.It Ic delete Ar remote-file |
|
Delete the file |
|
.Ar remote-file |
|
on the remote machine. |
|
.It Ic debug Op Ar debug-value |
.It Ic debug Op Ar debug-value |
Toggle debugging mode. |
Toggle debugging mode. |
If an optional |
If an optional |
.Ar debug-value |
.Ar debug-value |
is specified it is used to set the debugging level. |
is specified, it is used to set the debugging level. |
When debugging is on, |
When debugging is on, |
.Nm |
.Nm |
prints each command sent to the remote machine, |
prints each command sent to the remote machine, |
preceded by the string |
preceded by the string |
.Ql \-\-> . |
.Ql --> . |
|
.It Ic delete Ar remote-file |
|
Delete the file |
|
.Ar remote-file |
|
on the remote machine. |
.It Ic dir Op Ar remote-directory Op Ar local-file |
.It Ic dir Op Ar remote-directory Op Ar local-file |
A synonym for |
A synonym for |
.Ic ls . |
.Ic ls . |
|
|
.It Ic exit |
.It Ic exit |
A synonym for |
A synonym for |
.Ic bye . |
.Ic bye . |
.It Ic ftp Ar host Op Ar port |
|
A synonym for |
|
.Ic open . |
|
.It Ic form Ar format |
.It Ic form Ar format |
Set the file transfer |
Set the file transfer |
.Ic form |
.Ic form |
to |
to |
.Ar format . |
.Ar format . |
The default format is \*(Lqfile\*(Rq. |
The default format is |
|
.Dq file . |
|
.It Ic ftp Ar host Op Ar port |
|
A synonym for |
|
.Ic open . |
|
.It Ic gate Op Ar host Op Ar port |
|
Toggle gate-ftp mode. |
|
This will not be permitted if the gate-ftp server hasn't been set |
|
(either explicitly by the user, or from the |
|
.Ev FTPSERVER |
|
environment variable). |
|
If |
|
.Ar host |
|
is given, |
|
then gate-ftp mode will be enabled, and the gate-ftp server will be set to |
|
.Ar host . |
|
If |
|
.Ar port |
|
is also given, that will be used as the port to connect to on the |
|
gate-ftp server. |
.It Ic get Ar remote-file Op Ar local-file |
.It Ic get Ar remote-file Op Ar local-file |
Retrieve the |
Retrieve the |
.Ar remote-file |
.Ar remote-file |
|
|
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 |
|
Toggle gate-ftp mode. |
|
This will not be permitted if the gate-ftp server hasn't been set |
|
(either explicitly by the user, or from the |
|
.Ev FTPSERVER |
|
environment variable). |
|
If |
|
.Ar host |
|
is given, |
|
then gate-ftp mode will be enabled, and the gate-ftp server will be set to |
|
.Ar host . |
|
If |
|
.Ar port |
|
is also given, that will be used as the port to connect to on the |
|
gate-ftp server. |
|
.It Ic glob |
.It Ic glob |
Toggle filename expansion for |
Toggle filename expansion for |
.Ic mdelete , |
.Ic mdelete , |
|
|
different from expansion of the name of an ordinary file: |
different from expansion of the name of an ordinary file: |
the exact result depends on the foreign operating system and ftp server, |
the exact result depends on the foreign operating system and ftp server, |
and can be previewed by doing |
and can be previewed by doing |
.Dq mls remote-files \- . |
.Dq mls remote-files - . |
Note: |
Note: |
.Ic mget |
.Ic mget |
and |
and |
|
|
.Ic page . |
.Ic page . |
.It Ic lpwd |
.It Ic lpwd |
Print the working directory on the local machine. |
Print the working directory on the local machine. |
.It Ic \&ls Op Ar remote-directory Op Ar local-file |
.It Ic ls Op Ar remote-directory Op Ar local-file |
Print a listing of the contents of a |
Print a listing of the contents of a directory on the remote machine. |
directory on the remote machine. |
|
The listing includes any system-dependent information that the server |
The listing includes any system-dependent information that the server |
chooses to include; for example, most |
chooses to include; for example, most |
.Ux |
.Ux |
systems will produce |
systems will produce output from the command |
output from the command |
.Ql ls -l . |
.Ql ls \-l . |
|
If |
If |
.Ar remote-directory |
.Ar remote-directory |
is left unspecified, the current working directory is used. |
is left unspecified, the current working directory is used. |
|
|
.Ic mode |
.Ic mode |
to |
to |
.Ar mode-name . |
.Ar mode-name . |
The default mode is \*(Lqstream\*(Rq mode. |
The default mode is |
|
.Dq stream |
|
mode. |
.It Ic modtime Ar file-name |
.It Ic modtime Ar file-name |
Show the last modification time of the file on the remote machine. |
Show the last modification time of the file on the remote machine. |
.It Ic more Ar file |
.It Ic more Ar file |
|
|
commands and |
commands and |
.Ic get |
.Ic get |
commands issued without a specified local target filename. |
commands issued without a specified local target filename. |
This command is useful when connecting to a |
This command is useful when connecting to a non-UNIX remote computer |
.No non\- Ns Ux |
|
remote computer |
|
with different file naming conventions or practices. |
with different file naming conventions or practices. |
|
.Pp |
The mapping follows the pattern set by |
The mapping follows the pattern set by |
.Ar inpattern |
.Ar inpattern |
and |
and |
|
|
The sequences |
The sequences |
.Ql $1 , |
.Ql $1 , |
.Ql $2 , |
.Ql $2 , |
..., |
\&..., |
.Ql $9 |
.Ql $9 |
are replaced by any value resulting from the |
are replaced by any value resulting from the |
.Ar inpattern |
.Ar inpattern |
|
|
.Ar seq1 |
.Ar seq1 |
is not a null string; otherwise it is replaced by |
is not a null string; otherwise it is replaced by |
.Ar seq2 . |
.Ar seq2 . |
For example, the command |
For example: |
.Pp |
.Pp |
.Bd -literal -offset indent -compact |
.Dl nmap $1.$2.$3 [$1,$2].[$2,file] |
nmap $1.$2.$3 [$1,$2].[$2,file] |
|
.Ed |
|
.Pp |
.Pp |
would yield |
This command would yield the output filename |
the output filename |
.Pa myfile.data |
.Pa myfile.data , |
|
for input filenames |
for input filenames |
.Pa myfile.data |
.Pa myfile.data |
and |
and |
.Pa myfile.data.old , |
.Pa myfile.data.old ; |
.Pa myfile.file |
.Pa myfile.file |
for the input filename |
for the input filename |
.Pa myfile , |
.Pa myfile ; |
and |
and |
.Pa myfile.myfile |
.Pa myfile.myfile |
for the input filename |
for the input filename |
.Pa \&.myfile . |
.Pa .myfile . |
Spaces may be included in |
Spaces may be included in |
.Ar outpattern , |
.Ar outpattern , |
as in the example |
as in the example |
.Pp |
.Bd -literal -offset indent |
.Bd -literal -offset indent -compact |
nmap $1 sed "s/ *$//" > $1 |
nmap $1 sed "s/ *$//" > $1 . |
|
.Ed |
.Ed |
.Pp |
.Pp |
Use the |
Use the |
|
|
commands and |
commands and |
.Ic get |
.Ic get |
commands issued without a specified local target filename. |
commands issued without a specified local target filename. |
This command is useful when connecting to a |
This command is useful when connecting to a non-UNIX remote computer |
.No non\- Ns Ux |
|
remote computer |
|
with different file naming conventions or practices. |
with different file naming conventions or practices. |
Characters in a filename matching a character in |
Characters in a filename matching a character in |
.Ar inchars |
.Ar inchars |
|
|
.Ar host |
.Ar host |
.Tn FTP |
.Tn FTP |
server. |
server. |
An optional port number may be supplied |
An optional port number may be supplied, |
in which case |
in which case |
.Nm |
.Nm |
will attempt to contact an |
will attempt to contact an |
|
|
.Pp |
.Pp |
When prompting is on, the following commands are available at a prompt: |
When prompting is on, the following commands are available at a prompt: |
.Bl -tag -width 2n -offset indent |
.Bl -tag -width 2n -offset indent |
.It Ic n |
|
Do not transfer the file. |
|
.It Ic a |
.It Ic a |
Answer |
Answer |
.Dq yes |
.Dq yes |
to the current file and automatically answer |
to the current file and automatically answer |
.Dq yes |
.Dq yes |
to any remaining files for the current command. |
to any remaining files for the current command. |
|
.It Ic n |
|
Do not transfer the file. |
.It Ic p |
.It Ic p |
Answer |
Answer |
.Dq yes |
.Dq yes |
|
|
(as if |
(as if |
.Dq prompt off |
.Dq prompt off |
had been given). |
had been given). |
|
.It Ic y |
|
Transfer the file. |
.El |
.El |
.Pp |
|
Any other response will answer |
|
.Dq yes |
|
to the current file. |
|
.It Ic proxy Ar ftp-command |
.It Ic proxy Ar ftp-command |
Execute an ftp command on a secondary control connection. |
Execute an ftp command on a secondary control connection. |
This command allows simultaneous connection to two remote ftp |
This command allows simultaneous connection to two remote ftp |
|
|
The following commands behave differently when prefaced by |
The following commands behave differently when prefaced by |
.Ic proxy : |
.Ic proxy : |
.Ic open |
.Ic open |
will not define new macros during the auto-login process, |
will not define new macros during the auto-login process; |
.Ic close |
.Ic close |
will not erase existing macro definitions, |
will not erase existing macro definitions; |
.Ic get |
.Ic get |
and |
and |
.Ic mget |
.Ic mget |
transfer files from the host on the primary control connection |
transfer files from the host on the primary control connection |
to the host on the secondary control connection, and |
to the host on the secondary control connection; and |
.Ic put , |
.Ic put , |
.Ic mput , |
.Ic mput , |
and |
and |
|
|
This command |
This command |
is useful when transferring very large files over networks that |
is useful when transferring very large files over networks that |
are prone to dropping connections. |
are prone to dropping connections. |
.It Ic remotehelp Op Ar command-name |
|
Request help from the remote |
|
.Tn FTP |
|
server. |
|
If a |
|
.Ar command-name |
|
is specified it is supplied to the server as well. |
|
.It Ic rstatus Op Ar file-name |
|
With no arguments, show status of remote machine. |
|
If |
|
.Ar file-name |
|
is specified, show status of |
|
.Ar file-name |
|
on remote machine. |
|
.It Ic rename Op Ar from Op Ar to |
.It Ic rename Op Ar from Op Ar to |
Rename the file |
Rename the file |
.Ar from |
.Ar from |
|
|
.Ar marker |
.Ar marker |
is usually a byte |
is usually a byte |
offset into the file. |
offset into the file. |
|
.It Ic rhelp Op Ar command-name |
|
Request help from the remote |
|
.Tn FTP |
|
server. |
|
If a |
|
.Ar command-name |
|
is specified, it is supplied to the server as well. |
.It Ic rmdir Ar directory-name |
.It Ic rmdir Ar directory-name |
Delete a directory on the remote machine. |
Delete a directory on the remote machine. |
|
.It Ic rstatus Op Ar file-name |
|
With no arguments, show status of remote machine. |
|
If |
|
.Ar file-name |
|
is specified, show status of |
|
.Ar file-name |
|
on remote machine. |
.It Ic runique |
.It Ic runique |
Toggle storing of files on the local system with unique filenames. |
Toggle storing of files on the local system with unique filenames. |
If a file already exists with a name equal to the target |
If a file already exists with a name equal to the target |
|
|
or |
or |
.Ic mget |
.Ic mget |
command, a |
command, a |
.Dq \&.1 |
.Dq .1 |
is appended to the name. |
is appended to the name. |
If the resulting name matches another existing file, |
If the resulting name matches another existing file, |
a |
a |
.Dq \&.2 |
.Dq .2 |
is appended to the original name. |
is appended to the original name. |
If this process continues up to |
If this process continues up to |
.Dq \&.99 , |
.Dq .99 , |
an error |
an error message is printed, and the transfer does not take place. |
message is printed, and the transfer does not take place. |
|
The generated unique filename will be reported. |
The generated unique filename will be reported. |
Note that |
Note that |
.Ic runique |
.Ic runique |
|
|
.It Ic status |
.It Ic status |
Show the current status of |
Show the current status of |
.Nm ftp . |
.Nm ftp . |
.It Ic struct Op Ar struct-name |
.\" .It Ic struct Op Ar struct-name |
Set the file transfer |
.\" Set the file transfer |
.Ar structure |
.\" .Ar structure |
to |
.\" to |
.Ar struct-name . |
.\" .Ar struct-name . |
By default \*(Lqstream\*(Rq structure is used. |
.\" By default, |
|
.\" .Dq file |
|
.\" structure is used. |
.It Ic sunique |
.It Ic sunique |
Toggle storing of files on remote machine under unique file names. |
Toggle storing of files on remote machine under unique file names. |
Remote ftp server must support ftp protocol |
The remote ftp server must support the ftp protocol |
.Dv STOU |
.Dv STOU |
command for |
command for |
successful completion. |
successful completion. |
The remote server will report unique name. |
The remote server will report the unique name. |
Default value is off. |
Default value is off. |
.It Ic system |
.It Ic system |
Show the type of operating system running on the remote machine. |
Show the type of operating system running on the remote machine. |
|
|
.Ar type-name . |
.Ar type-name . |
If no type is specified, the current type |
If no type is specified, the current type |
is printed. |
is printed. |
The default type is network |
The default type is |
.Tn ASCII . |
.Dq binary . |
.It Ic umask Op Ar newmask |
.It Ic umask Op Ar newmask |
Set the default umask on the remote server to |
Set the default umask on the remote server to |
.Ar newmask . |
.Ar newmask . |
|
|
for logging in. |
for logging in. |
Unless |
Unless |
.Nm |
.Nm |
is invoked with \*(Lqauto-login\*(Rq disabled, this |
is invoked with |
process is done automatically on initial connection to |
.Dq auto-login |
the |
disabled, this process is done automatically on initial connection to the |
.Tn FTP |
.Tn FTP |
server. |
server. |
.It Ic verbose |
.It Ic verbose |
|
|
regarding the efficiency of the transfer are reported. |
regarding the efficiency of the transfer are reported. |
By default, |
By default, |
verbose is on. |
verbose is on. |
.It Ic \&? Op Ar command |
|
A synonym for |
|
.Ic help . |
|
.El |
.El |
.Pp |
.Pp |
Command arguments which have embedded spaces may be quoted with |
Command arguments which have embedded spaces may be quoted with |
quote |
quote |
.Pq Ql " |
.Pq Ql \&" |
marks. |
marks. |
.Pp |
.Pp |
Commands which toggle settings can take an explicit |
Commands which toggle settings can take an explicit |
|
|
on the command line. |
on the command line. |
.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[/] |
An ftp URL, retrieved using the ftp protocol if |
An ftp URL, retrieved using the ftp protocol if |
.Ev ftp_proxy |
.Ev ftp_proxy |
isn't defined. |
isn't defined. |
Otherwise, transfer using http via the proxy defined in |
Otherwise, transfer using http via the proxy defined in |
.Ev ftp_proxy . |
.Ev ftp_proxy . |
If |
If |
.Ar user:password@ |
.Ar user : Ns Ar password Ns @ |
is given and |
is given and |
.Ev ftp_proxy |
.Ev ftp_proxy |
isn't defined, login as |
isn't defined, login as |
|
|
is defined, it is used as a URL to an HTTP proxy server. |
is defined, it is used as a URL to an HTTP proxy server. |
.El |
.El |
.Pp |
.Pp |
If a classic format or a ftp URL format has a trailing |
If a classic format or an ftp URL format has a trailing |
.Sq / , |
.Sq / , |
then |
then |
.Nm |
.Nm |
|
|
connection creation and deletion. |
connection creation and deletion. |
.Pp |
.Pp |
If |
If |
.Ic file |
.Ar 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 |
.Ic "mget file" |
.Ic mget Ar file |
is performed. |
is performed. |
.Pp |
.Pp |
If no |
If no |
.Fl o |
.Fl o |
option is specified, and |
option is specified, and |
the directory component of |
the directory component of |
.Ic file |
.Ar file |
contains no globbing characters, |
contains no globbing characters, |
then |
then |
it is stored in the current directory as the |
it is stored in the current directory as the |
.Xr basename 1 |
.Xr basename 1 |
of |
of |
.Ic file . |
.Ar file . |
|
If |
|
.Fl o Ar output |
|
is specified, then |
|
.Ar file |
|
is stored as |
|
.Ar output . |
Otherwise, the remote name is used as the local name. |
Otherwise, the remote name is used as the local name. |
.Sh ABORTING A FILE TRANSFER |
.Sh ABORTING A FILE TRANSFER |
To abort a file transfer, use the terminal interrupt key |
To abort a file transfer, use the terminal interrupt key |
|
|
(standard input). |
(standard input). |
If the shell command includes spaces, the argument |
If the shell command includes spaces, the argument |
must be quoted; e.g., |
must be quoted; e.g., |
\*(Lq" ls -lt"\*(Rq. |
.Qq ls -lt . |
A particularly |
A particularly |
useful example of this mechanism is: \*(Lqdir \&|more\*(Rq. |
useful example of this mechanism is: |
|
.Qq dir |more . |
.It |
.It |
Failing the above checks, if |
Failing the above checks, if |
.Dq globbing |
.Dq globbing |
|
|
affect a file transfer. |
affect a file transfer. |
The |
The |
.Ic type |
.Ic type |
may be one of \*(Lqascii\*(Rq, \*(Lqimage\*(Rq (binary), |
may be one of |
\*(Lqebcdic\*(Rq, and \*(Lqlocal byte size\*(Rq (for |
.Dq ascii , |
.Tn PDP Ns -10's |
.Dq binary , |
and |
.Dq image , |
.Tn PDP Ns -20's |
.Dq ebcdic |
mostly). |
.Pq currently not supported |
|
or |
|
.Dq tenex |
|
(local byte size 8, for PDP-10's and PDP-20's mostly). |
.Nm |
.Nm |
supports the ASCII and image types of file transfer, |
supports the ASCII and image types of file transfer, |
plus local byte size 8 for |
plus local byte size 8 for |
|
|
.Xr editline 3 |
.Xr editline 3 |
library is configured with a |
library is configured with a |
.Pa .editrc |
.Pa .editrc |
file - refer to |
file \- refer to |
.Xr editrc 5 |
.Xr editrc 5 |
for more information. |
for more information. |
.Pp |
.Pp |
|
|
.Sh PORT ALLOCATION |
.Sh PORT ALLOCATION |
For active mode data connections, |
For active mode data connections, |
.Nm |
.Nm |
will listen to a random high tcp port. |
will listen to a random high TCP port. |
The interval of ports used are configurable using |
The interval of ports used are configurable using |
.Xr sysctl 8 |
.Xr sysctl 8 |
variables |
variables |
.Li net.inet.ip.porthifirst |
.Va net.inet.ip.porthifirst |
and |
and |
.Li net.inet.ip.porthilast . |
.Va net.inet.ip.porthilast . |
.Sh SEE ALSO |
.Sh SEE ALSO |
|
.Xr basename 1 , |
|
.Xr csh 1 , |
|
.Xr more 1 , |
|
.Xr stty 1 , |
|
.Xr tar 1 , |
.Xr tftp 1 , |
.Xr tftp 1 , |
|
.Xr editline 3 , |
.Xr getservbyname 3 , |
.Xr getservbyname 3 , |
|
.Xr popen 3 , |
.Xr editrc 5 , |
.Xr editrc 5 , |
.Xr services 5 , |
.Xr services 5 , |
.Xr ftp-proxy 8 , |
.Xr ftp-proxy 8 , |