Linux ftp Command Syntax
You can also connect to your FTP server on the terminal and operate it with FTP commands. A list of a few of them is given below.
Command | Function |
---|---|
pwd | print the current working directory |
cwd | change working directory |
dele | delete the specified file |
cdup | change to the parent directory |
help | displays help information |
cd | change the working directory |
get filename | download the specified file |
put filename | uploads the specified file |
bye | end FTP session |
ftp [-46pinegvd] [host [port]]
pftp [-46inegvd] [host [port]]
The File Transfer Protocol, a standard on the Internet, includes an interface named FTP. A user are able to move files to and from a faraway network address with this application.
Options may be provided to the command interpreter or at the command line.
- -4 When addressing any host, simply employ IPv4.
- -6 Only use IPv6.
- -p For the purpose to send data, use passive mode. allows the use of FTP in situations where firewalls are in place but prevent connections from the outside world back to the client system. requires the FTP server to be able to run the PASV command. If pftp is employed, this is the default.
- -i Prevents interactive causes while downloading multiple files.
- -n Prevents the initial connection’s “auto-login” attempt from being initiated by FTP. FTP will search for an item describing an account on the other machine in the user’s home directory’s.netrc (see netrc(5)) file if auto-login is enabled. FTP are going to ask for the detached machine login name (through default, the user identity on the local system) and, if needed, a password and account to use for login if there is no entry.
- -e Disables history support and command editing if it was compiled into an FTP executable. Does not require anything else.
- -g Disables globbing in names of files.
- -v When using the verbose option, FTP is compelled to show all responses from the remote server along with data transfer statistics.
- -d Enables debugging easier.
How to setup and configure an FTP server in Linux?
FTP (file transfer protocol) is an internet protocol that is used for transferring files between client and server over the internet or a computer network. It is similar to other internet protocols like SMTP, which is used for emails, and HTTP, which is used for websites. FTP server enables the functionality of transferring files between server and client. A client connects to the server with credentials and depending upon the permissions it has, it can either read files or upload files to the server as well. In this article, we will see how to set up an FTP server, configure user permissions, configure a firewall, and finally encrypt our FTP traffic with SSL.