How to use ftp command to operate file transfer under Linux

Using the ftp command in the Linux system, users can perform file transfer operations, which are often used in Linux system operations. The following editor will introduce the usage of Linux commands to you.

[root@www ~]# yum install ftp install ftp supports commands under the RedHat series version

  [root@www ~]# ftp Enter ftp command

  FTP> open connection command

  FTP” to 10.10.22.8 to connect to the host

  FTP"admin login name

  FTP"passwd login password

  connection succeeded

  FTP"! Exit to the shell from the ftp subsystem.

  FTP"? Displays the ftp command description. ? Same as help.

  FTP> append Appends a local document to a document on a remote computer using the current document type configuration.

  FTP > ascii Configures the file transfer type as the default ASCII.

  FTP > bell transitions the bell to ring after each file transfer command completes. By default, the ringtone is off.

  FTP> binary (or bi) Configure the file transfer type as binary.

  FTP" bye (or by) Ends the session with the ftp command parameter in linux of the remote computer and exits the ftp command parameter in linux.

  FTP> cd to change the working directory on the remote computer.

  FTP" close ends the session with the ftp command parameter in the remote server's linux and returns to the command interpreter.

  FTP> debug Conversion debugging. When debugging is on, every command sent to the remote computer is printed, preceded by the string ">". By default, debugging is turned off.

  FTP> delete Deletes the document on the remote computer.

  FTP> dir Displays a list of remote directory documents and subdirectories.

  FTP" disconnect disconnects from the remote computer and keeps the ftp command parameter prompt in linux.

  FTP> get Copies a remote document to the local computer using the current document conversion type.

  FTP "glob" converts document name combinations. Combinations allow wildcards (* and ?) in internal document or pathnames. By default, composition is on.

  FTP 》hash 转换已传输的每个数据块的数字签名 (#) 打印。数据块的大小是2048 字节。默认情况下,散列符号打印是关闭的。

  FTP 》help 显示linux中ftp命令参数命令说明。

  FTP 》lcd 更改本地电脑上的工作目录。默认情况下,工作目录是启动linux中ftp命令参数的目录。

  FTP 》literal 将参数逐字发送到远程linux中ftp命令参数服务器。将返回单个的linux中ftp命令参数回复代码。

  FTP 》ls 显示远程目录文档和子目录的缩写列表。

  FTP 》mdelete 删除远程电脑上的文档。

  FTP 》mdir 显示远程目录文档和子目录列表。能够使用 mdir 指定多个文档。

  FTP 》mget 使用当前文档传送类型将远程文档复制到本地电脑。

  FTP 》mkdir 创建远程目录。

  FTP 》mls 显示远程目录文档和子目录的缩写列表。

  FTP 》mput 使用当前文档传送类型将本地文档复制到远程电脑上。

  FTP 》open 和指定的linux中ftp命令参数服务器连接。

  FTP 》prompt 转换提示。假如关闭提示时 mget 及 mput 传送任何文档,linux中ftp命令参数在多文档传送过程中将提示允许您有选择地检索或存储文档。默认情况下,提示是打开的。

  FTP 》put 使用当前文档传送类型将本地文档复制到远程电脑上。

  FTP 》pwd 显示远程电脑上的当前目录。

  FTP 》quit 结束和远程电脑的linux中ftp命令参数会话并退出linux中ftp命令参数。

  FTP 》quote 将参数逐字发送到远程linux中ftp命令参数服务器。将返回单个的linux中ftp命令参数回复代码。

  FTP 》recv 使用当前文档传送类型将远程文档复制到本地电脑。Recv 和 get相同。

  FTP 》remotehelp 显示远程命令帮助。

  FTP 》rename 重命名远程文档。

  FTP 》rmdir 删除远程目录。

  FTP 》send 使用当前文档传送类型将本地文档复制到远程电脑上。Send 和put 相同。

  FTP 》status 显示linux中ftp命令参数连接和转换的当前状态。

  FTP 》trace 转换数据包跟踪。Trace 在运行linux中ftp命令参数命令时显示每个数据包的路由。

  FTP 》type 配置或显示文档传送类型。

  FTP 》user 指定远程电脑的用户。

  FTP 》verbose 转换 verbose 模式。假如打开,将显示任何 linux中ftp命令参数响应。在文档传送完成后,将同时显示和传送效率有关的统计信息。默认情况下,verbose 是打开的。

  上面就是Linux下ftp命令的用法介绍了,最全的Linux ftp命令都在这里,ftp命令配合其他命令能够达到不同的效果,可应用于各种情景中。

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326861177&siteId=291194637