FTP command-line options for Linux and UNIX

Command-line options (also known as options, flags, or switches), are used to modify the operation of an FTP command. A command-line option typically follows the main FTP command after a space. Here’s a list of the most commonly used FTP command-line options for Linux and UNIX.
Command-Line OptionDescription of Command
-4Use only IPv4 to contact any host.
-6Use IPv6 only.
-eDisables command editing and history support, if it was compiled into the ftp executable. Otherwise, it does nothing.
-pUse passive mode for data transfers. Allows the use of ftp in environments where a firewall prevents connections from the outside world back to the client machine. Requires that the ftp server support the PASV command. This is the default if invoked as pftp.
-iTurns off interactive prompting during multiple file transfers.
-nRestrains ftp from attempting auto-login upon initial connection. If auto-login is enabled, ftp checks the .netrc (see netrc) file in the user's home directory for an entry describing an account on the remote machine. If no entry exists, ftp prompts for the remote machine login name (the default is the user identity on the local machine), and, if necessary, prompt for a password and an account with which to login.
-gDisables file name globbing.
-vThe verbose option forces ftp to show all responses from the remote server, as well as report on data transfer statistics.
-dEnables debugging.