RECOMMENDED: Click here to fix Windows errors and optimize system performance
Previously, we used FileZilla Client, a free FTP client for Windows that can be used to access and transfer files to your FTP server. We also saw how we could access the FTP server with NotePad++, a Notepad alternative for Windows. In this post, we will discuss how to access FTP from the command prompt.
The Windows command prompt allows access to the server via the FTP command. Once connected to your server, you can transfer files from and download files from your PC by simply using commands. I will also list some of the FTP commands that will be useful over time.
Accessing FTP servers from the command prompt
Here are the steps that will show you how to use FTP from the command prompt:
Step1 : Start the command prompt and change the directory where all your files are located. Because this is where you can move your files on the server and upload them in the same folder.
Step2 : Enter command
ftp domain name
Example : ftp azharftp.clanteam.com
Step 3 : Enter user name and password.
Step 4: You see the connection configuration. You can now perform actions on the server.
These are the FTP commands:
You can use the help to get the complete list of FTP commands. This command does not require a connection to a remote system.
- Help: Requests a list of all available FTP commands.
- ascii : to activate Ascii mode.
- status: to see how the current FTP session is configured.
- prompt: to activate and deactivate the interactive mode.
- ls : directory listing equivalent to you.
- ls -l : long directory list, more details.
- pwd : Display current directory name
- cd : Change directory.
- lcd : changes the local current directory.
- get: download the file from the FTP server.
- put : file to server.
- mget : download multiple files from the FTP server.
- mput : upload multiple files to the FTP server.
- binary : to activate binary mode.
- Delete: delete any file on the FTP server.
- mkdir : to create a directory on the FTP server.
- ascii: Sets the file transfer mode to ASCII (Note: This is the default mode for most FTP programs).
- quit/close/bye/disconnect : Disconnect from FTP server.
- The prefix of an exclamation point command causes the command to be executed on the local system instead of the remote system.
Upload a file to the server
To download a file, enter the command :
Now you can see the downloaded file by entering the URL :
Let me know if you have any questions.
Read More : Add network location, FTP cartographic drive under Windows.