Amit Dhamu

Writes Code

FTP Upload Using Command Prompt or Terminal

// Open Command Prompt
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>

// Type ftp
ftp

// You will notice that ftp> is now the current scope.

// Open FTP connection.
open ftp.mywebsite.com

// Connection Status & Login
Connected to ftp.mywebsite.com.
220---------- Welcome  ----------
220-You are user number 1 of 5 allowed.
220-Local time is now 15:11. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.
User (ftp.mywebsite.com:(none)): my_username
331 User my_username OK. Password required
Password: // Type password
230-User my_username has group access to:  root
230 OK. Current restricted directory is /

// To download a file, type:
get images/sunshine.jpg

// To upload a file, type:
send C:\Users\Amit\Documents\sunshine.jpg

// You will then see a transfer status
200 PORT command successful
150 Connecting to port 50170
226-File successfully transferred
226 0.073 seconds (measured here), 286.20 bytes per second
ftp: 21 bytes sent in 0.03Seconds 0.64Kbytes/sec.

// To close your FTP connection, type:
close

// To get out the FTP scope, type:
quit


Just a simple example but you can find out more from this website.


command prompt / cmd / console / shell / terminal

← Wrap Element Around Other Element Mac OS X MySQL Dump Path →