home *** CD-ROM | disk | FTP | other *** search
/ A Beginner's Guide to the Internet / INTERNET.ISO / text / guides / ftp_man / ftp.man < prev   
Encoding:
Text File  |  1996-05-06  |  28.2 KB  |  657 lines

  1.                       
  2.                     ------------------------------- 
  3.                      INTERNET / UNIX USER COMMANDS
  4.                     -------------------------------
  5.  
  6. ftp(1)                    User Commands                    ftp(1)
  7.  
  8. NAME
  9.      ftp - file transfer program
  10.  
  11. SYNOPSIS
  12.      ftp [ -dgintv ] [ hostname ]
  13.  
  14. AVAILABILITY
  15.      SUNWcsu
  16.  
  17. DESCRIPTION
  18.      The ftp command is the user interface to the Internet  stan-
  19.      dard  File  Transfer Protocol (FTP).  ftp transfers files to
  20.      and from a remote network site.
  21.  
  22.      The client host with which ftp  is  to  communicate  may  be
  23.      specified on the command line.  If this is done, ftp immedi-
  24.      ately attempts to establish a connection to an FTP server on
  25.      that host; otherwise, ftp enters its command interpreter and
  26.      awaits instructions from the user.   When  ftp  is  awaiting
  27.      commands from the user, it displays the prompt ftp>.
  28.  
  29. OPTIONS
  30.      The following options may be specified at the command  line,
  31.      or to the command interpreter:
  32.  
  33.      -d    Enable debugging.
  34.  
  35.      -g    Disable filename globbing.
  36.  
  37.      -i    Turn off interactive prompting  during  multiple  file
  38.           transfers.
  39.  
  40.      -n    Do not attempt auto-login upon initial connection.  If
  41.           auto-login  is not disabled, ftp checks the .netrc file
  42.           in the user's home directory for an entry describing an
  43.           account on the remote machine.  If no entry exists, ftp
  44.           will prompt for the login name of the  account  on  the
  45.           remote  machine  (the  default is the login name on the
  46.           local machine), and, if necessary, prompts for a  pass-
  47.           word and an account with which to login.
  48.  
  49.      -t    Enable packet tracing (unimplemented).
  50.  
  51.      -v    Show all responses from the remote server, as well  as
  52.           report  on data transfer statistics.  This is turned on
  53.           by default if ftp is  running  interactively  with  its
  54.           input coming from the user's terminal.
  55.  
  56.      The following commands  can  be  specified  to  the  command
  57.      interpreter:
  58.  
  59. Sun Microsystems    Last change: 26 Sep 1992                    1
  60.  
  61.  
  62.  
  63. ftp(1)                    User Commands                    ftp(1)
  64.  
  65.      !  [ command ]
  66.           Run command as a shell command on  the  local  machine.
  67.           If no command is given, invoke an interactive shell.
  68.  
  69.      $ macro-name [ args ]
  70.           Execute the macro macro-name that was defined with  the
  71.           macdef  command.   Arguments  are  passed  to the macro
  72.           unglobbed.
  73.  
  74.      account [ passwd ]
  75.           Supply a supplemental password  required  by  a  remote
  76.           system  for  access  to resources once a login has been
  77.           successfully completed.  If no  argument  is  included,
  78.           the  user will be prompted for an account password in a
  79.           non-echoing input mode.
  80.  
  81.      append local-file [ remote-file ]
  82.           Append a local file to a file on  the  remote  machine.
  83.           If remote-file is not specified, the local file name is
  84.           used, subject to alteration by any ntrans or nmap  set-
  85.           tings.   File  transfer  uses  the current settings for
  86.           representation type, file structure, and transfer mode.
  87.  
  88.      ascii
  89.           Set the representation type to network ASCII.  This  is
  90.           the default type.
  91.  
  92.      bell Sound a bell after each file transfer command  is  com-
  93.           pleted.
  94.  
  95.      binary
  96.           Set the representation type to image.
  97.  
  98.      bye  Terminate the FTP session with the  remote  server  and
  99.           exit  ftp.   An EOF will also terminate the session and
  100.           exit.
  101.  
  102.      case Toggle remote computer file name  case  mapping  during
  103.           mget  commands.   When  case  is  on  (default is off),
  104.           remote computer file names with all  letters  in  upper
  105.           case  are  written  in  the  local  directory  with the
  106.           letters mapped to lower case.
  107.  
  108.      cd remote-directory
  109.           Change the working directory on the remote  machine  to
  110.           remote-directory.
  111.  
  112.      cdup Change the remote  machine  working  directory  to  the
  113.           parent of the current remote machine working directory.
  114.  
  115.      close
  116.           Terminate the FTP session with the remote  server,  and
  117.  
  118.  
  119.  
  120. Sun Microsystems    Last change: 26 Sep 1992                    2
  121.  
  122. ftp(1)                    User Commands                    ftp(1)
  123.  
  124.           return  to the command interpreter.  Any defined macros
  125.           are erased.
  126.  
  127.      cr   Toggle RETURN stripping during network ASCII type  file
  128.           retrieval.   Records  are  denoted by a RETURN/LINEFEED
  129.           sequence during network ASCII type file transfer.  When
  130.           cr  is on (the default), RETURN characters are stripped
  131.           from this sequence to conform with the UNIX system sin-
  132.           gle  LINEFEED  record  delimiter.  Records on non-UNIX-
  133.           system remote hosts may contain single LINEFEED charac-
  134.           ters;  when  an  network  ASCII  type transfer is made,
  135.           these LINEFEED characters may be distinguished  from  a
  136.           record delimiter only when cr is off.
  137.  
  138.      delete remote-file
  139.           Delete the file remote-file on the remote machine.
  140.  
  141.      debug
  142.           Toggle debugging mode. When debugging is on, ftp prints
  143.           each  command  sent  to the remote machine, preceded by
  144.           the string -->.
  145.  
  146.      dir [ remote-directory ] [ local-file ]
  147.           Print a listing of the directory contents in the direc-
  148.           tory,  remote-directory,  and,  optionally, placing the
  149.           output in local-file.  If no  directory  is  specified,
  150.           the  current working directory on the remote machine is
  151.           used.  If no local file is specified, or local-file  is
  152.           -, output is sent to the terminal.
  153.  
  154.      disconnect
  155.           A synonym for close.
  156.  
  157.      form [ format-name ]
  158.           Set  the  carriage  control  format  subtype   of   the
  159.           representation  type  to  format-name.   The only valid
  160.           format-name is  non-print,  which  corresponds  to  the
  161.           default non-print subtype.
  162.  
  163.      get remote-file [ local-file ]
  164.           Retrieve the remote-file and  store  it  on  the  local
  165.           machine.   If  the local file name is not specified, it
  166.           is given the same name it has on  the  remote  machine,
  167.           subject  to alteration by the current case, ntrans, and
  168.           nmap settings.  The current settings for representation
  169.           type,  file structure, and transfer mode are used while
  170.           transferring the file.
  171.  
  172.      glob Toggle filename expansion, or  globbing,  for  mdelete,
  173.           mget  and  mput.   If globbing is turned off, filenames
  174.           are taken literally.
  175.  
  176. Sun Microsystems    Last change: 26 Sep 1992                    3
  177.  
  178.  
  179. ftp(1)                    User Commands                    ftp(1)
  180.  
  181.           Globbing for mput is done as in sh(1).  For mdelete and
  182.           mget,  each  remote file name is expanded separately on
  183.           the remote machine, and the lists are not merged.
  184.  
  185.           Expansion of a directory name is likely to be radically
  186.           different  from  expansion  of  the name of an ordinary
  187.           file:  the exact result depends on the remote operating
  188.           system  and  FTP  server, and can be previewed by doing
  189.           mls remote-files -.
  190.  
  191.           mget and mput are not meant to transfer  entire  direc-
  192.           tory  subtrees  of files.  You can do this by transfer-
  193.           ring a tar(1) archive of the subtree (using a represen-
  194.           tation type of image as set by the binary command).
  195.  
  196.      hash Toggle hash-sign  (#)  printing  for  each  data  block
  197.           transferred.  The size of a data block is 8192 bytes.
  198.  
  199.      help [ command ]
  200.           Print an informative message about the meaning of  com-
  201.           mand.   If  no  argument is given, ftp prints a list of
  202.           the known commands.
  203.  
  204.      lcd [ directory ]
  205.           Change the working directory on the local machine.   If
  206.           no directory is specified, the user's home directory is
  207.           used.
  208.  
  209.      ls [ remote-directory ] [ local-file ]
  210.           Print an abbreviated  listing  of  the  contents  of  a
  211.           directory  on  the remote machine.  If remote-directory
  212.           is left unspecified, the current working  directory  is
  213.           used.   If no local file is specified, or if local-file
  214.           is -, the output is sent to the terminal.
  215.  
  216.      macdef macro-name
  217.           Define a macro.  Subsequent lines  are  stored  as  the
  218.           macro  macro-name;  a  null  line  (consecutive NEWLINE
  219.           characters in a file or RETURN characters from the ter-
  220.           minal)  terminates  macro input mode.  There is a limit
  221.           of 16 macros and 4096 total characters in  all  defined
  222.           macros.  Macros remain defined until a close command is
  223.           executed.
  224.  
  225.           The macro processor interprets $ and \ as special char-
  226.           acters.   A  $  followed  by  a  number (or numbers) is
  227.           replaced by the corresponding  argument  on  the  macro
  228.           invocation  command line.  A $ followed by an i signals
  229.           that macro processor that the executing macro is to  be
  230.           looped.  On  the first pass $i is replaced by the first
  231.           argument on the macro invocation command line,  on  the
  232.           second  pass it is replaced by the second argument, and
  233.  
  234.  
  235. Sun Microsystems    Last change: 26 Sep 1992                    4
  236.  
  237. ftp(1)                    User Commands                    ftp(1)
  238.  
  239.           so on.  A \ followed by any character  is  replaced  by
  240.           that character.  Use the \ to prevent special treatment
  241.           of the $.
  242.  
  243.      mdelete remote-files
  244.           Delete the remote-files on the remote machine.
  245.  
  246.      mdir remote-files local-file
  247.           Like dir, except multiple remote files  may  be  speci-
  248.           fied.   If interactive prompting is on, ftp will prompt
  249.           the user to verify that the last argument is indeed the
  250.           target local file for receiving mdir output.
  251.  
  252.      mget remote-files
  253.           Expand the remote-files on the remote machine and do  a
  254.           get  for  each  file  name thus produced.  See glob for
  255.           details on  the  filename  expansion.   Resulting  file
  256.           names will then be processed according to case, ntrans,
  257.           and nmap settings.   Files  are  transferred  into  the
  258.           local  working directory, which can be changed with lcd
  259.           directory; new local directories can be created with  !
  260.           mkdir directory.
  261.  
  262.      mkdir directory-name
  263.           Make a directory on the remote machine.
  264.  
  265.      mls remote-files local-file
  266.           Like ls(1), except multiple remote files may be  speci-
  267.           fied.   If interactive prompting is on, ftp will prompt
  268.           the user to verify that the last argument is indeed the
  269.           target local file for receiving mls output.
  270.  
  271.      mode [ mode-name ]
  272.           Set the transfer mode to  mode-name.   The  only  valid
  273.           mode-name  is  stream, which corresponds to the default
  274.           stream mode.  This implementation only supports stream,
  275.           and requires that it be specified.
  276.  
  277.      mput local-files
  278.           Expand wild cards in the list of local files  given  as
  279.           arguments  and  do a put for each file in the resulting
  280.           list.  See glob  for  details  of  filename  expansion.
  281.           Resulting  file  names will then be processed according
  282.           to ntrans and nmap settings.
  283.  
  284.      nmap [ inpattern outpattern ]
  285.           Set or unset the filename  mapping  mechanism.   If  no
  286.           arguments are specified, the filename mapping mechanism
  287.           is unset.  If arguments are specified, remote filenames
  288.           are mapped during mput commands and put commands issued
  289.           without a specified remote target filename.   If  argu-
  290.           ments  are specified, local filenames are mapped during
  291.  
  292.  
  293. Sun Microsystems    Last change: 26 Sep 1992                    5
  294.  
  295. ftp(1)                    User Commands                    ftp(1)
  296.  
  297.           mget commands and get commands issued without a  speci-
  298.           fied local target filename.
  299.  
  300.           This command is useful when connecting to  a  non-UNIX-
  301.           system  remote  host with different file naming conven-
  302.           tions or practices.  The mapping  follows  the  pattern
  303.           set  by  inpattern and outpattern.  inpattern is a tem-
  304.           plate for incoming filenames (which  may  have  already
  305.           been  processed  according  to the ntrans and case set-
  306.           tings).  Variable templating is accomplished by includ-
  307.           ing  the sequences $1, $2, ..., $9 in inpattern.  Use \
  308.           to prevent this special treatment of the  $  character.
  309.           All  other  characters  are  treated literally, and are
  310.           used to determine the nmap inpattern variable values.
  311.  
  312.           For example, given inpattern $1.$2 and the remote  file
  313.           name  mydata.data,  $1 would have the value mydata, and
  314.           $2 would have the value data.
  315.  
  316.           The  outpattern   determines   the   resulting   mapped
  317.           filename.   The  sequences $1, $2, ..., $9 are replaced
  318.           by any value resulting  from  the  inpattern  template.
  319.           The  sequence  $0 is replaced by the original filename.
  320.           Additionally, the sequence [seq1,seq2] is  replaced  by
  321.           seq1  if  seq1  is  not  a null string; otherwise it is
  322.           replaced by seq2.
  323.  
  324.           For    example,    the    command     nmap     $1.$2.$3
  325.           [$1,$2].[$2,file]   would  yield  the  output  filename
  326.           myfile.data  for  input   filenames   myfile.data   and
  327.           myfile.data.old,  myfile.file  for  the  input filename
  328.           myfile,  and  myfile.myfile  for  the  input   filename
  329.           .myfile.   SPACE  characters may be included in outpat-
  330.           tern, as in the example nmap $1 | sed "s/  *$//" >  $1.
  331.           Use the \ character to prevent special treatment of the
  332.           $, [, ], and ,, characters.
  333.  
  334.      ntrans [ inchars [ outchars ] ]
  335.           Set or unset the filename character translation mechan-
  336.           ism.  If no arguments are specified, the filename char-
  337.           acter translation mechanism is unset.  If arguments are
  338.           specified,   characters   in   remote   filenames   are
  339.           translated during mput commands and put commands issued
  340.           without a specified remote target filename, and charac-
  341.           ters in local filenames are translated during mget com-
  342.           mands and get commands issued without a specified local
  343.           target filename.
  344.  
  345.           This command is useful when connecting to  a  non-UNIX-
  346.           system  remote  host with different file naming conven-
  347.           tions or practices.  Characters in a filename  matching
  348.           a   character   in   inchars   are  replaced  with  the
  349.  
  350.  
  351.  
  352. Sun Microsystems    Last change: 26 Sep 1992                    6
  353.  
  354. ftp(1)                    User Commands                    ftp(1)
  355.  
  356.           corresponding   character   in   outchars.    If    the
  357.           character's  position  in  inchars  is  longer than the
  358.           length of outchars, the character is deleted  from  the
  359.           file name.
  360.  
  361.      open host [ port ]
  362.           Establish  a  connection  to  the  specified  host  FTP
  363.           server.   An  optional  port number may be supplied, in
  364.           which case, ftp will attempt to contact an  FTP  server
  365.           at  that port.  If the auto-login option is on (default
  366.           setting), ftp will also attempt  to  automatically  log
  367.           the user in to the FTP server.
  368.  
  369.      prompt
  370.           Toggle  interactive  prompting.  Interactive  prompting
  371.           occurs during multiple file transfers to allow the user
  372.           to selectively retrieve or store  files.   By  default,
  373.           prompting  is  turned  on.  If prompting is turned off,
  374.           any mget or mput  will  transfer  all  files,  and  any
  375.           mdelete will delete all files.
  376.  
  377.      proxy ftp-command
  378.           Execute an FTP command on a secondary  control  connec-
  379.           tion.   This  command allows simultaneous connection to
  380.           two remote FTP servers for transferring  files  between
  381.           the  two servers.  The first proxy command should be an
  382.           open, to establish the  secondary  control  connection.
  383.           Enter  the  command  proxy ?  to see other FTP commands
  384.           executable on the secondary connection.
  385.  
  386.           The following commands behave differently when prefaced
  387.           by  proxy:   open will not define new macros during the
  388.           auto-login process, close will not erase existing macro
  389.           definitions,  get and mget transfer files from the host
  390.           on the primary control connection to the  host  on  the
  391.           secondary  control  connection,  and  put,  mputd,  and
  392.           append transfer files from the host  on  the  secondary
  393.           control  connection  to the host on the primary control
  394.           connection.
  395.  
  396.           Third party file transfers depend upon support  of  the
  397.           PASV  command  by  the  server on the secondary control
  398.           connection.
  399.  
  400.      put local-file [ remote-file ]
  401.           Store a local file on the remote machine.   If  remote-
  402.           file  is  left unspecified, the local file name is used
  403.           after processing according to any ntrans or  nmap  set-
  404.           tings  in  naming  the remote file.  File transfer uses
  405.           the current  settings  for  representation  type,  file
  406.           structure, and transfer mode.
  407.  
  408.  
  409. Sun Microsystems    Last change: 26 Sep 1992                    7
  410.  
  411. ftp(1)                    User Commands                    ftp(1)
  412.  
  413.      pwd  Print the name of the current working directory on  the
  414.           remote machine.
  415.  
  416.      quit A synonym for bye.
  417.  
  418.      quote arg1 arg2 ...
  419.           Send the arguments specified, verbatim, to  the  remote
  420.           FTP  server.   A  single  FTP reply code is expected in
  421.           return.  (The remotehelp command  displays  a  list  of
  422.           valid arguments.)
  423.  
  424.           quote should be used only by experienced users who  are
  425.           familiar with the FTP protocol.
  426.  
  427.      recv remote-file [ local-file]
  428.           A synonym for get.
  429.  
  430.      remotehelp [ command-name ]
  431.           Request  help  from  the  remote  FTP  server.   If   a
  432.           command-name  is specified it is supplied to the server
  433.           as well.
  434.  
  435.      rename from to
  436.           Rename the file from on the remote machine to have  the
  437.           name to.
  438.  
  439.      reset
  440.           Clear  reply  queue.   This   command   re-synchronizes
  441.           command/reply  sequencing  with  the remote FTP server.
  442.           Resynchronization may be necessary following  a  viola-
  443.           tion of the FTP protocol by the remote server.
  444.  
  445.      rmdir directory-name
  446.           Delete a directory on the remote machine.
  447.  
  448.      runique
  449.           Toggle storing of files on the local system with unique
  450.           filenames.   If a file already exists with a name equal
  451.           to the target local filename for a get or mget command,
  452.           a  .1  is  appended to the name.  If the resulting name
  453.           matches another existing file, a .2 is appended to  the
  454.           original name.  If this process continues up to .99, an
  455.           error message is printed, and  the  transfer  does  not
  456.           take  place.   The  generated  unique  filename will be
  457.           reported.  runique will not  affect  local  files  gen-
  458.           erated from a shell command.  The default value is off.
  459.  
  460.      send local-file [ remote-file ]
  461.           A synonym for put.
  462.  
  463.      sendport
  464.           Toggle the use of PORT commands.  By default, ftp  will
  465.  
  466.  
  467. Sun Microsystems    Last change: 26 Sep 1992                    8
  468.  
  469. ftp(1)                    User Commands                    ftp(1)
  470.  
  471.           attempt  to use a PORT command when establishing a con-
  472.           nection for each data transfer.  The use of  PORT  com-
  473.           mands  can prevent delays when performing multiple file
  474.           transfers. If the PORT command fails, ftp will use  the
  475.           default  data  port.  When  the use of PORT commands is
  476.           disabled, no attempt will be made to use PORT  commands
  477.           for  each data transfer.  This is useful when connected
  478.           to certain FTP implementations that  ignore  PORT  com-
  479.           mands but incorrectly indicate they have been accepted.
  480.  
  481.      status
  482.           Show the current status of ftp.
  483.  
  484.      struct [ struct-name ]
  485.           Set the file structure to struct-name.  The only  valid
  486.           struct-name  is  file, which corresponds to the default
  487.           file structure.  The implementation only supports file,
  488.           and requires that it be specified.
  489.  
  490.      sunique
  491.           Toggle storing of files on remote machine under  unique
  492.           file  names.   The  remote  FTP server must support the
  493.           STOU command for  successful  completion.   The  remote
  494.           server  will  report the unique name.  Default value is
  495.           off.
  496.  
  497.      tenex
  498.           Set the representation type to that needed to  talk  to
  499.           TENEX machines.
  500.  
  501.      trace
  502.           Toggle packet tracing (unimplemented).
  503.  
  504.      type [ type-name ]
  505.           Set the representation type to  type-name.   The  valid
  506.           type-names are ascii for network ASCII, binary or image
  507.           for image, and tenex for local byte size  with  a  byte
  508.           size of 8 (used to talk to TENEX machines).  If no type
  509.           is specified, the current type is printed.  The default
  510.           type is network ASCII.
  511.  
  512.      user user-name [ password ] [ account ]
  513.           Identify yourself to the  remote  FTP  server.  If  the
  514.           password  is  not specified and the server requires it,
  515.           ftp will prompt the user for it (after disabling  local
  516.           echo).   If  an account field is not specified, and the
  517.           FTP server requires it, the user will be  prompted  for
  518.           it.   If an account field is specified, an account com-
  519.           mand will be relayed to the  remote  server  after  the
  520.           login  sequence  is  completed if the remote server did
  521.           not require it for logging in.  Unless ftp  is  invoked
  522.           with   auto-login   disabled,   this  process  is  done
  523.  
  524.  
  525. Sun Microsystems    Last change: 26 Sep 1992                    9
  526.  
  527. ftp(1)                    User Commands                    ftp(1)
  528.  
  529.           automatically on initial connection to the FTP server.
  530.  
  531.      verbose
  532.           Toggle verbose mode.  In verbose  mode,  all  responses
  533.           from  the  FTP  server  are  displayed to the user.  In
  534.           addition, if verbose mode is on, when a  file  transfer
  535.           completes,  statistics  regarding the efficiency of the
  536.           transfer are reported. By default, verbose mode  is  on
  537.           if  ftp's  commands are coming from a terminal, and off
  538.           otherwise.
  539.  
  540.      ?  [ command ]
  541.           A synonym for help.
  542.  
  543.      Command arguments which have embedded spaces may  be  quoted
  544.      with quote (") marks.
  545.  
  546.      If any command argument which  is  not  indicated  as  being
  547.      optional  is  not  specified, ftp will prompt for that argu-
  548.      ment.
  549.  
  550. ABORTING A FILE TRANSFER
  551.      To abort a file transfer, use the  terminal  interrupt  key.
  552.      Sending  transfers  will  be  immediately halted.  Receiving
  553.      transfers will be halted by sending  an  FTP  protocol  ABOR
  554.      command  to  the  remote  server, and discarding any further
  555.      data received.  The speed  at  which  this  is  accomplished
  556.      depends  upon  the remote server's support for ABOR process-
  557.      ing.  If the remote server does not support  the  ABOR  com-
  558.      mand, an ftp> prompt will not appear until the remote server
  559.      has completed sending the requested file.
  560.  
  561.      The terminal interrupt key sequence will be ignored when ftp
  562.      has  completed  any local processing and is awaiting a reply
  563.      from the remote server.  A  long  delay  in  this  mode  may
  564.      result  from  the  ABOR  processing described above, or from
  565.      unexpected behavior by the remote server,  including  viola-
  566.      tions  of the ftp protocol.  If the delay results from unex-
  567.      pected remote server behavior, the local ftp program must be
  568.      killed by hand.
  569.  
  570. FILE NAMING CONVENTIONS
  571.      Local files specified as arguments to ftp commands are  pro-
  572.      cessed according to the following rules.
  573.  
  574.      1)   If the file name - is  specified,  the  standard  input
  575.           (for reading) or standard output (for writing) is used.
  576.  
  577.      2)   If the first character of  the  file  name  is  |,  the
  578.           remainder  of  the  argument  is interpreted as a shell
  579.           command.  ftp then forks a shell, using popen(3S)  with
  580.           the  argument  supplied,  and  reads  (writes) from the
  581.  
  582.  
  583. Sun Microsystems    Last change: 26 Sep 1992                   10
  584.  
  585. ftp(1)                    User Commands                    ftp(1)
  586.  
  587.           standard output (standard input) of that shell.  If the
  588.           shell  command  includes SPACE characters, the argument
  589.           must be quoted; for example "| ls -lt".  A particularly
  590.           useful example of this mechanism is:  "dir | more".
  591.  
  592.      3)   Failing the above checks, if globbing is enabled, local
  593.           file  names are expanded according to the rules used in
  594.           the sh(1); see the glob command.  If  the  ftp  command
  595.           expects  a  single  local file (for example, put), only
  596.           the first filename generated by the globbing  operation
  597.           is used.
  598.  
  599.      4)   For mget commands and  get  commands  with  unspecified
  600.           local  file  names,  the  local  filename is the remote
  601.           filename, which may be altered by a  case,  ntrans,  or
  602.           nmap  setting.   The  resulting  filename  may  then be
  603.           altered if runique is on.
  604.  
  605.      5)   For mput commands and  put  commands  with  unspecified
  606.           remote  file  names,  the  remote filename is the local
  607.           filename, which may be altered by a ntrans or nmap set-
  608.           ting.   The  resulting  filename may then be altered by
  609.           the remote server if sunique is on.
  610.  
  611. FILE TRANSFER PARAMETERS
  612.      The FTP specification specifies many  parameters  which  may
  613.      affect a file transfer.
  614.  
  615.      The representation type may be one of network ASCII, EBCDIC,
  616.      image,  or  local  byte size with a specified byte size (for
  617.      PDP-10's and PDP-20's mostly).  The network ASCII and EBCDIC
  618.      types  have a further subtype which specifies whether verti-
  619.      cal format control (NEWLINE characters,  form  feeds,  etc.)
  620.      are  to  be  passed  through (non-print), provided in TELNET
  621.      format (TELNET format controls), or provided  in  ASA  (FOR-
  622.      TRAN)  (carriage  control  (ASA))  format.  ftp supports the
  623.      network ASCII (subtype non-print only) and image types, plus
  624.      local byte size with a byte size of 8 for communicating with
  625.      TENEX machines.
  626.  
  627.      The file structure may be one of file (no record structure),
  628.      record,  or page. ftp supports only the default value, which
  629.      is file.
  630.  
  631.      The  transfer  mode  may  be  one  of  stream,   block,   or
  632.      compressed.  ftp  supports  only the default value, which is
  633.      stream.
  634.  
  635. SEE ALSO
  636.      ls(1), rcp(1), sh(1), tar(1), ftpd(1M), popen(3S), netrc(4)
  637.  
  638.  
  639. Sun Microsystems    Last change: 26 Sep 1992                   11
  640.  
  641. ftp(1)                    User Commands                    ftp(1)
  642.  
  643. NOTES
  644.      Correct execution  of  many  commands  depends  upon  proper
  645.      behavior by the remote server.
  646.  
  647.      An error in the treatment of carriage returns in the 4.2 BSD
  648.      code  handling  transfers with a representation type of net-
  649.      work ASCII has been corrected.  This correction  may  result
  650.      in  incorrect  transfers of binary files to and from 4.2 BSD
  651.      servers using a representation type of network ASCII.  Avoid
  652.      this problem by using the image type.
  653.  
  654. Sun Microsystems    Last change: 26 Sep 1992                   12
  655.  
  656.  
  657.