码迷,mamicode.com
首页 > 系统相关 > 详细

linux中删除文件名称乱码

时间:2015-12-27 13:27:37      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:

在最近的操作中发现一些上传的文件有乱码,更改几次都无法正常转换到中文。下面给出正确的解决方案:

使用 ls -i 或者 ls -inum 查找出文件id号(红色字体)

[root@localhost home]# ls -i
260615 epel-release-latest-6.noarch.rpm 273780 test.txt
[root@localhost home]# ls -inum
273780 test.txt, 260615 epel-release-latest-6.noarch.rpm
[root@localhost home]#

 

结合find命令删除

[root@localhost home]# find -inum 273780 -exec rm -rf {} \;
[root@localhost home]# ls
epel-release-latest-6.noarch.rpm

删除成功

 

linux中删除文件名称乱码

标签:

原文地址:http://www.cnblogs.com/horizonli/p/5079849.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!