banner



How To Ftp File From Linux To Windows

ProcedureHow to Copy Files to a Remote Arrangement (ftp)

  1. Modify to the source directory on the local system.

    The directory from which yous type the ftp command is the local working directory, and thus the source directory for this operation.

  2. Institute an ftp connection.

    See How to Open up an ftp Connection to a Remote System.

  3. Change to the target directory.

    Think, if your system is using the automounter, the home directory of the remote system'south user appears parallel to yours, under /abode.

  4. Ensure that you have write permission to the target directory.


    ftp>                                  ls -l                                target-directory              
  5. Set the transfer blazon to binary.

  6. To copy a single file, use the put command.

  7. To re-create multiple files at once, utilise the mput command.


    ftp>                                  mput                                filename                [filename                ...]

    Yous tin supply a series of private file names and you can use wildcard characters. The mput command copies each file individually, request y'all for confirmation each fourth dimension.

  8. To close the ftp connection, type cheerio.


Example 29–7 Copying Files to a Remote System (ftp)

In this example, the user kryten opens an ftp connection to the system pluto, and uses the put command to copy a file from his or her system to the /tmp directory on system pluto.


$                          cd /tmp                                      ftp pluto                        Connected to pluto. 220 pluto FTP server (SunOS 5.8) ready. Proper name (pluto:kryten):                          kryten                        331 Countersign required for kryten. Password:                          xxx                        230 User kryten logged in. ftp>                          cd /tmp                        250 CWD command successful. ftp>                          put filef                        200 PORT control successful. 150 ASCII information connection for filef (129.152.221.238,34356). 226 Transfer complete. ftp>                          ls                        200 PORT command successful. 150 ASCII data connectedness for /bin/ls (129.152.221.238,34357) (0 bytes). dtdbcache_:0 filea filef files ps_data speckeysd.lock 226 ASCII Transfer consummate. threescore bytes received in 0.058 seconds (1.01 Kbytes/due south) ftp>                          bye                        221 Goodbye.

In this example, the same user kryten uses the mput control to copy a set of files from his or her home directory to pluto's /tmp directory. Note that kryten can accept or reject private files in the prepare.


$                          cd $Home/testdir                        $                          ls                        test1   test2   test3 $                          ftp pluto                        Continued to pluto. 220 pluto FTP server (SunOS 5.8) ready. Name (pluto:kryten):                          kryten                        331 Password required for kryten. Password:                          xxx                        230 User kryten logged in. ftp>                          cd /tmp                        250 CWD command successful. ftp>                          mput test*                        mput test1?                          y                        200 PORT command successful. 150 ASCII data connection for test1 (129.152.221.238,34365). 226 Transfer consummate. mput test2?                          y                        200 PORT command successful. 150 ASCII data connection for test2 (129.152.221.238,34366). 226 Transfer complete. mput test3?                          y                        200 PORT command successful. 150 ASCII information connectedness for filef (129.152.221.238,34356). 226 Transfer complete. ftp>                          bye                        221 Farewell.

Source: https://docs.oracle.com/cd/E19120-01/open.solaris/819-1634/remotehowtoaccess-60496/index.html

Posted by: stoneclinking.blogspot.com

0 Response to "How To Ftp File From Linux To Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel