红联Linux门户
Linux帮助

ftp的常用命令有哪些?

发布时间:2013-10-28 16:18:43来源:红联作者:isosdw
1![cmd[args]]:在本地机中执行交互shell,exit 回到ftp 环境,如:!ls*.zip.
2.$ macro-ame[args]:执行宏定义macro-name.
3.account[password]:提供登录远程系统成功后访问系统资源所需的补充口令。
4.append local-file[remote-file]:将本地文件追加到远程系统主机,若未指定远程系统文件名,则使用本地文件名。
5.ascii:使用ascii 类型传输方式。
6.bell:每个命令执行完毕后计算机响铃一次。
7.bin:使用二进制文件传输方式。
8.bye:退出ftp 会话过程。
9.case:在使用mget 时,将远程主机文件名中的大写转为小写字母。
10.cd remote-dir:进入远程主机目录。
11.cdup:进入远程主机目录的父目录。
12.chmod mode file-name:将远程主机文件file-name 的存取方式设置为mode,如:chmod 777 a.out。
13.close:中断与远程服务器的ftp 会话(与open 对应)。
14.cr:使用asscii 方式传输文件时,将回车换行转换为回行。
15.delete remote-file:删除远程主机文件。
16.debug[debug-value]:设置调试方式,显示发送至远程主机的每条命令,如:deb up 3,若设为0,表示取消debug。
17.dir[remote-dir][local-file]:显示远程主机目录,并将结果存入本地文件local-file。
18.disconnection:同close。
19.form format:将文件传输方式设置为format,缺省为file 方式。
20.get remote-file[local-file]:将远程主机的文件remote-file 传至本地硬盘的local-file。
文章评论

共有 0 条评论