The FTP command is a command-line tool that allows you to transfer files between a local computer and a remote FTP server. To use the FTP command, you will need to know the IP address or domain name of the FTP server, as well as your username and password for that server.
Here are the basic steps on how to use the FTP command on Linux:
- Open a terminal window.
- Type the following command:
For example, to connect to an FTP server with the IP address 192.168.1.100, you would type the following command:
- You will be prompted to enter your username and password.
- Once you have entered your username and password, you will be connected to the FTP server.
- You can then use the FTP command to transfer files between your local computer and the remote FTP server.
Here are some of the most common FTP commands:
- ls: List the files and directories on the remote FTP server.
- cd: Change directories on the remote FTP server.
- get: Download a file from the remote FTP server to your local computer.
- put: Upload a file from your local computer to the remote FTP server.
- mkdir: Create a new directory on the remote FTP server.
- rmdir: Delete a directory on the remote FTP server.
- bye: Exit the FTP session.
For more information on the FTP command, you can refer to the man page: https://linux.die.net/man/1/ftp.