Linux服务器中文文件名无法删除的解决方法

2012年10月3日

服务器系统:Centos5 环境:Kloxo
以前上传过一些中文文件名的文件到服务器上,后来更换服务器节点后却发现这些文件无法操作了,在Flashfxp里可以看到有文件,没有任何权限操作,无法打开,无法删除,无法更改权限,在kloxo里看到不文件.登录SSH切换到目录可以看见文件.解决方法很简单.
登录SSH,切换到文件所在目录.代码如下.

#cd /home/wwwroot/Tongfukj/my Music
#du -sh * | sort -n
#rm -rf *****.mp3

 
执行du -sh * | sort -n命令后会显示目录下的所有子目录和文件,在这里找到你想要删除的文件,用鼠标选中并按下ctrl+C键复制文件名,然后用 rm -rf 文件名(鼠标右键点一下会自动粘贴)回车即可.


sicnature ---------------------------------------------------------------------
Your current IP address is: 35.172.164.32
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://myzhenai.com/post/787.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注