iTech College - Internet Technology, Online Education, E-Learning, Technician Training, Tech Tutorials, Distance Education, Virtual Learning FTP Course: FTP Commands - Transfer and Rename Files - www.itechcollege.com FTP Course: FTP Commands - Transfer and Rename Files - www.itechcollege.com
Free Courses
HTML
JavaScript
CSS
ASP
PHP
JSP
C++
ASP.NET
SQL
AJAX
FTP
XML

courses > FTP > FTP Commands - Transfer and Rename Files

FTP Commands - Transfer and Rename Files


Here are some example of how to transfer and rename files using basic FTP or Command Prompt. Most Command Prompt will automatically be set in ascii format for transfers. Ascii format is used to transfer text files, this would include all text files and all htm/html files. If you are sending or receiving images or other files types you will need to set your transfer mode to binary. Binary transfer mode is for all other file types, GIFs JPGs, BMPs, .doc etc. Type bin to set the transfer mode to binary.

Type asc to change back to ascii transfers.

NOTE: The default transfer mode in FTP is ASCII Text. You must set the transfer mode to binary if the file is anything other than a standard ASCII text file (i.e. .gif or .jpg files)

Password:
230 User logged in, proceed.
ftp> bin
200 Type set to I.
ftp>

To rename a file that already exists in your FTP directory. In this case the file temp2 is being renamed to temp22.

ftp> rename temp2 temp22
350 File exists, ready for destination name
250 RNTO command successful.
ftp>

You can delete file using command delete.

To UPLOAD a file, type put C:\my-www\default2.htm, (Location of your file on your computer) and hit enter. This will transfer your file default2.htm from your computer: c:\my-www folder and place it in your root directory.

ftp> put default2.htm
200 PORT Command successful.
150 Opening ASCII mode data connection for default2.htm.
226 Transfer complete.
2261 bytes sent in 0.00 seconds (2261000.00 Kbytes/sec)
ftp>

To DOWNLOAD a file, type get C:\my-www\default2.htm and hit enter. This will transfer your file default2.htm from your root directory to your computer: c:\my-www folder.

ftp> get default2.htm
200 PORT Command successful.
550 Permission denied.
ftp>

When the transfer is complete type quit at the ftp> prompt.

Other Commands

Once you get to the ftp> prompt you can type help to see a list of commands available.

ftp> help (list all of your commands)
Commands may be abbreviated. Commands are:
! delete literal prompt send
? debug ls put status
append dir mdelete pwd trace
ascii disconnect mdir quit type
bell get mget quote user
binary glob mkdir recv verbose
bye hash mls remotehelp
cd help mput rename
close lcd open rmdir
ftp>

You can have files and folders in your root directory. You will be able to create folders in your account and store files in those folders, they will be accessible by linking to them from a file in your root directory. The following commands may be helpful:

lcd - change local directory.
mkdir - make directory.
rmdir - remove directory.
pwd - print the current working directory.
mget mput - mget and mput allow you to move multiple files at once.

You can also use an '*' for matching filenames.

prompt: Also helpful in use with mput or mget - mput/mget will normally ask you if you want to put/get each file that you select on the command line. You can turn this functionality on or off with the prompt command.



  Back to Index Page
 Next Page:  

FTP Introduction
FTP Commands Viewing Files and Directories
FTP Commands Transfer and Rename files
FTP with WS FTP Windows
FTP with Fetch Macintosh
Using Web Browser for FTP


Online Education, Online Training for Your Job, Distance Education, E-learning Programs for Your Career!Online Colleges, Online Universities, E-learning & Distance Education for Your Career! Easy Job Training & Online Courses.


   Email A Friend  
 
Earn Online Degree
for Your Job
I found a job after I earned an online degree!
Online classes for finding a Job. Online College, Online University, Degrees, E-learning school, online certificate Earn your
online degree now!
Online Training
for Good Job
Why I work so hard but earn so little? Why I cannot find a high paying job?
Online training for a Good Jobs. Online Degree, E-learning school, online certificate Go to
online school now!

Copyright ©2024, itechcollege.com. All rights reserved
iTechCollege | About iTech | Contact iTech