Clever Geek Handbook
πŸ“œ ⬆️ ⬇️

ftp (program)

ftp ( English File transfer protocol ) is a standard operating system program designed to receive and transfer files using the FTP protocol ( FTP client ). Included with UNIX, Windows.

ftp
Ftp (terminalprogram) .png
Typical ftp session
Type ofFTP client
Interfacecommand line

Command Line Keys

Modes of operation of the program can be specified on the command line or in the command interpreter.

-pPassive data transfer.
-AData transfer in active mode.
-iDisable interactive request when transferring multiple files.
-nPrevents automatic login when a connection is established.
-eForbids editing teams and using the history of teams.
-gPrevents globalization of file names.
-mBy default, the data channel in passive mode is bound to the same interface as the control channel. The option prohibits this behavior.
-vShows all server responses and data transfer statistics.
-dAllows debugging.

The command line can also indicate the remote computer with which the connection should be established. If it is specified, then the ftp program after starting tries to establish a connection with it, if not, it goes into command mode and waits for user instructions.

Internal Commands

When waiting for a command from the user, the program issues a request

ftp>

The main program commands:

! [command [options]]Invokes a command interpreter on the local machine.
help [command]Gives help on the specified command.
lcd [directory]Changes the working directory on the local computer
open remote_computer [port]Establishes a connection with a remote computer.
user user [password] [account]Identifies the user of the remote computer. If automatic login is not prohibited, the authentication process starts when a connection to the FTP server is established.
asciiSets the ASCII file transfer mode.
binarySets the binary file transfer mode.
cd directoryChanges the working directory on the remote computer.
mkdir catalogCreates a directory on a remote computer.
delete fileDeletes the file on the remote computer.
dir [directory] [local_file]Prints a list of files in a directory on a remote computer to a local file or to a terminal if no file is specified.
get file [local_file]Accepts a file from a remote computer.
reget file [local_file]Acts as get, however, if a local file exists and its size is smaller than the file on the remote computer, then it is downloaded from the point of disconnection.
restart offsetRuns the following get or put command at the specified offset in the file.
put local_file [file]Transfer the local file to the remote computer.
pwdPrints the name of the working directory on the remote computer.
rename [old] [new]Renames a file on a remote computer.
closeEnds an FTP session.
byeEnds an FTP session and exits the program.

Links

UNIX man pages: ftp () (English) (August 15, 1999). Date of treatment May 19, 2012. Archived September 22, 2012.


Source - https://ru.wikipedia.org/w/index.php?title=Ftp_(program)&oldid=92006285


More articles:

  • Egnell, Klas
  • Stetsurenko, Alexander Yurievich
  • Panulirus argus
  • Sluzew Cemetery
  • Palazzo
  • Sakin, Roman Ilyich
  • Skeleton World Cup 2011/2012
  • TVyNovelas Award for the best telenovela of the year
  • Towers, Constance
  • Guiana squirrel

All articles

Clever Geek | 2019