LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 942|回复: 3

两个有关 lftp 的问题,帮忙解决一下,谢谢

[复制链接]
发表于 2006-9-7 21:01:13 | 显示全部楼层 |阅读模式
两个有关 lftp 的问题,帮忙解决一下,谢谢

如何使用 lftp 删除含有子目录和文件的目录,如何删除隐藏文件(. 开头的,比如 .bash_profile)?
发表于 2006-9-7 22:14:31 | 显示全部楼层
1) rm -rf
2) dot files are nothing different from normal files at the client side. check your server setting instead (e.g., whether it prohibits users from accessing dot files)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-8 20:01:56 | 显示全部楼层
Post by galilette
1) rm -rf
2) dot files are nothing different from normal files at the client side. check your server setting instead (e.g., whether it prohibits users from accessing dot files)


rm -rf 似乎无法使用(我用的版本是 3.1.13),还有就是 ls -a 可以显示,但是用 mrm .* 就无法删除。
回复 支持 反对

使用道具 举报

发表于 2006-9-8 20:49:15 | 显示全部楼层
i'm using 3.5.4 and there's no problem with rm -rf.

for the `mrm .*' problem, you may use:
set ftp:list-options -a
so that dot files can be globbed (mrm is just `glob rm')
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表