This is my first post on the techshare. I’ve recently learnt on how use File Transfer Protocol service or FTP service without any third party software or browser. Of course if you would regard a command prompt as a third party software then I have nothing to say.
Before you wish to perform an FTP for upload or download for any files. Please do make sure where is your starting directory for your location your file to be upload or location your file to be download.
For example, I would like to upload a file from my computer’s Desktop and the file name I would like to upload is filename.txt .
C:Documents and SettingsarrenDesktop
Then launch the command prompt.
Type “cd C:Documents and SettingsarrenDesktop”
Then your command line should start with C:Documents and SettingsarrenDesktop>
Next you may start your FTP connection by typing “ftp arrentan.com”
===========================================================
C:Documents and SettingsarrenDesktop>ftp arrentan.com
Connected to arrentan.com.
220———- Welcome to Pure-FTPd [TLS] ———-
220-You are user number 8 of 50 allowed.
220-Local time is now 17:03. Server port: 21.
220-This is a private system – No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 30 minutes of inactivity.
User (arrentan.com:(none)):
============================================================
Next, enter your username for your FTP account and password.
============================================================
User (arrentan.com:(none)): username
331 User user OK. Password required
Password:**********
============================================================
After successful login, you will be show your current directory in your remote directory. Or you may check your current directory by typing “pwd”.
============================================================
230-User username has group access to: username
230 OK. Current restricted directory is /
ftp>cd www
ftp> pwd
257 “/www” is your current location
============================================================
Then you may upload your file using “put” command.
ftp>put local-file remote-file
#local-file – Specifies the local file to copy.
#remote-file – Specifies the name to use on the remote computer. If not specified, the file is given the local-file name.
============================================================
ftp> put filename.txt filename.txt
200 PORT command successful
150 Connecting to port 5001
226-File successfully transferred
226 146.766 seconds (measured here), 26.72 Kbytes per second
ftp: 4032348 bytes sent in 145.63Seconds 27.69Kbytes/sec.
============================================================
To download the file from remote terminal, you may use the “get” command.
remote-file – Specifies the remote file to copy.
local-file – Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.
============================================================
ftp>get remote-file local-file
ftp> get filename
200 PORT command successful
150-Connecting to port 5002
150 3922.0 kbytes to download
===================================================
No related posts.