man ftp Command

Man page for apt-get ftp Command

Man Page for ftp in Linux

Ubuntu Man Command : man ftp

Man Ftp  Command

This tutorial shows the man page for man ftp in linux.

Open terminal with 'su' access and type the command as shown below:
man ftp

Result of the Command Execution shown below:

FTP(1)                                                               BSD General Commands Manual                                                              FTP(1)

NAME
ftp  Äî Internet file transfer program

SYNOPSIS
ftp [ pinegvd] [host [port]]
pftp [ inegvd] [host [port]]

DESCRIPTION
Ftp is the user interface to the Internet standard File Transfer Protocol. The program allows a user to transfer files to and from a remote network site.

Options may be specified at the command line, or to the command interpreter.

p Use passive mode for data transfers. Allows 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 will check the .netrc (see netrc(5)) file in the
user's home directory for an entry describing an account on the remote machine. If no entry exists, ftp will prompt for the remote machine login name
(default is the user identity on the local machine), and, if necessary, prompt for a password and an account with which to login.

e Disables command editing and history support, if it was compiled into the ftp executable. Otherwise, does nothing.

g Disables file name globbing.

v Verbose option forces ftp to show all responses from the remote server, as well as report on data transfer statistics.

d Enables debugging.

The client host and an optional port number with which ftp is to communicate may be specified on the command line. If this is done, ftp will immediately
attempt to establish a connection to an FTP server on that host; otherwise, ftp will enter its command interpreter and await instructions from the user. When
ftp is awaiting commands from the user the prompt  Äòftp> Äô is provided to the user. The following commands are recognized by ftp:

! [command [args]]
Invoke an interactive shell on the local machine. If there are arguments, the first is taken to be a command to execute directly, with the rest of
the arguments as its arguments.

$ macro name [args]
Execute the macro macro name that was defined with the macdef command. Arguments are passed to the macro unglobbed.

account [passwd]
Supply a supplemental password required by a remote system for access to resources once a login has been successfully completed. If no argument is
included, the user will be prompted for an account password in a non echoing input mode.

append local file [remote file]
Append a local file to a file on the remote machine. If remote file is left unspecified, the local file name is used in naming the remote file
after being altered by any ntrans or nmap setting. File transfer uses the current settings for type, format, mode, and structure.

ascii Set the file transfer type to network ASCII. This is the default type.

bell Arrange that a bell be sounded after each file transfer command is completed.

binary Set the file transfer type to support binary image transfer.

bye Terminate the FTP session with the remote server and exit ftp. An end of file will also terminate the session and exit.

case Toggle remote computer file name case mapping during mget commands. When case is on (default is off), remote computer file names with all letters
in upper case are written in the local directory with the letters mapped to lower case.

cd remote directory
Change the working directory on the remote machine to remote directory.

cdup Change the remote machine working directory to the parent of the current remote machine working directory.

chmod mode file name
Change the permission modes of the file file name on the remote sytem to mode.

close Terminate the FTP session with the remote server, and return to the command interpreter. Any defined macros are erased.

cr Toggle carriage return stripping during ascii type file retrieval. Records are denoted by a carriage return/linefeed sequence during ascii type
file transfer. When cr is on (the default), carriage returns are stripped from this sequence to conform with the UNIX single linefeed record
delimiter. Records on non UNIX remote systems may contain single linefeeds; when an ascii type transfer is made, these linefeeds may be distin Äê
guished from a record delimiter only when cr is off.

qc Toggle the printing of control characters in the output of ASCII type commands. When this is turned on, control characters are replaced with a
question mark if the output file is the standard output. This is the default when the standard output is a tty.

delete remote file
Delete the file remote file on the remote machine.

debug [debug value]
Toggle debugging mode. If an optional debug value is specified it is used to set the debugging level. When debugging is on, ftp prints each com Äê
mand sent to the remote machine, preceded by the string  Äò > Äô

dir [remote directory] [local file]
Print a listing of the directory contents in the directory, remote directory, and, optionally, placing the output in local file. If interactive
prompting is on, ftp will prompt the user to verify that the last argument is indeed the target local file for receiving dir output. If no direc Äê
tory is specified, the current working directory on the remote machine is used. If no local file is specified, or local file is , output comes to
the terminal.

disconnect A synonym for close.

form format
Set the file transfer form to format. The default format is  Äúfile Äù.

get remote file [local file]
Retrieve the remote file and store it on the local machine. If the local file name is not specified, it is given the same name it has on the
remote machine, subject to alteration by the current case, ntrans, and nmap settings. The current settings for type, form, mode, and structure are
used while transferring the file.

glob Toggle filename expansion for mdelete, mget and mput. If globbing is turned off with glob, the file name arguments are taken literally and not
expanded. Globbing for mput is done as in csh(1). For mdelete and mget, each remote file name is expanded separately on the remote machine and
the lists are not merged. Expansion of a directory name is likely to be different from expansion of the name of an ordinary file: the exact result
depends on the foreign operating system and ftp server, and can be previewed by doing  Äòmls remote files  Äô Note: mget and mput are not meant to
transfer entire directory subtrees of files. That can be done by transferring a tar(1) archive of the subtree (in binary mode).

hash Toggle hash sign (``


Related Topics

Apt Get Commands