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 Option | Description of Command |
---|---|
-4 | Use only IPv4 to contact any host. |
-6 | Use IPv6 only. |
-e | Disables command editing and history support, if it was compiled into the ftp executable. Otherwise, it does nothing. |
-p | Use 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. |
-i | Turns off interactive prompting during multiple file transfers. |
-n | Restrains 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. |
-g | Disables file name globbing. |
-v | The verbose option forces ftp to show all responses from the remote server, as well as report on data transfer statistics. |
-d | Enables debugging. |
0 Comments
Post a Comment