A command line FTP utility is available on Windows and Mac OS X and can be used without installing additional software. Command line FTP is a reliable tool for transferring files. You can also use it for testing when troubleshooting problems with the Dreamweaver or UltraDev FTP client. The instructions provided below show you how to use the command line FTP utility for Windows and Mac OS X.
Note: This TechNote provides basic instructions for using the command line FTP utility. For more detailed information, consult the documentation for your operating system.
Windows:
1 | To launch command line FTP utility, go to Start > Run and enter"cmd" into the Open field of the run dialog box. Click OK or press enter. Note: If using Windows 98/95/Me, enter "command" instead of"cmd". |
2 | To change to a local directory that contains your site files, type cd followed by the path to the desired directory after the prompt. Example: If your site files are stored in c:\sites\my_site, enter cd c:\sites\my_site. |
3 | At the prompt, enter ftp + FTP server name and press enter. Note: The server name would be the same as the ftp host name used in the define sites dialog box in Dreamweaver and UltraDev. Example: ftp ftp.redhat.com. |
4 |
You are prompted to enter a user name. Following the prompt, enter the user name for the FTP account and press enter. Note: If you are connecting to an FTP server that allows anonymous FTP, you don't need a valid account. However, use the preconfigured account called ftp (ftp is the same as anonymous) to access the server. |
5 | Enter your password when the password prompt appears and press enter. Note:For security reasons, the password entered is not displayed on the screen. |
6 | When the' Login successful' message appears, you have successfully connected. You now know that the ftp server is up and running and that you can successfully connect to it from your machine.
Note: You still see a list of FTP commands even if you are not successfully connected to the FTP server. Commonly used FTP commands: ls: directory listing equivalent to dir.
Note: All FTP commands are case sensitive and in lower case. |
Mac OS X
1 | To launch terminal, choose Hard Drive > Applications > Utilities > Terminal. |
2 | At the UNIX shell prompt, you can change the current directory by typing cd + the path to the desired directory. |
3 | At the UNIX shell prompt, enter ftp + the FTP host name and press return. |
4 | Follow Windows steps 4 - 6. |
Additional information
For more information concerning troubleshooting FTP connection in Dreamweaver or UltraDev, see Troubleshooting FTP issues (TechNote 14834).