How to FTP to Your Web Site from a Command Line

How to FTP to Your Web Site from a Command LineOver the years, I’ve listened to many individuals out there claim there is simply no practical application to using FTP over a command line. I happen to beg to differ and would even go so far as to point out that it can actually be a great way to keep your skills and your mind sharp. It just takes a little bit of practice to get the hang of it. Here, allow me to demonstrate for you. Below I will share two examples of command line FTP usage. One set of examples for Windows, the other one for Linux users.

Windows FTP from your command line

The first step is to change the directory into the one you wish to work within locally. So for example:

cd C:TempDownload

The next step is to then connect to the remote FTP server. For example:

ftp ftp.yourwebsite.com

Next, you’ll be prompted for your username and then your password.

From here, you can type in ls or dir to get a directory listing of what is in the current directory. You can cd whatever to change to a listed subdirectory.

If you wanted to download something, you’d cd to it and then type get item.exe or whatever it happens to be.

Once you’re all finished, just type bye to leave. It’s just that simple.

Linux FTP from your command line

I have news for you — it’s basically the same thing as above. From a Linux command shell you would once again type in the same thing.

ftp ftp.yourwebsite.com

Next, you’ll be prompted for your username and then your password.

From here, you can type in ls or dir to get a directory listing of what is in the current directory. You can cd whatever to change to a listed subdirectory.

If you wanted to download something, you’d cd to it and then type get item.exe or whatever it happens to be.

Once you’re all finished, just type bye to leave. Nothing there is really different, which makes the potential learning curve all that much easier.

Article Written by

  • http://www.facebook.com/profile.php?id=100000984952224 Romeo Mai

    awesome!

  • http://www.facebook.com/profile.php?id=100000984952224 Romeo Mai

    awesome!

  • http://twitter.com/rdcogan Rick Cogan

    When downloading a binary file, like an exe, you would want to type “bin” first, to put the download in image mode vs. the default text mode.

  • http://twitter.com/rdcogan Rick Cogan

    When downloading a binary file, like an exe, you would want to type “bin” first, to put the download in image mode vs. the default text mode.