ftp程序那个rename问题

hanhuoqi5 2012-05-22 02:06:04
我rename han han1
但是服务端只显示rntf han不知倒rnto han1去哪了
哪位大大能给我讲下ubuntu的ftp的rename工作原理吗
...全文
345 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq120848369 2012-05-22
  • 打赏
  • 举报
回复
重命名呀, 改名了当然看不见原来名字的文件了.
帅得不敢出门 2012-05-22
  • 打赏
  • 举报
回复
ftp> put yankring_history_v2.txt
local: yankring_history_v2.txt remote: yankring_history_v2.txt
229 Entering Extended Passive Mode (|||30070|).
150 Ok to send data.
100% |*******************************************************************************************| 11085 100.68 MB/s 00:00 ETA
226 Transfer complete.
11085 bytes sent in 00:00 (13.72 MB/s)
ftp> ls
229 Entering Extended Passive Mode (|||30063|).
150 Here comes the directory listing.
-rw------- 1 1000 100 11085 May 22 06:33 yankring_history_v2.txt
226 Directory send OK.
ftp> rename yankring_history_v2.txt 1.txt
350 Ready for RNTO.
250 Rename successful.
ftp> ls
229 Entering Extended Passive Mode (|||30034|).
150 Here comes the directory listing.
-rw------- 1 1000 100 11085 May 22 06:33 1.txt
226 Directory send OK.
ftp>

就是重命名了,跟本机的rename效果是差不多的。

69,368

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧