Ftp put 上传文件
2013-08-16 10:02
148 查看
废话不说了,有需要的请参考
]# ftp 10.187.94.28
Connected to 10.187.94.28 (10.187.94.28).
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 09:35. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 10 minutes of inactivity.
Name (10.187.94.28:root): 《-- 输入用户名
331 User ichibanc OK. Password required
Password:《--输入密码
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd public_html/ 《——进入目标目录
250 OK. Current directory is /public_html
ftp> passive 《——关闭被动模式
Passive mode off.
ftp> put 2.tar.gz ./2.product.tar.gz 《——使用put 上传文件,其中: 2.tar.gz 为本地文件,./2.product.tar.gz 为上传的目标目录及文件名
local: 2.tar.gz remote: ./2.product.tar.gz
200 PORT command successful
150 Connecting to port 58254
226-File successfully transferred
226 12.823 seconds (measured here), 29.43 Mbytes per second
395667801 bytes sent in 12.8 secs (30870.52 Kbytes/sec)
ftp> 《——上传完成
ftp> bye
221-Goodbye. You uploaded 386395 and downloaded 0 kbytes.
221 Logout.
注意:上传目标目录 要有写权限
参考 http://www.cnblogs.com/buro79xxd/archive/2010/01/22/1682590.html
]# ftp 10.187.94.28
Connected to 10.187.94.28 (10.187.94.28).
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 09:35. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 10 minutes of inactivity.
Name (10.187.94.28:root): 《-- 输入用户名
331 User ichibanc OK. Password required
Password:《--输入密码
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd public_html/ 《——进入目标目录
250 OK. Current directory is /public_html
ftp> passive 《——关闭被动模式
Passive mode off.
ftp> put 2.tar.gz ./2.product.tar.gz 《——使用put 上传文件,其中: 2.tar.gz 为本地文件,./2.product.tar.gz 为上传的目标目录及文件名
local: 2.tar.gz remote: ./2.product.tar.gz
200 PORT command successful
150 Connecting to port 58254
226-File successfully transferred
226 12.823 seconds (measured here), 29.43 Mbytes per second
395667801 bytes sent in 12.8 secs (30870.52 Kbytes/sec)
ftp> 《——上传完成
ftp> bye
221-Goodbye. You uploaded 386395 and downloaded 0 kbytes.
221 Logout.
注意:上传目标目录 要有写权限
参考 http://www.cnblogs.com/buro79xxd/archive/2010/01/22/1682590.html
相关文章推荐
- Linux_ftp_命令行下下载文件get与上传文件put的命令应用
- Linux_ftp_命令行下下载文件get与上传文件put的命令应用
- Linux解决问题篇——ftp上传文件(使用put)时,permission denied,下载文件(使用get)时,failed to open file
- ftpget 和ftpput命令 tftp 上传下载文件
- Linux_ftp_命令行下下载文件get与上传文件put的命令应用
- Linux_ftp_命令行下下载文件get与上传文件put的命令应用
- 在ftp被动模式下 ftp_put 上传文件
- 通过Ftp put命令上传导致文件损坏的解决办法
- php中ftp_put上传文件
- Linux ftp 命令行中下载文件get与上传文件put的命令应用详解
- Linux(RHEL5.4)通过Ftp put命令上传导致文件损坏的解决办法
- linux使用ftpclient文件上传遇到的问题
- 封装Ftp API函数,实现上传,下载文件,创建目录
- FTP文件上传下载
- C# FTP上传文件至服务器代码
- ftp上传文件异常
- FTP上传文件示例
- java实现ftp跨服务器上传文件并用html5流媒体播放
- 解决了一个很难的问题上传文件 到FTP
- 使用ftp软件上传下载php文件时换行丢失bug